java.net.SocketException: Connection reset

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
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

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

  • Help on Serializable
    via by Bill Robertson,
  • EOFException
    via GitHub by elmalto
    ,
  • Random SocketException: Connection reset
    via Stack Overflow by akafortes
    ,
  • Connection reset, java
    via Stack Overflow by Maxim Geerinck
    ,
  • Can not connect slave to master
    via Stack Overflow by parvus
    ,
    • java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2150) at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2558) at java.io.ObjectInputStream$BlockDataInputStream.readFully(ObjectInputStream.java:2582) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1834) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at testx.tests.ServerTest.begin(ServerTest.java:58) at testx.tests.ServerTest.main(ServerTest.java:22)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    ivanszkypeter
    ivanszkypeter40 times, last one,
    191 more bugmates