I've seen this particular issue on various forums, but I haven't seen any solutions. I have an Oracle 10g Application server that's using javax.net.ssl.HttpsURLConnection to connect to a remote server from an
EJB. Most of the time it works, but about once a month all the connections stop working. When we restart the server on our end they start connecting again, so although the error appears to be coming from the other end, I think it's some problem with the javax.net implementation on our end.
Here is the error:
javax.net.ssl. SSLHandshakeException: Remote host closed connection during handshake
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275(Compiled Code))
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at com.ibm.net.ssl.www.protocol.https.b.o(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.q.connect(Unknown Source)
at com.ibm.net.ssl.www.protocol.http.ci.getOutputStream(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.t.getOutputStream(Unknown Source)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275(Compiled Code))
... 11 more