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

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JBoss don't fail over MySQL slave using datasource

    Database Administrators | 5 years ago | Jean-Rémy Revy
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
  2. 0

    java.io.EOFException after upgrading to MySQL 5.6 and restoring a database when re-running unit test

    Stack Overflow | 3 years ago | Josh Unger
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  3. 0

    Hibernate connectio exception

    Stack Overflow | 5 years ago | user1136875
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ibatis + glassfish: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    Stack Overflow | 7 years ago | Ben
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 129,064 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
  6. 0

    [atug-L] Re: Closed database connections using AT on XP

    ucsd.edu | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 704,721 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.

  1. mauritius 2 times, last 6 months ago
1 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. java.io.EOFException

    Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

    at com.mysql.jdbc.MysqlIO.readFully()
  2. MySQL jdbc
    MysqlIO.reuseAndReadPacket
    1. com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2552)
    2. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3002)
    2 frames