Troubleshooting exceptions | APM Insight Java agent

Resolve the error message "Metric dispatch failed. Exception: cannot be cast to 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