You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xa...@xml.apache.org on 2004/09/24 17:30:08 UTC
[jira] Updated: (XALANJ-1770) xalan transformation does not transfer control to registered error listsner in some cases
The following issue has been updated:
Updater: Brian Minchau (mailto:minchau@ca.ibm.com)
Date: Fri, 24 Sep 2004 8:28 AM
Changes:
Component changed to transformation
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XALANJ-1770?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1770
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1770
Summary: xalan transformation does not transfer control to registered error listsner in some cases
Type: Bug
Status: Open
Project: XalanJ2
Components:
Xalan-interpretive transformation
transformation
Versions:
2.0.0
Assignee: Xalan Developers Mailing List
Reporter: Vishwajit Pantvaidya
Created: Wed, 14 Jan 2004 8:06 PM
Updated: Fri, 24 Sep 2004 8:28 AM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
I am using jaxp api in my xslt trandformation code and running with xalan 2.0.0.
I developed and then registered my own error listener with the
TransformerFactory and the Transformer. In some cases, I am finding that this
error listener is not getting called at all.
For example, in one case while testing the error listener getting called for
problems during xsl file compilation, my xsl file had a line <xsl:value-of
select = "/CxQuoteContainer/containerInfo/attribute/atomicValue[]"/>. In this
case, the following exception was thrown bypassing the error handler:
javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:2894)
at java.lang.Thread.run(Thread.java:479)
The strange thing is that the above stack trace does not contain any entries
pointing to my code.
In another case, to test error listener with transformation errors, I added a
the specification <!DOCTYPE EOM_SLTC_ORDER> to my xml string without a
corresponding root element. There again the following errors were flagged, but
the registered listener was bypassed (and the transformation completed as it
should have):
[Error] :1:44: Document root element "CxQuoteContainer", must match DOCTYPE root
"EOM_SLTC_ORDER".
[Error] :1:44: Element type "CxQuoteContainer" must be declared.
...
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org