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

Google Groups | Nadav Samet | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Debugging "Communications link failure"

    Google Groups | 2 years ago | Nadav Samet
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 931,092 milliseconds ago. The last packet sent successfully to the server was 931,092 milliseconds ago.
  2. 0

    Java - ssh-tunneling to mysqldatabase with JSch

    Stack Overflow | 2 years ago | Tracker
    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

    Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException

    Stack Overflow | 2 years ago | emoleumassi
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug in production - connection to db

    GitHub | 1 year ago | acrepet
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 38 065 062 milliseconds ago. The last packet sent successfully to the server was 38 065 062 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

    linux tomcat MySql connection failure

    Stack Overflow | 11 months ago | FDavidov
    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.

  1. linxiaolong 2 times, last 3 months ago
  2. fima 28 times, last 5 months ago
  3. kuldeep 2 times, last 5 months ago
  4. mauritius 2 times, last 5 months ago
  5. tvrmsmith 2 times, last 5 months ago
5 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 931,092 milliseconds ago. The last packet sent successfully to the server was 931,092 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:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  3. MySQL jdbc
    ResultSetImpl.next
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
    2. com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1038)
    3. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3422)
    4. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3322)
    5. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3762)
    6. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870)
    7. com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1928)
    8. com.mysql.jdbc.MysqlIO.fetchRowsViaCursor(MysqlIO.java:4790)
    9. com.mysql.jdbc.RowDataCursor.fetchMoreRows(RowDataCursor.java:394)
    10. com.mysql.jdbc.RowDataCursor.hasNext(RowDataCursor.java:313)
    11. com.mysql.jdbc.RowDataCursor.next(RowDataCursor.java:343)
    12. com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:6338)
    12 frames
  4. HikariCP-java6
    ResultSetJavassistProxy.next
    1. com.zaxxer.hikari.proxy.ResultSetJavassistProxy.next(ResultSetJavassistProxy.java)
    1 frame
  5. slick.jdbc
    PositionedResultIterator.fetchNext
    1. slick.jdbc.PositionedResult.nextRow(PositionedResult.scala:26)
    2. slick.jdbc.PositionedResultIterator.fetchNext(PositionedResult.scala:175)
    2 frames
  6. slick.util
    ReadAheadIterator$class.hasNext
    1. slick.util.ReadAheadIterator$class.slick$util$ReadAheadIterator$$update(ReadAheadIterator.scala:34)
    2. slick.util.ReadAheadIterator$class.hasNext(ReadAheadIterator.scala:40)
    2 frames
  7. slick.jdbc
    PositionedResultIterator.hasNext
    1. slick.jdbc.PositionedResultIterator.hasNext(PositionedResult.scala:167)
    1 frame
  8. Scala
    Iterator$class.foreach
    1. scala.collection.Iterator$class.foreach(Iterator.scala:750)
    1 frame
  9. slick.jdbc
    StreamingInvokerAction$class.run
    1. slick.jdbc.PositionedResultIterator.foreach(PositionedResult.scala:167)
    2. slick.jdbc.Invoker$class.foreach(Invoker.scala:70)
    3. slick.jdbc.StatementInvoker.foreach(StatementInvoker.scala:16)
    4. slick.jdbc.StreamingInvokerAction$class.run(StreamingInvokerAction.scala:22)
    4 frames