Skip to content

Tag: httpsurlconnection

weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

I am getting “java.lang.ClassCastException” while trying to connect to a url using javax.net.ssl.HttpsURLConnection . I am using Weblogic Server 10.3.4. The exception which i am getting is : Any possible reason of getting this error ? Answer I got the solution finally. If we are using Weblogic server, we must define: set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true …in the class path inside the