com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 5,006 milliseconds ago. The last packet sent successfully to the server was 5,001 milliseconds ago.

Stack Overflow | Derek A. | 4 months ago
  1. 0

    GAE DevAppServer is forcibly killing my MySQL connection after 5 seconds

    Stack Overflow | 4 months ago | Derek A.
    org.glassfish.jersey.server.internal.process.MappableException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 5,006 milliseconds ago. The last packet sent successfully to the server was 5,001 milliseconds ago.
  2. 0

    Java/GWT/MySQL: connection refused?

    Stack Overflow | 5 years ago | Eike Cochu
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  3. 0

    org.hibernate.exception.JDBCConnectionException: Could not open connection exception in MySQL

    Stack Overflow | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Database connection gets dropped

    GitHub | 3 years ago | tgrez
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 65,028,684 milliseconds ago. The last packet sent successfully to the server was 65,028,686 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
  6. 0

    Exception during keep alive check

    GitHub | 3 years ago | virtyvoid
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 746,568 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.

  1. linxiaolong 2 times, last 1 month ago
  2. fima 28 times, last 2 months ago
  3. kuldeep 2 times, last 3 months ago
  4. mauritius 2 times, last 3 months ago
  5. tvrmsmith 2 times, last 3 months ago
7 more registered users
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

    Communications link failure The last packet successfully received from the server was 5,006 milliseconds ago. The last packet sent successfully to the server was 5,001 milliseconds ago.

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  3. com.google.appengine
    Runtime.newInstance
    1. com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:142)
    2. com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:150)
    2 frames
  4. MySQL jdbc
    CallableStatement.executeQuery
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
    2. com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:981)
    3. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3465)
    4. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3365)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3805)
    6. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
    7. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
    8. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
    9. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
    10. com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)
    11. com.mysql.jdbc.CallableStatement.executeQuery(CallableStatement.java:858)
    11 frames