Re: NPE when using HSSFSerializer + big pipeline

2002-04-25 Thread Andrew C. Oliver

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--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 

Re: NPE when using HSSFSerializer + big pipeline

2002-04-25 Thread Seth Ladd

On Thu, 2002-04-25 at 08:09, Andrew C. Oliver wrote:
 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).

Thanks!

I'll keep poking around, trying different things.  Is there a strategy
for debugging?  I'd like to do a trace, or watch what happens to try to
identify the offending data.

What confuses me is that if I take the XML being produced and manually
run it through the last step (which is the serializer) then it works
great.  It's only when it's being run through the pipeline directly does
it fail.  So at first I thought it was bad data, too (as the exception
seems to indicate) but the generated XML seems OK.

Now, of course, the SAX events might be getting screwed up and it might
only work OK when run through the XML serializer.

If you have some suggestions on how to get more debug or watch the
processes, that would be wonderful.

I'll also send you all the style sheets, etc if you'd like to try it.

Thanks very much,
Seth

ps In the meantime I'll probably write my own HSSFSerializer (a simpler
one).  Maybe this will help track down the problem?


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




NPE when using HSSFSerializer + big pipeline

2002-04-24 Thread Seth Ladd

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--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)