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

Server Fault | guckmal | 4 years ago
  1. 0

    HAProxy: drops connections from DBCP, why?

    Stack Overflow | 4 years ago | James McCabe
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 196,898 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
  2. 0

    HAProxy, client timeouts when connecting from JDBC pool

    Server Fault | 4 years ago | guckmal
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 196,898 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
  3. 0

    Database connection timeouts not configured correctly

    GitHub | 2 years ago | jbcpollak
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 349,959 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds 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. mauritius 8 times, last 2 months ago
  2. linxiaolong 2 times, last 4 weeks ago
  3. fima 28 times, last 2 months ago
  4. kuldeep 2 times, last 2 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 196,898 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.

    at sun.reflect.GeneratedConstructorAccessor210.newInstance()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor210.newInstance(Unknown Source)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    3. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    3 frames
  3. MySQL jdbc
    MysqlIO.reuseAndReadPacket
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117)
    3. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3567)
    3 frames