This exception occurs specifically in weblogic servers, as it uses its own HTTP handler.
To resolve this kindly add the below parameter to the JVM arguments and restart the weblogic server instances.
-DUseSunHttpHandler=true Example:
-DUseSunHttpHandler=true -javagent:C:/apminsight/apminsight-javaagent.jar