com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 1 ms ago.

coderanch.com | 3 months 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

    Communications link failure?

    Oracle Community | 8 years ago | 843859
    com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 1 ms ago.
  2. 0

    Hey need help with a mysql exception i am getting abt communication link failure

    Stack Overflow | 6 years ago | anonymous123
    com.mysql.jdbc.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driv er has not received any packets from the server. at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1 112) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:346)
  3. 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.
  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

    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.

  1. QrCeric 17 times, last 7 days ago
  2. andyglick 56 times, last 2 months ago
  3. tomthomas 1 times, last 2 months ago
  4. stigkj 4 times, last 2 months ago
  5. michallos 1 times, last 3 months ago
27 more registered users
65 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.net.ConnectException

    Connection refused: connect

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(Unknown Source)
    3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.PlainSocketImpl.connect(Unknown Source)
    5. java.net.SocksSocketImpl.connect(Unknown Source)
    6. java.net.Socket.connect(Unknown Source)
    7. java.net.Socket.connect(Unknown Source)
    8. java.net.Socket.<init>(Unknown Source)
    9. java.net.Socket.<init>(Unknown Source)
    9 frames
  3. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
    3. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2043)
    4. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)
    5. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:298)
    6. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
    6 frames
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(Unknown Source)
    2. java.sql.DriverManager.getConnection(Unknown Source)
    2 frames
  5. test
    Test.main
    1. test.DBConnection.getConnection(DBConnection.java:56)
    2. test.Test.main(Test.java:14)
    2 frames