​Java call out Error Could not initialize class

Not applicable

I am using Java Callout policy where i am intending to publish some test message to kafka topic.

I'm getting below error when I launch the proxy url.

Could not initialize class com.yammer.metrics.Metrics","detail":{"errorcode":"Internal Server Error"}}}

I have added all the dependency jar that required for the java call out jars. callout.png. Please refer attached image.

I tried to adding all the dependency jars with my call out jar and tested but still am getting same error.

0 2 747
2 REPLIES 2

Hi - sorry about the delay in responding.

Usually the problem is that you do not have all the dependencies installed.

You said that you "tried to add all the dependency jars". Are you sure you got them all?

A tool like maven can track all the dependencies for you. If you use maven to build, then in the target/lib directory you will find all the JARs you need.


It seems you are trying to do some kafka stuff from within the Java callout. Which part of the Kafka client interfaces are you using? I suppose producer? If that is the case then you can use the simpler kafka-clients jar, correct?

Thanks for the reply. I managed to fix the issues.