Hi

Can you post the full stack trace?


Yeah if you have a small unit test that can go into camel-saxon, then
fell free to open a JIRA.



On Thu, Feb 2, 2012 at 11:51 AM, ltsall <[email protected]> wrote:
> Hi Claus,
>
> I created a unit test for this. See my first post.
>
> The problem is when i use an xquery  predicate just after an xpath splitter.
>
> from("direct:xpath")
> .split(xpathsplitter)
> .filter().xquery("//record[type=2]")
> .to("mock:result");
>
> This route  works in 2.5.0 but fails in 2.9.0 with
> java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot
> be cast to net.sf.saxon.om.DocumentInfo
>
>
> If i replace xquery predicate with an xpath one ,   the route works in both
> 2.5.0 and 2.9.0
>
> from("direct:xpath")
> .split(xpathsplitter)
> .filter().xpath("//record[type=2]")
> .to("mock:result");
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Unit-test-fails-after-upgrading-to-2-7-1-Cannot-use-xquery-expression-after-xpath-tp4422582p5450318.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to