Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AB007DA4 for ; Fri, 28 Oct 2011 14:18:55 +0000 (UTC) Received: (qmail 18632 invoked by uid 500); 28 Oct 2011 14:18:55 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 18601 invoked by uid 500); 28 Oct 2011 14:18:55 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 18566 invoked by uid 99); 28 Oct 2011 14:18:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 14:18:55 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 14:18:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 92BC8324E7C for ; Fri, 28 Oct 2011 14:16:32 +0000 (UTC) Date: Fri, 28 Oct 2011 14:16:32 +0000 (UTC) From: "Claus Ibsen (Resolved) (JIRA)" To: dev@camel.apache.org Message-ID: <615659868.31620.1319811392602.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1006395714.30830.1319799752433.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CAMEL-4594) Using Saxon to do XML split and xpath evaluation causes XPathExpression exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-4594. -------------------------------- Resolution: Fixed Fix Version/s: 2.9.0 2.8.3 > 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 > Fix For: 2.8.3, 2.9.0 > > > 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