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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by yschimke
, 10 months ago
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
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 undefined.SSLSocketAlpnTest.doClientSide(SSLSocketAlpnTest.java:232)
at undefined.SSLSocketAlpnTest.startClient(SSLSocketAlpnTest.java:475)
at undefined.SSLSocketAlpnTest.(SSLSocketAlpnTest.java:357)
at undefined.SSLSocketAlpnTest.main(SSLSocketAlpnTest.java:293)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.