We're trying to use the "Json - Execute Multiple Queries" to extract specific parts of a JSON object, but get the following error. Attached is a screenshot of the action. Does anyone know the cause of the highlighted (bolded) error?
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath] DEBUG (com.nolio.platform.shared.parameter.InParameterPlaceHolder:170) - PlaceHolder for field [jsonObject] got value [{
"DeploymentBundle": {
"description": "Deployment Bundle - Ultar Demo",
"cloudDeployments": [{
"description": "Cloud Deployment 002",
"cloudType": "openStack",
"definitionFormat": "heat",
"definition": {
"template": {
},
"templateParameterValues": {
"parameters": "values"
}
}
}]
}
}]
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath] DEBUG (com.nolio.platform.shared.datamodel.Action:409) - Next Action Execution State Execute
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath] INFO (com.nolio.platform.shared.datamodel.Action:332) - ------------------------About to execute action [Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath]------------------------
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath] ERROR (com.nolio.platform.shared.datamodel.Action:119) - Exception caught: java.lang.NoSuchMethodError: com.jayway.jsonpath.JsonPath.parse(Ljava/lang/String;)Lcom/jayway/jsonpath/DocumentContext;
java.lang.NoSuchMethodError: com.jayway.jsonpath.JsonPath.parse(Ljava/lang/String;)Lcom/jayway/jsonpath/DocumentContext;
at com.nolio.platform.shared.executables.actions.ExecuteMultiQueriesFromJsonAction.execute(ExecuteMultiQueriesFromJsonAction.java:223)
at com.nolio.platform.shared.datamodel.ActionExecutionState.localExecution(ActionExecutionState.java:333)
at com.nolio.platform.shared.datamodel.ActionExecutionState.access$500(ActionExecutionState.java:39)
at com.nolio.platform.shared.datamodel.ActionExecutionState$2.execAction(ActionExecutionState.java:112)
at com.nolio.platform.shared.datamodel.ActionExecutionState.exec(ActionExecutionState.java:343)
at com.nolio.platform.shared.datamodel.Action.run(Action.java:227)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.nolio.platform.shared.flowcontrol.LocalFlowController$JobBoundThreadFactory$1.run(LocalFlowController.java:788)
at java.lang.Thread.run(Unknown Source)
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath] DEBUG (com.nolio.platform.shared.datamodel.Action:409) - Next Action Execution State Stopped
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919):Json - Execute Multiple Queries Using JSONPath] DEBUG (com.nolio.platform.shared.datamodel.Step:573) - Queued at [5] Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919)
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919)] DEBUG (com.nolio.platform.shared.flowcontrol.logic.StepExecutionState:35) - StepActionExecutionLogic of "Json - Execute Multiple Queries Using JSONPath"
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919)] DEBUG (com.nolio.platform.shared.datamodel.Step:390) - Evaluating Step Result for Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919)
2016-03-15 09:13:03,138 [job-131219-jobServer-131220-2:Json - Execute Multiple Queries Using JSONPath(P2398.F21915.E21919)] INFO (com.nolio.platform.shared.comm.PublicRelationsService:149) - nodeUpdate| Json - Execute Multiple Queries Using JSONPath | P2398.F21915.E21919 | FAILED_PAUSED
FTR, the following jars are installed in the agent's \actionslib directory:
json-20080701.jar
json-lib-2.1-rev7.jar
json-path-2.0.0.jar
json-smart-2.1.1.jar
Message was edited by: Mark Lynch Added json related jars installed in \actionslib dir.