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

Oracle Community | progre55 | 6 years ago
  1. 0

    MySQL Connection Pool "Communications link failure" if table locked

    Oracle Community | 6 years ago | progre55
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 2,884 milliseconds ago. The last packet sent successfully to the server was 2,883 milliseconds ago.
  2. 0

    java mysql server timeout errors with lack of activity

    Stack Overflow | 5 years ago | helion3
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 74,977 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
  3. 0

    Getting jdbc4.communicationException from SQL

    Stack Overflow | 5 years ago | milind_db
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 43,223,652 milliseconds ago. The last packet sent successfully to the server was 43,223,657 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MySQL Database wait_timeout error

    GitHub | 3 years ago | danicuki
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 8,736,896 milliseconds ago. The last packet sent successfully to the server was 8,736,900 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

    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

    Oracle Community | 7 years ago | snidely_whiplash
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 28,890,943 milliseconds ago. The last packet sent successfully to the server was 3 milliseconds ago.

  1. mauritius 2 times, last 2 months ago
  2. linxiaolong 2 times, last 3 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 2,884 milliseconds ago. The last packet sent successfully to the server was 2,883 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:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    4 frames
  3. MySQL jdbc
    PreparedStatement.executeUpdate
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    2. com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
    3. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3052)
    4. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2938)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3481)
    6. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
    7. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
    8. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
    9. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
    10. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2362)
    11. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2280)
    12. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2265)
    12 frames
  4. Embedded GlassFish Web
    PreparedStatementWrapper.executeUpdate
    1. com.sun.gjc.spi.base.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:108)
    1 frame
  5. org.progre55.connector
    UserConnector.updateUserCalls
    1. org.progre55.connector.UserConnector.updateUserCalls(UserConnector.java:278)
    1 frame