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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via github.com by Unknown author

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)

,
via GitHub by ppoulard

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

Solutions on the web

via GitHub by TheWildHorse
, 1 year ago
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.
via GitHub by TheWildHorse
, 1 year ago
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 252 milliseconds ago. The last packet sent successfully to the server was 3,582,723 milliseconds ago.
via GitHub by jackieit
, 1 year ago
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from "pp_goods" where "updated_at" > null' at line 1
via GitHub by vijaydodla
, 1 year ago
java.sql.SQLSyntaxErrorException: InvalidRequestException(why:line 1:9 extraneous input 'value' expecting K_FROM (SELECT * value [FROM]...))
via GitHub by sandesh2014
, 2 years ago
com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting date and/or time from character string.
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 java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3634)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2460)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2547)
at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1454)
at com.mysql.jdbc.RowDataDynamic.close(RowDataDynamic.java:178)
at com.mysql.jdbc.ResultSetImpl.realClose(ResultSetImpl.java:6709)
at com.mysql.jdbc.ResultSetImpl.close(ResultSetImpl.java:851)
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.close(StandardSource.java:1130)
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.execute(StandardSource.java:701)
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardSource.fetch(StandardSource.java:616)
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardContext.fetch(StandardContext.java:191)
at org.xbib.elasticsearch.jdbc.strategy.standard.StandardContext.execute(StandardContext.java:166)
at org.xbib.tools.JDBCImporter.process(JDBCImporter.java:199)
at org.xbib.tools.JDBCImporter.newRequest(JDBCImporter.java:185)
at org.xbib.tools.JDBCImporter.newRequest(JDBCImporter.java:51)
at org.xbib.pipeline.AbstractPipeline.call(AbstractPipeline.java:50)
at org.xbib.pipeline.AbstractPipeline.call(AbstractPipeline.java:16)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.