[
https://issues.jboss.org/browse/TEIID-5294?page=com.atlassian.jira.plugin...
]
Steven Hawkins resolved TEIID-5294.
-----------------------------------
Fix Version/s: 10.3
10.1.3
10.0.5
10.2.1
Resolution: Done
There were two issues with the escaping logic. The first highlighted here is that a
string ending in _ produced an exception. That has been addressed for all 10.x branches.
The other issue is that we were using _u, but should be instead using _x. That has been
corrected for 10.3, but left as the old behavior for the other branches. There is a
org.teiid.useXMLxEscape system property that has been added/documented to toggle the
desired behavior.
Bug with the name correction logic (TEIID30151 eror)
----------------------------------------------------
Key: TEIID-5294
URL:
https://issues.jboss.org/browse/TEIID-5294
Project: Teiid
Issue Type: Bug
Components: VDB
Affects Versions: 10.1.2
Reporter: Andreas Krück
Assignee: Steven Hawkins
Fix For: 10.3, 10.1.3, 10.0.5, 10.2.1
Error message "TEIID30151 Error building Source for context item" when calling
SQL statement on VDB connected to REST service:
13:13:24,572 WARN [org.teiid.PROCESSOR] (Worker1_QueryProcessorQueue1728) TEIID30020
Processing exception for request ikch7WEdCSyt.10 'TEIID30151 Error building Source for
context item.'. Originally TeiidProcessingException '12'
XMLSystemFunctions.java:911.: org.teiid.core.TeiidProcessingException: TEIID30151 Error
building Source for context item.
at
org.teiid.query.xquery.saxon.XQueryEvaluator.evaluateXQuery(XQueryEvaluator.java:148)
at org.teiid.query.processor.relational.XMLTableNode$1.run(XMLTableNode.java:269)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:284)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: nu.xom.ParsingException: 12
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at
org.teiid.query.xquery.saxon.XQueryEvaluator.evaluateXQuery(XQueryEvaluator.java:142)
... 7 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 12
at
org.teiid.query.function.source.XMLSystemFunctions.escapeName(XMLSystemFunctions.java:911)
at
org.teiid.query.function.source.XMLSystemFunctions$JsonToXmlContentHandler.startObjectEntry(XMLSystemFunctions.java:226)
at org.teiid.json.simple.JSONParser.parse(JSONParser.java:232)
at
org.teiid.query.function.source.XMLSystemFunctions$JsonToXmlContentHandler.nextEvent(XMLSystemFunctions.java:351)
at
org.teiid.query.xquery.saxon.XMLEventStreamReader.next(XMLEventStreamReader.java:194)
at net.sf.saxon.evpull.StaxToEventBridge.next(StaxToEventBridge.java:159)
at net.sf.saxon.evpull.EventStackIterator.next(EventStackIterator.java:61)
at net.sf.saxon.evpull.EventIteratorToReceiver.copy(EventIteratorToReceiver.java:44)
at net.sf.saxon.event.Sender.sendPullEventSource(Sender.java:559)
at net.sf.saxon.event.Sender.send(Sender.java:132)
at net.sf.saxon.Configuration.buildDocument(Configuration.java:3361)
at net.sf.saxon.Configuration.buildDocument(Configuration.java:3303)
at org.teiid.query.xquery.saxon.SaxonReader.parse(StreamingUtils.java:179)
... 10 more
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)