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

XQuery support broken in Camel 2.18.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.0, 2.18.1
    • 2.18.2, 2.19.0
    • camel-saxon
    • None
    • Unknown

    Description

      The camel xquery support no longer works correctly as of 2.18.x

      I identified two main issues so far:

      1. A java.lang.NullPointerException is thrown when exchange contains any null headers or properties:
        java.lang.NullPointerException: External object cannot wrap a Java null
        	at net.sf.saxon.value.ObjectValue.<init>(ObjectValue.java:55)
        	at org.apache.camel.component.xquery.XQueryBuilder.addParameters(XQueryBuilder.java:640)
        
      2. An error in execution whenever a header or a property are referenced in the xquery as an external variable:
        java.lang.AssertionError: Unknown event
        	at net.sf.saxon.evpull.ComplexContentProcessor.advance(ComplexContentProcessor.java:198)
        

      Attached is a maven project with junit test illustrating the issues.

      Attachments

        1. camel-xquery-test.zip
          3 kB
          Nikolay Voskresenskiy

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              nvoskresenskiy Nikolay Voskresenskiy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: