com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

Communications link failure The last packet successfully received from the server was 2,450 milliseconds ago. The last packet sent successfully to the server was 5,598,550 milliseconds ago.

Samebug tips13

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)

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2019

  • via GitHub by TheWildHorse
    ,
  • Stack trace

    • com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 2,450 milliseconds ago. The last packet sent successfully to the server was 5,598,550 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:597)[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: 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

    Write tip

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

    Users with the same issue

    kuldeepkuldeep
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    217 more bugmates