[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [iaik-ssl] HttpsURLConnection giving ClassCastException in Weblogic



Hi

The following seems to solve the problem

1 in weblogic.properties disable SSLHandler by placing
  weblogic.security.SSLHandler.enable=false

2. In weblogic.policy add the following
	permission java.util.PropertyPermission "java.protocol.handler.pkgs",
"write";

Regards
Shashi
-----Original Message-----
From: Patric Wernqvist (ERA) [mailto:Patric.Wernqvist@era.ericsson.se]
Sent: Thursday, September 06, 2001 11:18 PM
To: 'hskiran@icope.com'
Subject: RE: [iaik-ssl] HttpsURLConnection giving ClassCastException in
Weblogic


Hi,

Did you get any answers on your problem? I seem to have the same problem
when I'm trying to use the about the same code as you but in an applet.

Regards
Patric Wernqvist



-----Original Message-----
From: Shashi Kiran H [mailto:hskiran@icope.com]
Sent: Tuesday, May 23, 2000 9:12 AM
To: iaik-ssl@iaik.at
Subject: [iaik-ssl] HttpsURLConnection giving ClassCastException in
Weblogic


Hi

I am using iSaSiLk3.03, for HttpsConnection.As shown in the demo example
if i cast URLConnection to iaik.protocol.https.HttpsURLConnection.
During the execution of this code, on the weblogic console i see the
following exception:

java.lang.ClassCastException: weblogic.net.http.HttpURLConnection
        at
CoCoNet.multiweb.mobilebanking.push.connector.SMSConnector.postURL(SMSConnec
tor.java)
        at
CoCoNet.multiweb.mobilebanking.push.connector.SMSConnector.getResponseSMSReq
uest(SMSConnector.java)
        at
CoCoNet.multiweb.mobilebanking.push.connector.SMSConnector.push(SMSConnector
.java)
        at
CoCoNet.multiweb.mobilebanking.push.servlet.PushServlet.doGet(PushServlet.ja
va)
        at
CoCoNet.multiweb.mobilebanking.push.servlet.PushServlet.doPost(PushServlet.j
ava)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:105)
        at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:742)
        at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:686)
        at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:247)
        at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
        at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

And the code is as follows:

HttpsURLConnection urconnection = null;
System.getProperties().put("java.protocol.handler.pkgs", "iaik.protocol");
urconnection=(HttpsURLConnection)url.openConnection();//HERE class cast
exception
SSLContext context = new SSLClientContext();
urconnection.setSSLContext(context);
urconnection.setDoInput(true);
urconnection.setDoOutput(true);
DataOutputStream dout=new DataOutputStream(urconnection.getOutputStream());
dout.writeBytes(toBePosted);
dout.flush();
dout.close();

Does anyone know the solution for this.

Thanks in advance

Regards
Shashi


--
Mailinglist-archive at
http://jcewww.iaik.at/mailarchive/iaik-ssl/sslthreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content:
UNSUBSCRIBE iaik-ssl


--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-ssl/sslthreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-ssl