You start up a Java process running with the New Relic Java agent, but data fails to report to the APM UI. You see an
Error bootstrapping New Relic agent message in the stack trace in your application logs.
Error bootstrapping New Relic agent can indicate multiple failure modes. The stack trace is also key in diagnosing this issue.
If the Java agent cannot create the temporary
jar files, it will fail to start up and will return the
Error bootstrapping New Relic agent line preceding the stack trace to
System.err. If you are using an app server, this usually appears in your app server's error logs.
Here are common reasons for this failure and the solution.