poi-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/XMLBEANS-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792466#comment-16792466
] 

Panos Kavalagios commented on XMLBEANS-534:
-------------------------------------------

I confirm that the staging 3.0.3 fixes the issue. Well the error message is the same. I can't
be sure if it is the same or it is fixed from another change. I have added to my settings.xml:
 {code:xml}
<repository>
	<id>xmlbeans</id>
	<url>https://repository.apache.org/content/repositories/staging/</url>
	<name>XMLBeans Staging Repository</name>
	<snapshots>
		<enabled>true</enabled>
	</snapshots>
</repository>
{code}

changed the provided sample project POM's as following:

{code:xml}
<xmlbeans.version>3.0.3</xmlbeans.version>
{code}

and after the compilation, it worked fine.

Panos

> 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