Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

JavaCallout error "Failed to instantiate the JavaCallout Class apigee.test.TestJavaProject"

Not applicable

I am using Java Callout policy where i am intending to populate the Java POJO objects using Jackson databinding based on the JSON service callout response.

I have noticed that as soon as i import Jackson ObjectMapper dependency as follows :

import com.fasterxml.jackson.databind.ObjectMapper

I start getting following error while deployment :

The revision is deployed, but traffic cannot flow. Failed to instantiate the JavaCallout Class apigee.test.TestJavaProject

I have added the required jackson dependency jars & the Java code works perfectly fine in Eclipse in standalone mode.

Following are my dependency jars :

3220-jars.png

The ObjectMapper class is part of jackson-databind-2.6.3.jar.

Can you please help me fix this issue ?

0 11 1,351
11 REPLIES 11