"Json - Execute Multiple Queries Using JSONPath" action is always failed after upgraded Release Automation

Document ID : KB000004927
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Run "Json - Execute Multiple Queries Using JSONPath" action, and then following error was occurred.

Error occurred during action execution: com.jayway.jsonpath.JsonPath.parse(Ljava/lang/String;)Lcom/jayway/jsonpath/DocumentContext;

However, action properties are correct settings.

Environment:
Using action packs generated by Rapid Development Kit (RDK).This problem was reported:- Release Automation 6.2 with RDK 1.0.5
Cause:

RDK has old libraries related to JSON parser. RDK 1.0.6 is also same condition.

 

Resolution:

Here is workaround steps:

  1. Copy following files on RA Management Server.
     <RA Server>/actionlib/json-path-2.0.0.jar
     <RA Server>/actionlib/json-smart-2.1.1.jar
  2. Paste 2 files to following directory on RDK machine.
     <Tomcat>/webapps/RDKServer/workingDirectory/
  3. Move following files to external RDK directory for backup.
     <Tomcat>/webapps/RDKServer/workingDirectory/json-path-0.9.1.jar
     <Tomcat>/webapps/RDKServer/workingDirectory/json-smart-1.2.jar
  4. Export action packs using RDK.
    If the action pack has same version, it will replace old definition on next step.
  5. Import action packs using Automation Studio.
Additional Information: