You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Robert Dyas <rd...@adelphia.net> on 2001/01/09 00:46:48 UTC

SOAP SSL exceptions and error messages

Hi Everyone,

It does not appear that soap.jar (with SSL) passes exception information
very well.

There are two copies of error output below. The first one is for an
"untrusted server cert chain" when simplying using URL outside of the soap
framework. The second one is accessing the same server, and I am pretty sure
generating the same error, however the info passed along by soap is so
limited that you would never be able to debug it.

Is there a way to get soap to pass along better exception information?


**************** error output from JSSE not using soap *************
Exception in thread "main" javax.net.ssl.SSLException: untrusted server cert
chain
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-
120198])
        at
com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198
])
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
        at
com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
        at java.io.OutputStream.write(Unknown Source)
        at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake([DashoPro-V1.2-120
198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-
V1.2-120198])
        at
com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoP
ro-V1.2-120198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-1201
98])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoPro-V1.2
-120198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([DashoPro-V1.
2-120198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([Dash
oPro-V1.2-120198])
        at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStrea
m([DashoPro-V1.2-120198])
        at java.net.URL.openStream(Unknown Source)
        at URLReader.main(URLReader.java:47)




**************** error output from same errror with soap *************

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Error
opening socket: null; targetException=java.lang.IllegalArgumentException:
Error
opening socket: null]
        at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.ja
va:184)
        at org.apache.soap.rpc.Call.invoke(Call.java:172)
        at GetQuote.main(GetQuote.java:40)