Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4970

Cannot use xquery predicate in filter after an xpath splitter.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.9.0
    • 2.8.5, 2.9.1, 2.10.0
    • camel-saxon
    • Unknown

    Description

      After upgrading from 2.5.0 to 2.9.0 using xqury predicate after an xpath filter throws java.lang.ClassCastException: net.sf.saxon.tinytree.TinyElementImpl cannot be cast to net.sf.saxon.om.DocumentInfo . Attached unit test doesn't fail in camel 2.5.0.

      from("direct:xpath")
      .split(xpathsplitter)
      .filter().xquery("//record[type=2]")
      .to("mock:result");

      See nabble discussion http://camel.465427.n5.nabble.com/Unit-test-fails-after-upgrading-to-2-7-1-Cannot-use-xquery-expression-after-xpath-td4422582.html

      Attachments

        1. XqueryPredicateFilterTest.java
          1 kB
          Lefteris Tsallas

        Activity

          People

            njiang Willem Jiang
            ltsall Lefteris Tsallas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: