cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew C. Oliver" <acoli...@apache.org>
Subject Re: NPE when using HSSFSerializer + big pipeline
Date Thu, 25 Apr 2002 12:09:01 GMT
I've moved both your emails to a folder named tasks.  I will look at
this and get back to you.  By the looks of this error it looks like
invalid data (a null where it expects characters).

-Andy

On Wed, 2002-04-24 at 10:09, Seth Ladd wrote:
> Hello,
> 
> I'm using the following pipeline:
> 
>     <map:pipeline>
>         <map:match pattern="*.xml">
>             <map:generate src="{1}.xml"/>
>             <map:transform type="sql">
>                 <map:parameter name="use-connection" value="seclog"/>
>             </map:transform>
>             <map:transform src="test.xslt"/>
>             <map:transform src="output.xslt"/>
>             <map:transform src="convert.xslt"/>
>             <map:transform src="final.xslt"/>
>             <map:serialize type="xls"/>
>         </map:match>
>     </map:pipeline>
> 
> Notice at the end, I use the HSSFSerializer.  I currently am getting a
> huge string of NPEs in the error.log (included below).
> 
> When I change to the xml serializer or the html serializer, it works
> great.  Also, I've tested the output from final.xslt (saved as raw xml)
> and piped it directly into the HSSFSerializer which worked great.  I
> only get the NPEs when using the above pipeline.
> 
> Does this NPE make any sense?  (note: I'm currently trying different
> permutations to isolate the error)
> 
> Any tips or help would be greatly appreciated!  I'm so close. :)
> 
> Thanks,
> Seth
> 
> 
> 
> 
> FATAL_E (2002-04-24) 09:42.28:545   [core.xslt-processor]
> (/notif/test.xml) tcpConnection-5555-0/TraxErrorHandler: Error in
> TraxTransformer: javax.xml.transform.TransformerException:
> java.lang.NullPointerException
> javax.xml.transform.TransformerException: java.lang.NullPointerException
>         at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:434)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java(Compiled
Code))
>         at
> org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java(Compiled
Code))
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java(Compiled
Code))
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:112)
>         at
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102)
>         at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:220)
>         at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
>         at
> org.apache.cocoon.www.sitemap_xmap.matchN10233(sitemap_xmap.java:1656)
>         at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1505)
>         at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1451)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>         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:998)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
>         at
> com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
>         at
> com.caucho.server.http.Invocation.service(Invocation.java:277)
>         at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
>         at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
>         at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
>         at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
>         at java.lang.Thread.run(Thread.java:498)
> ---------
> java.lang.NullPointerException
>         at
> org.apache.cocoon.serialization.ElementProcessorSerializer.SAXExceptionFactory(ElementProcessorSerializer.java:176)
>         at
> org.apache.cocoon.serialization.ElementProcessorSerializer.characters(ElementProcessorSerializer.java:342)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.characters(ResultTreeHandler.java(Compiled
Code))
>         at
> org.apache.xml.utils.FastStringBuffer.sendSAXcharacters(FastStringBuffer.java(Compiled
Code))
>         at
> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.dispatchCharactersEvents(SAX2DTM.java(Compiled
Code))
>         at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:355)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java(Compiled
Code))
>         at
> org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java(Compiled
Code))
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java(Compiled
Code))
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
>         at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
>         at
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:112)
>         at
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102)
>         at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:220)
>         at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
>         at
> org.apache.cocoon.www.sitemap_xmap.matchN10233(sitemap_xmap.java:1656)
>         at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1505)
>         at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1451)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>         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:998)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
>         at
> com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
>         at
> com.caucho.server.http.Invocation.service(Invocation.java:277)
>         at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
>         at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
>         at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
>         at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
>         at java.lang.Thread.run(Thread.java:498)
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
                            format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
			- fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message