Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 Client throws javax.net.ssl.SSLHandshakeException

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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





 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic