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