Ok, thanks Felix, I'll check it out and let you know ASAP. Disregard my other message about looking into it of course, that teaches me to get through all my messages before responding ;-)
Cheers, Craig > -----Original Message----- > From: Felix Meschberger [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2008 6:33 AM > To: [email protected] > Subject: Re: Can't resource.adaptTo my AbstractMappedObject > > Hi Craig, > > The problem was that the ObjectContentManagerFactoryImpl > responsible for listening for bundles providing mappings was > defined as a delayed component and thus was not able to > listen for bundles. See SLING-546 [1] for details. > > I fixed this in Rev. 669451 of the jcr/ocm bundle. Can you > please provide feedback, whether this fixes your issues ? Thanks. > > Regards > Felix > > [1] https://issues.apache.org/jira/browse/SLING-546 > > Am Dienstag, den 17.06.2008, 15:18 -0500 schrieb Craig L. Ching: > > Hi all, > > > > Just updated to trunk and I'm seeing the following problem. If I > > deploy the sling/samples/simple-demo bundle, I get the > following error: > > > > org.apache.sling.scripting.jsp.jasper.JasperException: An exception > > occurred processing JSP page > /apps/sling/SamplePage/html.jsp at line > > 34 null Stacktrace: (500) > > > > The requested URL /sample/content/home.html resulted in an error in > > /apps/sling/SamplePage/html.jsp. > > Exception: > > > > org.apache.sling.api.SlingServletException: > > org.apache.sling.scripting.jsp.jasper.JasperException: An exception > > occurred processing JSP page > /apps/sling/SamplePage/html.jsp at line > > 34 > > > > null > > > > Stacktrace: > > at > > > org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspSer > > vl > > etWrapperAdapter.java:66) > > at > > > org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScrip > > tE > > ngineFactory.java:134) > > at > > > org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$000(JspSc > > ri > > ptEngineFactory.java:72) > > at > > > org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine. > > ev > > al(JspScriptEngineFactory.java:281) > > at > > > org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSl > > in > > gScript.java:135) > > at > > > org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSl > > in > > gScript.java:106) > > at > > > org.apache.sling.scripting.core.impl.DefaultSlingScript.service(Defaul > > tS > > lingScript.java:219) > > at > > > org.apache.sling.engine.impl.request.RequestData.service(RequestData.j > > av > > a:462) > > at > > > org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMain > > Se > > rvlet.java:419) > > at > > > org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(Req > > ue > > stSlingFilterChain.java:48) > > at > > > org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter( > > Ab > > stractSlingFilterChain.java:54) > > at > > > org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doF > > il > > ter(RequestProgressTrackerLogFilter.java:59) > > at > > > org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter( > > Ab > > stractSlingFilterChain.java:52) > > at > > > org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet > > .j > > ava:273) > > at > > > org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet > > .j > > ava:171) > > at > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) > > at > > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler > .java:362) > > at > > > org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(Ht > > tp > > ServiceServletHandler.java:51) > > at > > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler > .java:181) > > at > > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler > .java:722) > > at > > > org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServi > > ce > > Context.java:87) > > at > > > org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle > > (J > > ettyServerHandlerCollection.java:63) > > at > > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper > .java:139) > > at org.mortbay.jetty.Server.handle(Server.java:324) > > at > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection. > java:505) > > at > > > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon > > ne > > ction.java:828) > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) > > at > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > > at > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) > > at > > > org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.j > > av > > a:228) > > at > > > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool. > > ja > > va:450) > > Caused by: > org.apache.sling.scripting.jsp.jasper.JasperException: An > > exception occurred processing JSP page > /apps/sling/SamplePage/html.jsp > > at line 34 > > > > null > > > > Stacktrace: > > at > > > org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handle > > Js > > pException(JspServletWrapper.java:524) > > at > > > org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.servic > > e( > > JspServletWrapper.java:435) > > at > > > org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspSer > > vl > > etWrapperAdapter.java:59) > > ... 30 more > > Caused by: java.lang.NullPointerException > > at > > > org.apache.jsp.apps.sling.SamplePage.html_jsp._jspService(html > _jsp.java: > > 112) > > at > > > org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(Http > > Js > > pBase.java:70) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > at > > > org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.servic > > e( > > JspServletWrapper.java:393) > > ... 31 more > > > > > > Looking into it further, I don't seem to have a factory for > my class, > > according to this code in AdapterManagerImpl.java: > > > > // get the factory for the target type > > AdapterFactory factory = factories.get(type.getName()); > > > > My code is pretty much based on this sample, so I figured > it would be > > easier to use the sample to demonstrate my problem. Any > idea what I'm > > doing wrong? > > > > Cheers, > > Craig > >
