spring-testing icon indicating copy to clipboard operation
spring-testing copied to clipboard

Exception in thread "main" java.net.SocketException: Broken pipe

Open CODEHUSTLE opened this issue 1 year ago • 1 comments

Receiving exception after running, "./gradlew bootRun" and having PostgreSQL DB up and running. Following README install and run instructions.

Exception in thread "main" java.net.SocketException: Broken pipe at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420) at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440) at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826) at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1035) at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:266) at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:89) at java.base/sun.security.ssl.ClientHello$ClientHelloKickstartProducer.produce(ClientHello.java:657) at java.base/sun.security.ssl.SSLHandshake.kickstart(SSLHandshake.java:529) at java.base/sun.security.ssl.ClientHandshakeContext.kickstart(ClientHandshakeContext.java:107) at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:251) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:443) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) at org.gradle.wrapper.Download.downloadInternal(Download.java:100) at org.gradle.wrapper.Download.download(Download.java:80) at org.gradle.wrapper.Install$1.call(Install.java:68) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)

CODEHUSTLE avatar Dec 19 '24 21:12 CODEHUSTLE

Without further context it's a little hard to help troubleshoot this error message. I just tried the example on my machine and everything works fine. Can you give me a few more details to help investigate?

  • what Java version are you using (java -version)
  • what operating system are you using?
  • is there any anti-virus software running on your machine that could interfere with gradle downloading its dependencies? could you disable it temporarily and try again to see if it works? this Stack Overflow Q&A might contain some helpful pointers
  • are there any other parts that could mess with your network connection (firewall, proxy)?

hamvocke avatar Dec 23 '24 10:12 hamvocke