java.net.SocketException

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

Client closed the websocket connection (safe to ignore)

tip

Upgrade your docker-selenium

tip

*not english*


poroszdporoszd
tip

Nginx does not handle websocket requests. Configure nginx proxy for websockets.

tip

It takes too long time for the JVM to find enough entropy for secure connection. Use this jvm option: '-Djava.security.egd=file:/dev/./urandom'.

tip

Upgrade yokozuna

tip

Set larger socket timeout (or 0 to set no timeout).

tip

Upgrade your nanohttpd

tip

Here is a animation for the life cycle. http://tcp.cs.st-andrews.ac.uk/index.shtml?page=connection_lifecycle

tip

Probably there is a bug in TestNG Eclipse plugin (6.8.6.20130607_0745), try an other version (e.g. 6.8.0.20121120_1820)

tip

before running my test in debug mode, i open the debug view, and remove some breakpoints (such as some remaining on NullPointersExceptions, and Sockets)

tip

Try removing all the breakpoints (even if breakpoints are disabled the problem still occurs, yes even if both disabled entirely and piecewise).

tip

There is a known issue between TestNG 6.4 and IDEA, the next EAP will fix this but in the meantime, use the previous version.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Large File Upload Fails with JMeter
    via Stack Overflow by Samasambo
    ,
  • Hi, in my Nexus, Health Check Central fail: 2013-06-14 05:27:01 WARN [pool-1-thread-4] - com.sonatype.nexus.plugins.health check.task.HealthCheckTask - Scheduled task (Health Check: central) failed :: Health Check Management for Repository cent ral (started 2013-06-14T05:19:06-05:00, runtime 0:07:54.739) INFO | jvm 1 | 2013/06/14 05:27:01 | java.net.SocketException: Broken pipe INFO | jvm 1 | 2013/06/14 05:27:01 | at java.net.SocketOutputStream.socketWrite0(Native Method) ~[na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) ~ [na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at java.net.SocketOutputStream.write(SocketOutputStream.java:153) ~[na:1. 7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:377) ~[na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at sun.security.ssl.OutputRecord.write(OutputRecord.java:363) ~[na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:830) ~[na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:801) ~[na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122) ~[na:1.7.0_09] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:169) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:119) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:107) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:98) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:122) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:271) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:197) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:257) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) ~[httpcore-4.2.4.jar:4.2.4] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) ~[httpclient-4.2.5.jar:4.2.5] INFO | jvm 1 | 2013/06/14 05:27:01 | at com.sonatype.nexus.plugins.healthcheck.service.impl.InsightServiceImpl.doPut(InsightServiceImpl.java:338) ~[na:na] INFO | jvm 1 | 2013/06/14 05:27:01 | at com.sonatype.nexus.plugins.healthcheck.service.impl.InsightServiceImpl.uploadScan(InsightServiceImpl.java:111) ~[na:na] ... regards Mike
    via by Michal Wlodarczyk,
  • Broken Pipe error
    via GitHub by kevinsdooapp
    ,
  • GitHub comment 160#185381619
    via GitHub by geoHeil
    ,
  • Osx broken pipe
    via GitHub by geoHeil
    ,
  • GitHub comment 12#226067394
    via GitHub by sapanda
    ,
    • java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431) at sun.security.ssl.OutputRecord.write(OutputRecord.java:417) at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:876) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:847) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:181) at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:115) at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:122) at org.apache.http.entity.StringEntity.writeTo(StringEntity.java:169) at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96) at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:112) at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:117) at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:265) at org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:216) at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.sendRequestEntity(MeasuringConnectionManager.java:207) at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:237) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:122) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:686) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:488) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:619) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:379) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:240)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Alireza MohamadiAlireza Mohamadi
    2 times, last one,
    kkanddakkandda
    120 times, last one,
    226 more bugmates