Troubleshooting exceptions | APM Insight Java agent

Resolve the error message "Metric dispatch failed. Exception: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection is observed in agent logs"

This exception occurs specifically in weblogic servers, as it uses its own HTTP handler.
To resolve this kindly add the parameter -DUseSunHttpHandler=true to the JVM arguments and restart the weblogic server instances.


Example: -DUseSunHttpHandler=true -javagent:C:/apminsight/apminsight-javaagent.jar