Project

Profile

Help

Bug #2642

closed

NPE when using net.sf.saxon.event.EventSource in Saxon 9.7

Added by Gunther Rademacher over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Streaming
Sprint/Milestone:
-
Start date:
2016-02-24
Due date:
% Done:

100%

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

Description

For mapping non-XML content to XML, we have been extending net.sf.saxon.event.EventSource. Per our standard XQuery pattern, the source was accessed via saxon:stream. This currently works in our product on Saxon-EE 9.6.0.5J.

While testing with 9.7.0.3J, I found that this approach now stopped to work with a NullPointerException from calling startElement of the Receiver.

A complete test case is attached.

While testing, I found that even in 9.6.0.5J, I get a NPE when I omit 'saxon:stream' from the query. In that case I think it is due to Configuration.resolveSource returning null for an EventSource. This call does not happen with 'saxon:stream' in place.

Thanks,

Gunther


Files

TestSaxonStreamOnEventSource97.java (2.97 KB) TestSaxonStreamOnEventSource97.java TestNG test reproducing NPE from EventSource.send Gunther Rademacher, 2016-02-24 11:43

Please register to edit this issue

Also available in: Atom PDF