Skip to content

Tag: httpsurlconnection cannot be cast to

I am getting “java.lang.ClassCastException” while trying to connect to a url using . 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