java.net.SocketException: Connection reset

tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


rafael
tip

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Is proxy usable?
    via GitHub by tomgoto
    ,
  • GitHub comment 523#236995595
    via GitHub by biancajiang
    ,
    • java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at com.microsoft.aad.adal4j.HttpHelper.readResponseFromConnection(HttpHelper.java:71) at com.microsoft.aad.adal4j.HttpHelper.getResponse(HttpHelper.java:175) at com.microsoft.aad.adal4j.HttpHelper.executeGetRequest(HttpHelper.java:149) at com.microsoft.aad.adal4j.HttpHelper.executeHttpGet(HttpHelper.java:50) at com.microsoft.aad.adal4j.HttpHelper.executeHttpGet(HttpHelper.java:42) at com.microsoft.aad.adal4j.MexParser.getWsTrustEndpointFromMexEndpoint(MexParser.java:105) at com.microsoft.aad.adal4j.WSTrustRequest.execute(WSTrustRequest.java:53) at com.microsoft.aad.adal4j.AuthenticationContext.processPasswordGrant(AuthenticationContext.java:841) at com.microsoft.aad.adal4j.AuthenticationContext.access$000(AuthenticationContext.java:66) at com.microsoft.aad.adal4j.AuthenticationContext$1.call(AuthenticationContext.java:173) at com.microsoft.aad.adal4j.AuthenticationContext$1.call(AuthenticationContext.java:163) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    r1chjames
    r1chjames2 times, last one,
    serious2monkeys
    serious2monkeys1 times, last one,
    Unknown visitor1 times, last one,
    263 more bugmates