xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geert Van Damme" <geert.vanda...@vdab.be>
Subject Errors in XSLT transformation
Date Mon, 17 May 2004 11:45:42 GMT

Hi all,

I asked this question on the Cocoon mailing list, but this might be a
better place to post... I'll just paste the original question below,
hope someone can help me out here. (Is there a threading/synchronization
problem in Xalan ? Currently using 2.3.1 (shipped with Cocoon 2.0.4) but
also got this error using the latest version...) Anyway, here it goes :

<original message>

I can't seem to find a lot of information about this, so I hope someone
can help me out. 

I'm using Cocoon 2.0.4.

Every now and then, I get following exception when creating a PDF using
fo2pdf (actually i think the exception occurs in the xslt generating the
FO xsl document <note>I'm sure of this now as I removed the actual PDF
generation from the pipeline</note>) :

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Errors in
XSLT transformation: Fatal: java.lang.NullPointerException

(full stacktrace is printed below)

It seems to be occuring at random moments when multiple requests are
received at the same time. I tried using the latest version of Xalan,
but the problem still occurs. I tried using XSLTC but this doesn't work
at all ("Cocoon Confusion"). Incremental Mode doesn't work either
(thought this would give me some more info but instead I get an error,
coincidently (?) the same exception but in a different place :
Error: File
zip:c:/dvl.home/prj/cocoon/runtime/cocoon/../../src/webapps/cocoon/WEB-INF/_tmp_war_cocoondomain_cocoon_cocoon/WEB-INF/lib/cocoon-224813.0.4.jar!/or
g/apache/cocoon/components/language/markup/xsp/java/xsp.xsl; Line 81;
Column 94; javax.xml.transform.TransformerException: Instance method
call to method new re
quires an Object instance as first argument
Fatal: java.lang.NullPointerException

        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
        at java.lang.Thread.run(Thread.java:479)
).

I'm running out of ideas here so I hope someone can help me.

Thanks in advance !
Geert


The full stacktrace :

Fatal: java.lang.NullPointerException

	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
	at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:575)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:907)
	at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:457)
	at
org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:203)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)
	at
org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:143)
	at
org.apache.cocoon.transformation.AbstractDOMTransformer.notify(AbstractDOMTransformer.java:179)
	at
org.apache.cocoon.xml.dom.DOMBuilder.notifyListener(DOMBuilder.java:204)
	at
org.apache.cocoon.xml.dom.DOMBuilder.endDocument(DOMBuilder.java:196)
	at
org.apache.cocoon.transformation.AbstractDOMTransformer.endDocument(AbstractDOMTransformer.java:203)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
	at
org.apache.cocoon.www.cobra.vacatures.xsp.vacatures_wekelijkse_email_xsp.generate(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www/cobra/vacatures/xsp\vacatures_wekelijkse_email_xsp.java:961)
	at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.process(AbstractEventPipeline.java:166)
	at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(AbstractStreamPipeline.java:184)
	at
org.apache.cocoon.www.cobra.sitemap_xmap.matchN10086(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www/cobra\sitemap_xmap.java:931)
	at
org.apache.cocoon.www.cobra.sitemap_xmap.process(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www/cobra\sitemap_xmap.java:417)
	at
org.apache.cocoon.www.cobra.sitemap_xmap.process(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www/cobra\sitemap_xmap.java:345)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at
org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308)
	at
org.apache.cocoon.www.sitemap_xmap.matchN10284(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1805)
	at
org.apache.cocoon.www.sitemap_xmap.process(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1603)
	at
org.apache.cocoon.www.sitemap_xmap.process(C:\dvl.home\prj\cocoon\src\webapps\cocoon\WEB-INF\_tmp_war_cocoondomain_cocoon_cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1530)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
	at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
	at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2678)
	at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2412)
	at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:140)
	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:121)

</original message>

Thanks in advance !!
Geert

Mime
View raw message