Bug #2215
closed
ErrorListener registered with the JAXP TransformerFactory is ignored
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Description
An ErrorListener registered with the JAXP TransformerFactory (or the Saxon Configuration) is used only for reporting errors in parsing a source document, and not for reporting static errors in stylesheets or queries.
- Status changed from New to Resolved
A unit test jaxptest/TransformMessageTest/testErrorNotificationSchemaAware has been created. (The problem was reported as being specific to schema-aware stylesheets but is actually more general).
A patch is being applied on the 9.6 and 9.7 branches.
- Status changed from Resolved to In Progress
Reopened. The user reports:
After I have integrated the changes from SVN repository on our side, revision 1070, I have obtained the next NPE:
java.lang.NullPointerException
at net.sf.saxon.Configuration.setErrorListener(Configuration.java:902)
at net.sf.saxon.jaxp.SaxonTransformerFactory.setErrorListener(SaxonTransformerFactory.java:337)
It seems that the 'defaultStaticQueryContext' object could be null.
(comment deleted. Entered against wrong bug)
(comment deleted. Entered against wrong bug)
- Status changed from In Progress to Resolved
The patch has been revised to fix this problem.
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in version set to 9.6.0.2
Bug fix applied to the maintenance release Saxon 9.6.0.2
- Sprint/Milestone set to 9.6.0.2
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.2 added
Please register to edit this issue
Also available in: Atom
PDF