issue while deploying into environment in Apigee X

Hi Team,

I have migrated the Apigee On-Prem code into Apigee X. Proxy got created successfully. but while deploying the proxy into environment I am getting deployment error as below.

instance "first" reported error entities.ConfigurationFailed: "Configuration failure: Caused by: java.lang.NoClassDefFoundError: net/minidev/json/parser/ParseException\n\tat com.jayway.jsonpath.internal.filter.ValueNode.createJsonNode(ValueNode.java:211)\n\tat com.jayway.jsonpath.internal.filter.FilterCompiler.readJsonLiteral(FilterCompiler.java:276)\n\tat com.jayway.jsonpath.internal.filter.FilterCompiler.readLiteral(FilterCompiler.java:115)\n\tat com.jayway.jsonpath.internal.filter.FilterCompiler.readValueNode(FilterCompiler.java:103)\n\tmore...\nCaused by: java.lang.ClassNotFoundException: net.minidev.json.parser.ParseException\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)\n\tat java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)\n\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)\n\tat com.jayway.jsonpath.internal.filter.ValueNode.createJsonNode(ValueNode.java:211)\n\tmore..."

When I removed the Extract Variable policies having the similar logic as below I am able to deploy into environment.

Can you please suggest the supported code in Apigee X for below logic

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables async="false" continueOnError="false" enabled="true" name="ExtractVars-ScapInfo">
<DisplayName>ExtractVars-ScapInfo</DisplayName>
<FaultRules/>
<Properties/>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<JSONPayload>
<Variable name="packagename">
<JSONPath>$.transaction.info.rateplans.rateplan[?(@.scapId == {apigee.scapid})].packageName[0]</JSONPath>
</Variable>
<Variable name="servicepackagename">
<JSONPath>$.transaction.info.rateplans.rateplan[?(@.scapId == {apigee.scapid})].servicePackageName[0]</JSONPath>
</Variable>
<Variable name="servicepackageservicename">
<JSONPath>$.transaction.info.rateplans.rateplan[?(@.scapId == {apigee.scapid})].servicePackageServiceName[0]</JSONPath>
</Variable>
<Variable name="packagedefinitionid">
<JSONPath>$.transaction.info.rateplans.rateplan[?(@.scapId == {apigee.scapid})].BSS-PackageDefinitionID[0]</JSONPath>
</Variable>
<Variable name="servicepackageid">
<JSONPath>$.transaction.info.rateplans.rateplan[?(@.scapId == {apigee.scapid})].ServicePackageID[0]</JSONPath>
</Variable>
<Variable name="serviceid">
<JSONPath>$.transaction.info.rateplans.rateplan[?(@.scapId == {apigee.scapid})].ServiceID[0]</JSONPath>
</Variable>
</JSONPayload>
<Source clearPayload="false">calloutResponse.content</Source>
<VariablePrefix>apigee</VariablePrefix>
</ExtractVariables>

0 0 151
0 REPLIES 0