Ask a Question

Property Transfer step is getting failed with maven

SOLVED
amitgrover8
Occasional Contributor

Property Transfer step is getting failed with maven

Hi,

 

All my property transfer steps are getting failed on jenkins server running with maven, these steps are getting passed on my local system. I am getting following error on jenkins. Unable to fix this issue. 

java.lang.RuntimeException:  Trying XBeans path engine... Trying XQRL... Trying delegated path engine... FAILED on //COUNT
	at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:173)
	at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:130)
	at org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.java:902)
	at org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.java:894)
	at org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java:2616)
	at com.eviware.soapui.support.xml.XmlUtils.selectFirstDomNode(XmlUtils.java:1187)
	at com.eviware.soapui.support.xml.XmlUtils.selectFirstNodeValue(XmlUtils.java:1169)
	at com.eviware.soapui.support.XmlHolder.getNodeValue(XmlHolder.java:72)
	at com.eviware.soapui.support.XmlHolder$getNodeValue.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at Script1.run(Script1.groovy:15)
	at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92)
	at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141)
	at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211)
	at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47)
	at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138)
	at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46)
	at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)

Any help would be appriciated.

6 REPLIES 6
nmrao
Community Hero

@amitgrover8

Would you like to show the response xml that is passed as input to property  and the xpath that you are applying?



Regards,
Rao.
amitgrover8
Occasional Contributor

Proprty Transfer XML

<con:testStep type="transfer" name="segmentAttributeTRANS" id="e46c5881-2513-4ca7-b85a-4896f401b76d">
<con:settings/>
<con:configxsi:type="con:PropertyTransfersStep"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true" ignoreEmpty="false" transferToAll="false" entitize="false" transferChildNodes="false">
<con:name>attributeid</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>postSegmentAttribute</con:sourceStep><con:sourcePath>userstateid</con:sourcePath><con:targetType>attributeid</con:targetType><con:targetStep>verifySegment_DB</con:targetStep><con:type>JSONPATH</con:type><con:targetTransferType>JSONPATH</con:targetTransferType><con:upgraded>true</con:upgraded></con:transfers>

Screenshot attached.

Sorry to say, your reply did not help / in sync to what was requested.



Regards,
Rao.
amitgrover8
Occasional Contributor

Hi Rao,

 

Which XML you need? Project xml?

amitgrover8
Occasional Contributor

Here is one other example.

 

Response of JDBC step.

 

<Results>
    <ResultSet fetchSize="10">
        <Row rowNumber="1">
            <AUDIENCE_ATTRIBUTE_ID>35801365</AUDIENCE_ATTRIBUTE_ID>
        </Row>
    </ResultSet>
</Results>

 

 

Property Transfer Steps:

Source:

JDBC Step, Property: ResponseAsXML, Path language: XPath

//AUDIENCE_ATTRIBUTE_ID

Target:

Another Get Call, Peroperty: aa_id, Path language: XPath

 

You can see above property transfer step in attached screenshot.

 

This is working fine in SOAP UI, bit getting earlier mentioned error on jenkins.

 

Also I am getting same error for Script assertions and JSON path property transfer.

 

Script Assertion for other step:

 

import com.eviware.soapui.support.XmlHolder


def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder ("getAttributeExportWithProviderName#ResponseAsXml")

exportData= holder.getNodeValue ("//data")


assert exportData != null

Response for getAttributeExportWithProviderName step:

<data contentType="text/csv;charset=utf-8" contentLength="34127"><![CDATA["Attribute ID","Full Path","Attribute Name","Provider","CPM","Internet","Owned","CRM","Internet ru4.com","Internet rfihub.com","Owned ru4.com","Owned rfihub.com","KeyChain Count",
"55144320","Demographic>>Age Range>>Age Range By Provider>>18 to 19","18 to 19","Experian","0.75","0","0","0","0","0","0","0","0",
"55144322","Demographic>>Age Range>>Age Range By Provider>>20 to 29","20 to 29","Experian","0.75","0","0","0","0","0","0","0","0",
"55144324","Demographic>>Age Range>>Age Range By Provider>>30 to 39","30 to 39","Experian","0.75","34248000","0","0","1074000","33678000","0","0","0",
"55144326","Demographic>>Age Range>>Age Range By Provider>>40 to 49","40 to 49","Experian","0.75","39954000","0","0","1161000","39357000","0","0","0",

This script aseertion also passed in SOAPUI UI.

 

Summary: 

All steps passed in SoapUI UI which contains Xpath Property Transfer, JSON Path property transfer, Script Assertion for Xpath and Json path.

 

PS: I am using REST services, so most of the response are in JSON, but all DB steps has XML response and some of the API is returning XML

 

Thanks Rao for looking into. Please let me know if you need anything else.

 

amitgrover8
Occasional Contributor

This issue is resolved after adding following dependencies and uploaded the JARs to our local Nexus server used by jenkins server.

Thanks @nmrao  for looking into this.

 

<dependency>

<groupId>org.apache.xmlbeans</groupId>

<artifactId>xmlbeans-xpath</artifactId>

<version>2.4.0</version>

</dependency>

<dependency>

<groupId>net.sf.saxon</groupId>

<artifactId>saxon</artifactId>

<version>9</version>

</dependency>

<dependency>

<groupId>net.sf.saxon</groupId>

<artifactId>saxon-xpath</artifactId>

<version>8.7</version>

</dependency>

<dependency>

<groupId>net.sf.saxon</groupId>

<artifactId>saxon</artifactId>

<version>9</version>

</dependency>

<dependency>

<groupId>net.sf.saxon</groupId>

<artifactId>saxon-dom</artifactId>

<version>9</version>

</dependency>

cancel
Showing results for 
Search instead for 
Did you mean: