SoupUI - Jenkins run has error:org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to org.apache.xmlbeans.impl.store.SaxonXBeansDelegate$SelectPathInterface

Recently, i run SoapUI script with Jenkins + Maven, encounter the below error message:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
java.lang.RuntimeException: java.lang.ClassCastException: org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to org.apache.xmlbeans.impl.store.SaxonXBeansDelegate$SelectPathInterface
at org.apache.xmlbeans.impl.store.SaxonXBeansDelegate.createInstance(SaxonXBeansDelegate.java:102)
at org.apache.xmlbeans.impl.store.Path$SaxonPathImpl.create(Path.java:448)
at org.apache.xmlbeans.impl.store.Path.getCompiledPathSaxon(Path.java:185)
at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:115)
at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:91)
at org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.java:902)
at org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java:2634)
at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:431)
at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:415)
at com.eviware.soapui.support.xml.XmlUtils.getXPathValue(XmlUtils.java:1349)
at com.eviware.soapui.assertion.messagecontent.MessageContent.setCurrent(SourceFile:149)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.MessageContentAssertion.internalAssertResponse(SourceFile:102)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion.assertResponse(WsdlMessageAssertion.java:150)
08:09:30,321 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.assertResponse(RestTestRequest.java:141)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:128)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:809)

Can’t find a method to solve this even google more, finally got it, update ‘poi-ooxml’ to the latest version in pom.xml.

1
2
3
4
5
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.15</version>
</dependency>

唐胡璐 wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!
分享创造价值,您的支持将鼓励我继续前行!