forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject RV: Saxon and NullPointerException
Date Tue, 02 Dec 2003 08:15:36 GMT
It's curious, if I place Saxon-6.5.3.jar in WEB-INF/lib in Forrest 0.5.1, I get a Cocoon exception.
 No other change is done.  On the other hand, if I do the SAME in Cocoon 2.1.2 standalone
without Forrest, everything goes OK.  I find it very strange.

I need Saxon for DocBook processing as Xalan fails with its stylesheets.

Has this happened to anyone else?

In case it is useful for someone, here is the exception call stack:

FATAL_E (2003-12-01) 10:53.12:429   [core.xslt-processor] (/index.html) PoolThread-4/TraxErrorHandler:
Error in TraxTransformer: javax.xml.transform.TransformerException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
	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.transformation.TraxTransformer.endDocument(TraxTransformer.java:529)
	at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:168)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:548)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492)
	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(ContainerNode.java:66)
	at org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallNode.java:128)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
Caused by: java.lang.NullPointerException
	at com.icl.saxon.om.NamePool.allocateCodeForURI(NamePool.java:291)
	at com.icl.saxon.om.NamePool.allocate(NamePool.java:423)
	at com.icl.saxon.ContentEmitter.endElement(ContentEmitter.java:142)
	at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
	at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
	at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:163)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
---------
java.lang.NullPointerException
	at com.icl.saxon.om.NamePool.allocateCodeForURI(NamePool.java:291)
	at com.icl.saxon.om.NamePool.allocate(NamePool.java:423)
	at com.icl.saxon.ContentEmitter.endElement(ContentEmitter.java:142)
	at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
	at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
	at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:163)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:159)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:422)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
	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.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:529)
	at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:168)


--------
David

-----Mensaje original-----
De: Carmona Perez, David 
Enviado el: lunes, 01 de diciembre de 2003 16:33
Para: Forrest (E-mail)
Asunto: Saxon and NullPointerException

Hi all,

Has anybody tried to use DocBook and Forrest?
I have tried to but had problems when trying to use the Saxon processor (if I place Saxon
6.5.3 in WEB-INF/lib, Cocoon gives a NullPointerException).

Thanks in advance for any suggestion.


--------
David

Mime
View raw message