Search This Blog

Sunday, June 6, 2010

java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection - Weblogic

While making a HTTP(s) connection to external resource from weblogic server following exception comes because underline API uses weblogic implemntation ..

Caught Exception creating connection: java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection

to avoid this problem ..

set following flag in the JVM args ..

-DUseSunHttpHandler=true

It will prefer to use sun implementation..

1 comment:

  1. Holy crap! Your post really saved me - the error is ridiculous as I have no out bout SOAP calls whatsoever

    ReplyDelete

Thanks for your comment, will revert as soon as we read it.

Popular Posts