java.net.SocketException

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.

  • GitHub comment 200#274284838
    via GitHub by bulagump
    ,
  • GitHub comment 6#169681105
    via GitHub by RoxaneKoitz
    ,
  • GitHub comment 3#193959612
    via GitHub by TARhub
    ,
  • Why doesn't this code works?
    via Stack Overflow by Pushpinder Singh Grewal
    ,
  • 注册失败后的未释放资源
    via GitHub by gogo81745
    ,
  • java.net.SocketException: Connection Reset 2
    via Stack Overflow by tei06398
    ,
    • java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at com.phenix.pct.BackgroundWorker.listen(BackgroundWorker.java:103) at com.phenix.pct.PCTBgRun$ListenerThread$1.run(PCTBgRun.java:683) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Andreas Häber
    4 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Axelo
    1 times, last one,
    196 more bugmates