You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2001/02/12 17:09:05 UTC

Bug in Xalan2.0.0 ?

Hi,

we have sometimes problems with the Xalan2.0.0.

Occasionally it throws the following exception during processing "node()" in this template:

<xsl:template match="node()|@*"><xsl:copy>
	<xsl:apply-templates select="node()|@*"/> <!-- this line is the source of the exception -->
</xsl:copy></xsl:template>

java.lang.NullPointerException
        at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:145)
        at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemFor
Each.java:495)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
tes.java:193)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2154)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2097)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2029)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1189)
        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:2894)
        at java.lang.Thread.run(Thread.java:484)

The exception occurs only sometimes, after reprocessing the xml it disappears for a while.

We use Xalan2.0.0 in Cocoon2. It seems that the error only occurs during processing of frames,
when several requests are send to Cocoon2 and Xalan has to process these parallel requests.

Is there anything wrong with our template or is this a bug?

Carsten