SV Workstation: XML parsing error on seemingly valid XML.

book

Article ID: 198011

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

I am getting an XML parsing error in DevTest that I am unable to figure out.

'Failed to execute the XPath queryjava.lang.Exception: com.ximpleware.XPathEvalException:  Function Expr can't eval to node set

Steps we have taken:

  • We have VTD set as the xpath parser.
  • In the file lisa.properties: lisa.xpath.useVtd=true
  • In the file local.properties: lisa.xml.xpath.computeXPath.alwaysUseLocalName=true
  • We have deployed the AssertionPair.jar file into the hotDeploy folder, as the test uses a custom java DTO.
  • As a test, the xpath of true() was used, and it still returns false.  The assertions are loaded in the excel file (DTO) in the data folder.

I am not able to spot any invalid xml in this, and as such, don't know why I'm getting the parsing error.

Environment

Release : 10.5

Component : CA Service Virtualization

Resolution

Sustaining Engineering provided a Workstation patch to address this issue. The patch is in the lisa-ws-xml-10.5.0.jar file.

If you are seeing a similar issue, contact support and request a copy of the lisa-ws-xml-10.5.0.jar patch.

The steps to apply the patch:

1) Go to Workstation machine and go to /lib/core/ directory.

2) Take the backup of lisa-ws-xml-10.5.0.jar.

3) Download the jar from the support case and copy it there.

4) Restart the Workstation.

 

After applying the patch, test all the scenarios.