wood burning stoves 2.0*
The moose likes Servlets and the fly likes SSL peer shut down incorrectly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "SSL peer shut down incorrectly" Watch "SSL peer shut down incorrectly" New topic

SSL peer shut down incorrectly

Sunil Baboo

Joined: Aug 12, 2010
Posts: 16
I had an application that go through web link and retrieve information needed to me. I had used HTTPURLConnection to accomplish this. It is working for most of the link but for one link it didn't and throw exception.

javax.net.ssl.SSLException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:408)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:360)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:746)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at sun.net.www.MeteredStream.read(MeteredStream.java:116)
at java.io.FilterInputStream.read(FilterInputStream.java:116)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2512)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
SSL peer shut down incorrectly
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)

I though that it might be of socket timeout. Hence i set it to infinite timeout value.
URLConn.setConnectTimeout(0); Still it is not working.

Will someone suggest what is cooking over here. Please note that it is working for most of weblink.
I agree. Here's the link: http://aspose.com/file-tools
subject: SSL peer shut down incorrectly
Similar Threads
VisualVM 1.32 doesn't connect to WAS (Websphere Application Server)
SSLHandshakeException: Remote host closed connection during handshake
Tomcat and SSL
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
SSLHandshake Error while connection to remote server