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.

opengts | *anonymous | 7 years 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

    probably mysql connector problem

    opengts | 7 years ago | *anonymous
    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.
  2. 0

    NetBeans Forums - com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    netbeans.org | 2 years ago
    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

    Netbeans - J2EE - com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    nabble.com | 11 months ago
    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

    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    GitHub | 2 years ago | pashtika
    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.
  6. 0

    mycat使用JDBC连接postgresql报如下异常

    GitHub | 2 years ago | zhouwenbin2000
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 20 ms ago.

  1. linxiaolong 2 times, last 4 months ago
  2. tvrmsmith 3 times, last 6 months ago
  3. DannyDBag 2 times, last 9 months ago
  4. davidvanlaatum 2 times, last 9 months ago
  5. poroszd 1 times, last 10 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 sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

    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
    JDBC4Connection.<init>
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
    2. com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
    3. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
    4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
    7 frames
  4. 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
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
    3 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:582)
    2. java.sql.DriverManager.getConnection(DriverManager.java:185)
    2 frames
  7. org.opengts.dbtools
    DBConnection.createStatement
    1. org.opengts.dbtools.DBConnection.getConnection(DBConnection.java:397)
    2. org.opengts.dbtools.DBConnection.createStatement(DBConnection.java:506)
    3. org.opengts.dbtools.DBConnection.createStatement(DBConnection.java:494)
    3 frames