[
https://issues.jboss.org/browse/TEIID-3688?page=com.atlassian.jira.plugin...
]
Steven Hawkins commented on TEIID-3688:
---------------------------------------
There are two issues here. One is that XMLEventStreamReader cannot handle comments, which
doesn't seem to be a pervasive issue since there are no comments in the json to xml
conversion and sources should return xml stream readers. The other issue is that the
Saxon logic is incorrect in 9.2 - the append method should not be called at all. Rather
the comment event should be directed to the comment method on the PathMapFilter. This is
corrected in the later Saxon 9.5 - TEIID-3030
So this will need to be handled as two different issues and a fix for 8.7 will be more
involved as we'll need to add append handling into the PathMapFilter.
StaxSource error with a comment
-------------------------------
Key: TEIID-3688
URL:
https://issues.jboss.org/browse/TEIID-3688
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.7
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.12
Having a stax source such as a streaming result from a web service that is processed by
xmltable that contains comments will result in an exception such as:
14:39:23,673 ERROR [org.teiid.PROCESSOR] (Worker0_QueryProcessorQueue2) TEIID30019
Unexpected exception for request Wel3MG40y9Hs.0: java.lang.UnsupportedOperationException:
append() method is not supported in this class
at net.sf.saxon.event.ProxyReceiver.append(ProxyReceiver.java:229)
[saxonhe-9.2.1.5.jar:]
at net.sf.saxon.evpull.EventIteratorToReceiver.copy(EventIteratorToReceiver.java:50)
[saxonhe-9.2.1.5.jar:]
at net.sf.saxon.event.Sender.sendPullEventSource(Sender.java:523)
[saxonhe-9.2.1.5.jar:]
at net.sf.saxon.event.Sender.send(Sender.java:148) [saxonhe-9.2.1.5.jar:]
at net.sf.saxon.Configuration.buildDocument(Configuration.java:3317)
[saxonhe-9.2.1.5.jar:]
at net.sf.saxon.Configuration.buildDocument(Configuration.java:3262)
[saxonhe-9.2.1.5.jar:]
at org.teiid.query.xquery.saxon.XQueryEvaluator.evaluateXQuery(XQueryEvaluator.java:152)
[teiid-engine-8.7.3.redhat-2.jar:8.7.3.redhat-2]
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)