Project

Profile

Help

Bug #2215

closed

ErrorListener registered with the JAXP TransformerFactory is ignored

Added by Michael Kay about 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
Start date:
2014-11-07
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

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.

Actions #1

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.

Actions #2

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.

Actions #3

Updated by Michael Kay about 10 years ago

(comment deleted. Entered against wrong bug)

Actions #4

Updated by Michael Kay about 10 years ago

(comment deleted. Entered against wrong bug)

Actions #5

Updated by Michael Kay about 10 years ago

  • Status changed from In Progress to Resolved

The patch has been revised to fix this problem.

Actions #6

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

Actions #7

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

Also available in: Atom PDF