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

Getting fault string as "Failed to execute JavaCallout. null" while executing java callout

Not applicable

Hello,

I am getting the following error while running the java-callout jar with "no-target" api proxy.

{"fault":{"faultstring":"Failed to execute JavaCallout. null","detail":{"errorcode":"steps.javacallout.ExecutionError"}}}

Attached the revision zip for the Api ,

organization name :: globallogic

Api proxy name :: No-Target

Solved Solved
0 10 1,419
1 ACCEPTED SOLUTION

Even in this source code you have additional Apigee classes. Please remove that and bundle only the CityLookup class.

You are using ExceptionUtils from apache commons. I am not sure if that is available or you have to package it along with your code. It might be the later , please check there.

Also the policy needs to be attached on the Response side and not on request side. I just used your code and it works perfectly if I put it on Response but throws the same error if used on Request side.

View solution in original post

10 REPLIES 10
Top Solution Authors