cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: Pipeline error
Date Fri, 23 Jul 2004 07:33:05 GMT
obviously you're not generating the XML like you think you are. 
Doublecheck for null on creation of all elements, run "cocoon.sh 
servlet-debug" and attach with your IDE. Should be trivial to find out 
exactly where it is failing.


Caused by: java.lang.NullPointerException
     at 
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.startElement(SAX2DTM.java:1935)
     at 
org.apache.xalan.transformer.TransformerHandlerImpl.startElement(TransformerHandlerImpl.java:481)
     at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
     at 
au.edu.anu.DSpaceDublinCoreGenerator.generate(DSpaceDublinCoreGenerator.java:96)
     at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:545)
     ... 36 more

Scott Yeadon wrote:

> Hello,
> 
> I have the following entry in my sitemap:
> <map:match pattern="DC">
>    <map:generate type="myGenerator">
>    <map:parameter name="parm1" value="value1"/>
>    <map:parameter name="parm2" value="value2"/>
>    <map:parameter name="parm3" value="value3"/>
>    </map:generate>
>    <map:transform type="xslt" src="xsl/filter.xsl"/>
>    <map:serialize type="xml"/>
> </map:match>
> (myGenerator is defined in components as <map:generator 
> name="myGenerator" src="my.package.myGeneratorClass"/>)
> 
> However this always produces a NullPointerException Error.
> 
> The generator works fine by itself, the transformer works fine if I 
> change the generator's src to come from a file (whose contents is the 
> XML created by the generator rather than the java class, but when I run 
> them together the error occurs. Thoughts? I have also tried placing the 
> generator in an aggregate but (I guess unsurprisingly) makes no difference.
> 
> The Exception text is as follows:
> 
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> java.lang.NullPointerException
>     at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:552)

> 
>     at 
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:173)

> 
>     at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:490)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)

> 
>     at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
>     at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
>     at 
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

> 
>     at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
>     at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
>     at 
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

> 
>     at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
>     at org.mortbay.http.HttpServer.service(HttpServer.java:879)
>     at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
>     at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
>     at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
>     at 
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
>     at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
>     at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
> Caused by: java.lang.NullPointerException
>     at 
> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.startElement(SAX2DTM.java:1935)
>     at 
> org.apache.xalan.transformer.TransformerHandlerImpl.startElement(TransformerHandlerImpl.java:481)

> 
>     at 
> org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
>     at 
> au.edu.anu.DSpaceDublinCoreGenerator.generate(DSpaceDublinCoreGenerator.java:96) 
> 
>     at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:545)

> 
>     ... 36 more
> java.lang.NullPointerException
>     at 
> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.startElement(SAX2DTM.java:1935)
>     at 
> org.apache.xalan.transformer.TransformerHandlerImpl.startElement(TransformerHandlerImpl.java:481)

> 
>     at 
> org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
>     at 
> au.edu.anu.DSpaceDublinCoreGenerator.generate(DSpaceDublinCoreGenerator.java:96) 
> 
>     at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:545)

> 
>     at 
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:173)

> 
>     at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:490)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)

> 
>     at 
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)

> 
>     at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
>     at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
>     at 
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

> 
>     at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
>     at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
>     at 
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

> 
>     at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
>     at org.mortbay.http.HttpServer.service(HttpServer.java:879)
>     at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
>     at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
>     at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
>     at 
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
>     at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
>     at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
> 
> Thanks.
> 
> Scott.


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


Mime
View raw message