java.io.IOException

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

Upgrade your docker-selenium

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.

tip

Client closed the websocket connection (safe to ignore)

tip

*not english*


poroszdporoszd
tip

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

tip

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

tip

Upgrade your nanohttpd

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

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

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

  • GitHub comment 868#239445250
    via GitHub by TheWildHorse
    ,
  • Table Output step - Connection problem
    via by Unknown author,
  • MySQL reconnect issue
    via GitHub by SelbieNL
    ,
  • Strange things ;p
    via GitHub by freakyy85
    ,
  • BlockPistonRetractEvent
    via GitHub by squiby
    ,
    • java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 337 milliseconds ago. The last packet sent successfully to the server was 4,375,856 milliseconds ago. at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.fetch(StandardSource.java:631)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.elasticsearch.jdbc.strategy.standard.StandardContext.fetch(StandardContext.java:191)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.elasticsearch.jdbc.strategy.standard.StandardContext.execute(StandardContext.java:166)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.tools.JDBCImporter.process(JDBCImporter.java:199)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.tools.JDBCImporter.newRequest(JDBCImporter.java:185)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.tools.JDBCImporter.newRequest(JDBCImporter.java:51)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.pipeline.AbstractPipeline.call(AbstractPipeline.java:50)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.pipeline.AbstractPipeline.call(AbstractPipeline.java:16)[elasticsearch-jdbc-2.3.4.0.jar:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?: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] Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 337 milliseconds ago. The last packet sent successfully to the server was 4,375,856 milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_101] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[?:1.8.0_101] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[?:1.8.0_101] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[?:1.8.0_101] at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:981)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3652)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2460)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2547)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1454)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.RowDataDynamic.close(RowDataDynamic.java:178)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ResultSetImpl.realClose(ResultSetImpl.java:6709)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ResultSetImpl.close(ResultSetImpl.java:851)[mysql-connector-java-5.1.38.jar:5.1.38] at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.close(StandardSource.java:1130)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.execute(StandardSource.java:701)[elasticsearch-jdbc-2.3.4.0.jar:?] at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.fetch(StandardSource.java:616)[elasticsearch-jdbc-2.3.4.0.jar:?] ... 11 more Caused by: 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:153)[?:1.8.0_101] at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)[?:1.8.0_101] at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)[?:1.8.0_101] at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3634)[mysql-connector-java-5.1.38.jar:5.1.38] ... 21 more

    Users with the same issue

    kuldeepkuldeep
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    210 more bugmates