XQuery component does not work with StAXSource out of the box -------------------------------------------------------------
Key: CAMEL-4584 URL: https://issues.apache.org/jira/browse/CAMEL-4584 Project: Camel Issue Type: Bug Components: camel-saxon Affects Versions: 2.8.2 Reporter: Claus Ibsen Assignee: Claus Ibsen Priority: Minor Fix For: 2.9.0 The new STaXSource type converters cause camel-saxon to fail unit tests as reported by CI servers Caused by: net.sf.saxon.trans.XPathException: Unknown source class at net.sf.saxon.Configuration.buildDocument(Configuration.java:2892) at net.sf.saxon.query.StaticQueryContext.buildDocument(StaticQueryContext.java:211) at org.apache.camel.component.xquery.XQueryBuilder.createDynamicContext(XQueryBuilder.java:474) We should implement the same optimized logic as we did today in XSLT to convert to Source if StAX is allowed, as well to avoid leaking resources we need to ensure if InputStream is in use, we should ensure it gets closed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira