Using Saxon to do XML split and xpath evaluation causes XPathExpression
exception
---------------------------------------------------------------------------------
Key: CAMEL-4594
URL: https://issues.apache.org/jira/browse/CAMEL-4594
Project: Camel
Issue Type: Bug
Components: camel-saxon
Affects Versions: 2.8.2
Reporter: Claus Ibsen
Assignee: Claus Ibsen
If you do a route like
{code}
from("direct:start")
.split().xpath("/persons/person")
.choice()
.when().xpath("person/city = 'London'")
.to("mock:london")
.when().xpath("person/city = 'Paris'")
.to("mock:paris")
.otherwise()
.to("mock:other");
{code}
Then Saxon throws this exception
{code}
Caused by: javax.xml.xpath.XPathExpressionException: Supplied node must be
built using the same or a compatible Configuration
at
net.sf.saxon.xpath.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:284)
at
org.apache.camel.builder.xml.XPathBuilder.doInEvaluateAs(XPathBuilder.java:677)
... 77 more
{code}
--
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