java.net.SocketException: Broken pipe (Write failed) at java.base/java.net.SocketOutputStream.socketWrite0(Native Method) at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:153) at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:236) at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:79) at java.base/sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1171) at java.base/sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1336) at java.base/sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1240) at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:414) at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1061) at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:995) at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1132) at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1069) at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:968) at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1395) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1422) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1406)

GitHub | yschimke | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 3069#269949611

    GitHub | 4 months ago | yschimke
    java.net.SocketException: Broken pipe (Write failed) at java.base/java.net.SocketOutputStream.socketWrite0(Native Method) at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:153) at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:236) at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:79) at java.base/sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1171) at java.base/sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1336) at java.base/sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1240) at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:414) at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1061) at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:995) at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1132) at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1069) at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:968) at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1395) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1422) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1406)
  2. 0

    Java SSLSocket does not close connection cleanly on handshake error

    Stack Overflow | 3 weeks ago | Dmitry Risenberg
    java.net.SocketException: Broken pipe
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Javax.mail throwing an exception on Raspberry Pi but not on My Mac

    Stack Overflow | 6 months ago | Aryak Pande
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Broken pipe

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.SocketException

      Broken pipe (Write failed) at java.base/java.net.SocketOutputStream.socketWrite0(Native Method) at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:153) at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:236) at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:79) at java.base/sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1171) at java.base/sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1336) at java.base/sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1240) at java.base/sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:414) at java.base/sun.security.ssl.Handshaker.processLoop(Handshaker.java:1061) at java.base/sun.security.ssl.Handshaker.processRecord(Handshaker.java:995) at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1132) at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1069) at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:968) at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1395) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1422) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1406)

      at SSLSocketAlpnTest.doClientSide()
    2. Unknown
      SSLSocketAlpnTest.main
      1. SSLSocketAlpnTest.doClientSide(SSLSocketAlpnTest.java:232)
      2. SSLSocketAlpnTest.startClient(SSLSocketAlpnTest.java:475)
      3. SSLSocketAlpnTest.<init>(SSLSocketAlpnTest.java:357)
      4. SSLSocketAlpnTest.main(SSLSocketAlpnTest.java:293)
      4 frames