poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PJ Fanning (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (XMLBEANS-534) Latest version 3.0.2 causes XPath exception
Date Thu, 14 Mar 2019 09:10:00 GMT

     [ https://issues.apache.org/jira/browse/XMLBEANS-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

PJ Fanning closed XMLBEANS-534.
-------------------------------
    Resolution: Duplicate

> Latest version 3.0.2 causes XPath exception
> -------------------------------------------
>
>                 Key: XMLBEANS-534
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-534
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XPath
>    Affects Versions: Version 3.0.2
>            Reporter: Panos Kavalagios
>            Priority: Critical
>         Attachments: sc07-parameterized-xpath-xmlbeans-example.zip
>
>
> When using version 3.0.2, the following error occurs:
> {noformat}
> 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{noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message