You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jenny Brown <je...@bigbrother.net> on 2002/11/08 17:42:59 UTC

null pointer occurring inside cocoon

I recently got cocoon running on my server (with a very up to date
version of avalon, excalibur, etc.); and I'm having an error triggered
by my servlet, when I'm trying to transform XML with an XSLT file.  The
debug info is as follows.


DEBUG   10367   [jendvsl ] (): XSLTProcessorImpl:
transform source = org.apache.cocoon.components.source.URLSource@7eb366,
stylesheet = org.apache.cocoon.components.source.URLSource@33f0de,
parameters = org.apache.avalon.framework.parameters.Parameters@ab444,
result = javax.xml.transform.stream.StreamResult@c0f1ec

DEBUG   10367   [jendvsl ] (): Creating new Templates for http://jenny.myinfogenic.net/sitebuilder/simple.xsl

DEBUG   10367   [jendvsl ] ():
Source = org.apache.cocoon.components.source.URLSource@33f0de,
templatesHandler = org.apache.xalan.processor.StylesheetHandler@18c74

org.apache.cocoon.ProcessingException: Exception during processing
of http://jenny.myinfogenic.net/sitebuilder/simple.xsl:
java.lang.NullPointerException
  at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:211)
  at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268)
  at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239)
  at org.apache.cocoon.components.xslt.XSLTProcessorImpl.transform(XSLTProcessorImpl.java:311)
  at jendvsl.web_post_xsl(jendvsl.java:87)

Caused by: java.lang.NullPointerException
  at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:204)
        ... 23 more
java.lang.NullPointerException
  at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:204)
  at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268)
  at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239)
  at org.apache.cocoon.components.xslt.XSLTProcessorImpl.transform(XSLTProcessorImpl.java:311)
  at jendvsl.web_post_xsl(jendvsl.java:87)






---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: null pointer occurring inside cocoon

Posted by Joerg Heinicke <jo...@gmx.de>.
Do you have a <map:transform 
src="http://jenny.myinfogenic.net/sitebuilder/simple.xsl"/> in your 
sitemap? Then the error is obvious: The file is served as text/plain, 
not text/xml. Change the configuration of the server. In the world 
outside the Microsoft Internet Explorer mime types matter.

Regards,

Joerg

Jenny Brown wrote:
> I recently got cocoon running on my server (with a very up to date
> version of avalon, excalibur, etc.); and I'm having an error triggered
> by my servlet, when I'm trying to transform XML with an XSLT file.  The
> debug info is as follows.
> 
> 
> DEBUG   10367   [jendvsl ] (): XSLTProcessorImpl:
> transform source = org.apache.cocoon.components.source.URLSource@7eb366,
> stylesheet = org.apache.cocoon.components.source.URLSource@33f0de,
> parameters = org.apache.avalon.framework.parameters.Parameters@ab444,
> result = javax.xml.transform.stream.StreamResult@c0f1ec
> 
> DEBUG   10367   [jendvsl ] (): Creating new Templates for http://jenny.myinfogenic.net/sitebuilder/simple.xsl
> 
> DEBUG   10367   [jendvsl ] ():
> Source = org.apache.cocoon.components.source.URLSource@33f0de,
> templatesHandler = org.apache.xalan.processor.StylesheetHandler@18c74
> 
> org.apache.cocoon.ProcessingException: Exception during processing
> of http://jenny.myinfogenic.net/sitebuilder/simple.xsl:
> java.lang.NullPointerException
>   at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:211)
>   at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268)
>   at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239)
>   at org.apache.cocoon.components.xslt.XSLTProcessorImpl.transform(XSLTProcessorImpl.java:311)
>   at jendvsl.web_post_xsl(jendvsl.java:87)
> 
> Caused by: java.lang.NullPointerException
>   at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:204)
>         ... 23 more
> java.lang.NullPointerException
>   at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:204)
>   at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268)
>   at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239)
>   at org.apache.cocoon.components.xslt.XSLTProcessorImpl.transform(XSLTProcessorImpl.java:311)
>   at jendvsl.web_post_xsl(jendvsl.java:87)
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>