Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Axis2 Client throws javax.net.ssl.SSLHandshakeException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 Client throws javax.net.ssl.SSLHandshakeException" Watch "Axis2 Client throws javax.net.ssl.SSLHandshakeException" New topic
Author

Axis2 Client throws javax.net.ssl.SSLHandshakeException

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
I'm trying to call a web service that over https.
A client has given me his certificate and we have placed it in an oracle wallet (i.e. 10.1.3 oracle application server), on the same server that our client has been deployed to.
Before I call the clients web service using the generated Stub (i.e. created from the client wsdl), I set the following system properties in my code.

System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryImpl");
System.setProperty("java.protocol.handler.pkgs","HTTPClient");
System.setProperty("oracle.wallet.location",Z:\oracle\wallet);
System.setProperty("oracle.wallet.password",football123);

stub.sendSportData(sportDocument,authHeaderDocument);


Every time I call the stub I get the following exception being thrown:-

org.apache.axis2.AxisFault: Remote host closed connection during handshake org.apache.axis2.AxisFault: Remote host closed connection during handshake
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Caused by: java.io.EOFException: SSL peer shut down incorrectly

The Client does have a valid certificate that has been Issued to/by correctly and its validation dates are correct.

Has anybody got any ideas what could be causing this??

Mat





 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Axis2 Client throws javax.net.ssl.SSLHandshakeException
 
Similar Threads
Web Service client error
Remote host closed connection during handshake
SSLHandshakeException
Tomcat and SSL
How to create web service client to remote SSL service (HTTPS)?