java.net.SocketException

tip

Upgrade your docker-selenium

tip

Client closed the websocket connection (safe to ignore)

tip

*not english*


poroszd
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.

  • GitHub comment 2952#248782027
    via GitHub by l15k4
    ,
  • GitHub comment 1978#218310349
    via GitHub by l15k4
    ,
  • Some weeks ago, we migrated from Hudson to Jenkins. Since that time (same configuration with Apache httpd & Winstone) the Winestone server crashes sporadicaly. The only abnormal log entry is this [Winstone 2011/11/06 06:25:22] - Error within request handler thread java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readFully(DataInputStream.java:169) at winstone.ajp13.Ajp13IncomingPacket.<init>(Ajp13IncomingPacket.java:60) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:173) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:79) at java.lang.Thread.run(Thread.java:636) and this [Winstone 2011/11/07 13:41:07] - Error within request handler thread winstone.ClientSocketException: Failed to write to client at winstone.ClientOutputStream.write(ClientOutputStream.java:33) at winstone.ajp13.Ajp13OutputStream.finishResponse(Ajp13OutputStream.java:160) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:154) at java.lang.Thread.run(Thread.java:636) Caused by: 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:141) at winstone.ClientOutputStream.write(ClientOutputStream.java:31) ... 3 more The rest of the logfile seems to be ok. I attatched our logfiles and the server config (Apache httpd + Jenkins). I hope you are able to help!
    via by René Charbonneau,
  • Some weeks ago, we migrated from Hudson to Jenkins. Since that time (same configuration with Apache httpd & Winstone) the Winestone server crashes sporadicaly. The only abnormal log entry is this [Winstone 2011/11/06 06:25:22] - Error within request handler thread java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readFully(DataInputStream.java:169) at winstone.ajp13.Ajp13IncomingPacket.<init>(Ajp13IncomingPacket.java:60) at winstone.ajp13.Ajp13Listener.allocateRequestResponse(Ajp13Listener.java:173) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:79) at java.lang.Thread.run(Thread.java:636) and this [Winstone 2011/11/07 13:41:07] - Error within request handler thread winstone.ClientSocketException: Failed to write to client at winstone.ClientOutputStream.write(ClientOutputStream.java:33) at winstone.ajp13.Ajp13OutputStream.finishResponse(Ajp13OutputStream.java:160) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:154) at java.lang.Thread.run(Thread.java:636) Caused by: 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:141) at winstone.ClientOutputStream.write(ClientOutputStream.java:31) ... 3 more The rest of the logfile seems to be ok. I attatched our logfiles and the server config (Apache httpd + Jenkins). I hope you are able to help!
    via by René Charbonneau,
    • java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method)[?:1.8.0_101] at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)[?:1.8.0_101] at java.net.SocketOutputStream.write(SocketOutputStream.java:141)[?:1.8.0_101] at com.codahale.metrics.graphite.PickledGraphite.writeMetrics(PickledGraphite.java:262)[metrics-graphite-3.1.2.jar:3.1.2] at com.codahale.metrics.graphite.PickledGraphite.flush(PickledGraphite.java:221)[metrics-graphite-3.1.2.jar:3.1.2] at io.druid.emitter.graphite.GraphiteEmitter$ConsumerRunnable.run(GraphiteEmitter.java:176)[graphite-emitter-0.9.1.1.jar:0.9.1.1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_101] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[?:1.8.0_101] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[?:1.8.0_101] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[?:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_101] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_101]

    Users with the same issue

    linxiaolong
    3 times, last one,
    Nikolay Rybak
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    serious2monkeys
    7 times, last one,
    226 more bugmates