Project

Profile

Help

Bug #4121

closed

UnsupportedOperationException when writing to DOMResult

Added by Gunther Rademacher almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
-
Start date:
2019-01-29
Due date:
% Done:

100%

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

Description

A transformer with a DOMResult may fail with an UnsupportedOperationException.

The attached test works OK with Saxon-HE 9.8, but fails with 9.9.0.1 and 9.9.1.1.

The actual exception is:

java.lang.UnsupportedOperationException
	at net.sf.saxon.event.Receiver.append(Receiver.java:232)
	at net.sf.saxon.event.RegularSequenceChecker.append(RegularSequenceChecker.java:153)
	at net.sf.saxon.event.ProxyReceiver.append(ProxyReceiver.java:234)
	at net.sf.saxon.event.ComplexContentOutputter.append(ComplexContentOutputter.java:611)
	at net.sf.saxon.expr.Expression.lambda$process$0(Expression.java:941)
	at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
	at net.sf.saxon.expr.Expression.process(Expression.java:941)
	at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:354)
	at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:519)
	at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:733)
	at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
	at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:338)
	at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:71)
	at TestResults.testDomResult(TestResults.java:68)

Files

TestResults.java (2.74 KB) TestResults.java Gunther Rademacher, 2019-01-29 23:48

Please register to edit this issue

Also available in: Atom PDF