cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Larson" <Tdlar...@ci.canton.oh.us>
Subject transient NULL when using cocoon:/ protocol in 2.1
Date Mon, 25 Nov 2002 16:54:51 GMT
I am getting transient null pointer errors when I use the cocoon:/ protocol in Cocoon2.1
but everything works fine when using Cocoon2.0.4dev.

Tested with:
  Cocoon2.1 development snapshots"
    xml-cocoon2_20021122112643.tar.gz
    xml-cocoon2_20021125111932.tar.gz
  Cocoon2.0.4dev from CVS Nov 14, 2002

Details (see below for snippet from sitemap):
  Requests for *.xsl-good always succeed.
  Requests for *.xsl-fail will only succeed if I have previously requested *.xsl-good since
the last restart of Cocoon.
  When the request fails I receive this error report (see copy of stacktrace at end of email):
    The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that java.lang.NullPointerException
says:
    More precisely:
    java.lang.NullPointerException

Relevant snippet from sitemap:

  <map:match pattern="xpath.xsl">
    <map:generate  src="../resources/xpath.xsl"/>
    <map:serialize type="xml"/>
  </map:match>

  <map:match pattern="*.xml">
    <map:generate  src="{1}.xml"/>
    <map:serialize type="xml"/>
  </map:match>

  <map:match pattern="*.xsl-fail">
    <map:generate  src="{1}.xml"/>
    <map:transform src="cocoon:/xpath.xsl">
      <map:parameter name="xpath" value="xml/section-xsl/*"/>
    </map:transform>
    <map:serialize type="xml"/>
  </map:match>

  <map:match pattern="*.xsl-good">
    <map:generate  src="cocoon:/{1}.xml"/>
    <map:transform src="cocoon:/xpath.xsl">
      <map:parameter name="xpath" value="xml/section-xsl/*"/>
    </map:transform>
    <map:serialize type="xml"/>
  </map:match>

Full stacktrace for error mentioned above:

java.lang.NullPointerException
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:570)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(ContainerNode.java:68)
at org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallNode.java:133)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:158)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1069)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)

Hope it's simple,
Tim


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message