Javacallout policy failing with an error on onprem

Not applicable

Javacallout policy is failing on on-prem instance , while same code is working on saas instance of APIGEE.

We trying to fetch values from KVM , as json paths and trying to mask. We are getting below error

error com.jayway.jsonpath.JsonPath.using(Lcom/jayway/jsonpath/Configuration;)Lcom/jayway/jsonpath/ParseContext;
type ErrorPoint
state PROXY_REQ_FLOW
error.class java.lang.NoSuchMethodError
Identifier fault

We are using exteral dependencies eg : JsonPath , Jackson etc.

0 1 76
1 REPLY 1

The NoSuchMethodError indicates that you have a JAR file that satisfies the class dependency, but the particular method is not available on the jar. (If you were completely missing the Jar, then you'd get a ClassNotFound Exception.)

This indicates that you have an out-of-date jar file, or that perhaps you have an older jar file that provides the class in question, but does not provide the specific method you're looking for.

Can you check the versions of the JARs you're using?

I don't know the jayway JsonPath library. But if it has gone through different revisions, it's possible that the implementers added a method in later revisions, and that if you are using an earlier jar, you're missing that method.