Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-534

Latest version 3.0.2 causes XPath exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • Version 3.0.2
    • None
    • XPath
    • None

    Description

      When using version 3.0.2, the following error occurs:

      Caused by: java.lang.RuntimeException:  Trying XBeans path engine... Trying XQRL... Trying XDK... Trying delegated path
      engine... FAILED on declare namespace so='http://tsso.eeas.eu/xml/schema/shiporder'; $this//so:shiporder/so:item[so:pric
      e > 9]
              at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:211) ~[xmlbeans-3.0.2.jar!/:na]
              at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:137) ~[xmlbeans-3.0.2.jar!/:na]
              at org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.java:902) ~[xmlbeans-3.0.2.jar!/:na]
              at org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java:2634) ~[xmlbeans-3.0.2.jar!/:na]
              at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:476) ~[xmlbeans-3.0.2.jar!/:na]
              at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:460) ~[xmlbeans-3.0.2.jar!/:na]
              at eu.eeas.tsso.security.sc07.XmlbeansParameterizedXpathExample.run(XmlbeansParameterizedXpathExample.java:79) [
      classes!/:0.0.1-SNAPSHOT]
              at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:813) [spring-boot-2.1.3.RELEASE.
      jar!/:2.1.3.RELEASE]
              ... 13 common frames omitted

      It works fine if you simply change the version back to 3.0.1. Attached is the affected maven sample project. The issue is no observed if you change the POM property xmlbeans.version to 3.0.1 or 2.6.0.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              panos Panos Kavalagios
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: