java.net.SocketException: Socket is closed

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

  • Socket.shutdownOutput() closes socket inside JVM
    via by Marcus Rangel,
  • [groovy-user] Using Slide . . .
    via by Russel Winder,
  • tomcat not responding.
    via by gudala kumar,
  • Strange Exception
    via GitHub by dfarina
    ,
  • pgpool Bug Tracker
    via by Unknown author,
    • java.net.SocketException: Socket is closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.net.SocketInputStream.read(SocketInputStream.java:90) at kiman.socktest.test(socktest:76)

    Users with the same issue

    ivanszkypeter
    ivanszkypeter40 times, last one,
    linxiaolong
    linxiaolong2 times, last one,
    Unknown visitor1 times, last one,
    tvrmsmith
    tvrmsmith1 times, last one,
    Михайло Тітов
    Михайло Тітов1 times, last one,
    235 more bugmates