Hello all, I'm trying to build up a web-application interface by separating the header and sidebar (menu of options) into different pipelines. Those two pipelines are built from resources and transformed with sunShine (session) and look like this:
<!-- Site construction resources: --> <map:match pattern="sidebar"> <map:generate src="docs/user-actions.xml"/> <map:transform type="sunShine"/> <map:transform src="stylesheets/actions2menu.xsl"/> <map:serialize type="xml"/> </map:match> <map:match pattern="header"> <map:generate src="docs/header.xml"/> <map:transform type="sunShine"/> <map:serialize type="xml"/> </map:match> If I request these resources directly, they resolve just fine and I get the exact XML output that I expect. But then I need to include them in the final page that the user will see in the web-app. I've tried two methods so far: using cinclude pointers in the main document and then using the cinclude transformer, or aggregating the parts on the sitemap. In both methods I get the exact same exception message. In both methods I'm also using the same URI to reference the parts: cocoon:/header and cocoon:/sidebar. I've also tried with two slashes: cocoon://header. So the best I can figure is that for some reason sunShine is having trouble doing it's resource-resolution when it is included in another request via the cocoon protocol as opposed to being requested on it's own. For anyone who thinks they might be able to help, the exception messages and stacktrace follow. Thanks a bunch. /S full exception chain stacktrace Original exception : java.lang.NullPointerException at org.apache.cocoon.sunshine.sunrise.context.SessionContextImpl.<init>(SessionContextImpl.java:107) at org.apache.cocoon.sunshine.sunrise.context.SessionContextProviderImpl.getSessionContext(SessionContextProviderImpl.java:97) at org.apache.cocoon.sunshine.SunShine.getReservedContext(SunShine.java:322) at org.apache.cocoon.sunshine.SunShine.getContext(SunShine.java:964) at org.apache.cocoon.sunshine.SunShine.streamContextFragment(SunShine.java:563) at org.apache.cocoon.sunshine.transformation.SunShinePreTransformer.startTransformingElement(SunShinePreTransformer.java:230) at org.apache.cocoon.sunshine.transformation.SunShinePostTransformer.startTransformingElement(SunShinePostTransformer.java:232) at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326) at org.apache.cocoon.sunshine.transformation.SunShinePreTransformer.startElement(SunShinePreTransformer.java:201) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:126) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219) at org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:353) at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:148) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.www.sitemap_xmap.matchN102E9(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3285) at org.apache.cocoon.www.sitemap_xmap.process(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1925) at org.apache.cocoon.www.sitemap_xmap.process(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1825) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) stacktrace org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:223) at org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:353) at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:148) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.www.sitemap_xmap.matchN102E9(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3285) at org.apache.cocoon.www.sitemap_xmap.process(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1925) at org.apache.cocoon.www.sitemap_xmap.process(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1825) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.NullPointerException at org.apache.cocoon.sunshine.sunrise.context.SessionContextImpl.<init>(SessionContextImpl.java:107) at org.apache.cocoon.sunshine.sunrise.context.SessionContextProviderImpl.getSessionContext(SessionContextProviderImpl.java:97) at org.apache.cocoon.sunshine.SunShine.getReservedContext(SunShine.java:322) at org.apache.cocoon.sunshine.SunShine.getContext(SunShine.java:964) at org.apache.cocoon.sunshine.SunShine.streamContextFragment(SunShine.java:563) at org.apache.cocoon.sunshine.transformation.SunShinePreTransformer.startTransformingElement(SunShinePreTransformer.java:230) at org.apache.cocoon.sunshine.transformation.SunShinePostTransformer.startTransformingElement(SunShinePostTransformer.java:232) at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326) at org.apache.cocoon.sunshine.transformation.SunShinePreTransformer.startElement(SunShinePreTransformer.java:201) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:126) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219) ... 42 more java.lang.NullPointerException at org.apache.cocoon.sunshine.sunrise.context.SessionContextImpl.<init>(SessionContextImpl.java:107) at org.apache.cocoon.sunshine.sunrise.context.SessionContextProviderImpl.getSessionContext(SessionContextProviderImpl.java:97) at org.apache.cocoon.sunshine.SunShine.getReservedContext(SunShine.java:322) at org.apache.cocoon.sunshine.SunShine.getContext(SunShine.java:964) at org.apache.cocoon.sunshine.SunShine.streamContextFragment(SunShine.java:563) at org.apache.cocoon.sunshine.transformation.SunShinePreTransformer.startTransformingElement(SunShinePreTransformer.java:230) at org.apache.cocoon.sunshine.transformation.SunShinePostTransformer.startTransformingElement(SunShinePostTransformer.java:232) at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326) at org.apache.cocoon.sunshine.transformation.SunShinePreTransformer.startElement(SunShinePreTransformer.java:201) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:126) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219) at org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:353) at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:148) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) at org.apache.cocoon.www.sitemap_xmap.matchN102E9(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3285) at org.apache.cocoon.www.sitemap_xmap.process(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1925) at org.apache.cocoon.www.sitemap_xmap.process(C:\Apache\Jakarta\jakarta-tomcat-4.1.12-LE-jdk14\work\Standalone\knuth\ideal\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1825) at org.apache.cocoon.sitemap.Handler.process(Handler.java:224) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) original message java.lang.NullPointerException -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>