[ http://issues.apache.org/jira/browse/XALANJ-1770?page=all ]
Brian Minchau updated XALANJ-1770:
----------------------------------
Version: 2.5Dx
(was: Latest Development Code)
> xalan transformation does not transfer control to registered error listsner
> in some cases
> -----------------------------------------------------------------------------------------
>
> Key: XALANJ-1770
> URL: http://issues.apache.org/jira/browse/XALANJ-1770
> Project: XalanJ2
> Type: Bug
> Components: transformation, Xalan-interpretive
> Versions: 2.5Dx
> Environment: Operating System: Windows NT/2K
> Platform: PC
> Reporter: Vishwajit Pantvaidya
> Assignee: Xalan Developers Mailing List
>
> 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.
> ...
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]