Bug #2215
closedErrorListener registered with the JAXP TransformerFactory is ignored
100%
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.
Updated by Michael Kay about 10 years ago
- 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.
Updated by Michael Kay about 10 years ago
- 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.
Updated by Michael Kay about 10 years ago
(comment deleted. Entered against wrong bug)
Updated by Michael Kay about 10 years ago
(comment deleted. Entered against wrong bug)
Updated by Michael Kay about 10 years ago
- Status changed from In Progress to Resolved
The patch has been revised to fix this problem.
Updated by O'Neil Delpratt about 10 years ago
- 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
Updated by O'Neil Delpratt about 9 years ago
- 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