Forum Discussion

amitgrover8's avatar
amitgrover8
Occasional Contributor
9 years ago

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.

  • amitgrover8's avatar
    amitgrover8
    9 years ago

    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>

  • nmrao's avatar
    nmrao
    Champion Level 3

    amitgrover8

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

    • amitgrover8's avatar
      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.

      • nmrao's avatar
        nmrao
        Champion Level 3

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