Got error talking to TeamServer fetching instructions - Java Agent

  • Updated


The Contrast agent does not start up in your Java application and you see an ERROR in the contrast.log file containing a stack trace indicating Got error talking to TeamServer fetching instructions.


If the configured API key, Service key, or other connection parameter is wrong you might see this error in the debug logs for the Java Agent for example.

com.contrastsecurity.agent.features.BadInstructionException: Got error talking to TeamServer fetching instructions (response code = 412)
at com.contrastsecurity.agent.features.PhoneHomeResolver.parseFeatureSetResponse(
at com.contrastsecurity.agent.features.PhoneHomeResolver.findFeatures(
at com.contrastsecurity.agent.features.FeatureManager.updateFeatures(
at com.contrastsecurity.agent.startup.ChooseFeaturesTask.onStartupBegin(
at com.contrastsecurity.agent.ContrastEngine.start(
at com.contrastsecurity.agent.ContrastAgent.startup(
at com.contrastsecurity.agent.ContrastAgent.setup(
at com.contrastsecurity.agent.ContrastLoaderAgent.premain(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain( 


Double check that you're using the correct credentials.  In the Contrast UI you can use the "Add Agent" process to download a yaml configuration file. That will have the correct API info and formatting needed for the Java Agent to talk to the Contrast server. 

The steps for this are documented here:
Java Agent Installation > Contrast UI

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request