• Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL peer shut down incorrectly  RSS feed

Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!