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.

Stack Overflow | Anthony | 6 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

    Re: sqoop import : communication links failure

    sqoop-user | 3 years ago | Wan Razali
    manager.SqlManager: Error executing > statement: 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. > 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(Native > Method)
  2. 0

    Re: sqoop import : communication links failure

    sqoop-user | 3 years ago | Wan Razali
    manager.SqlManager: Error executing > statement: 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. > 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(Native > Method)
  3. 0

    Re: sqoop import : communication links failure

    sqoop-user | 3 years ago | Wan Razali
    manager.SqlManager: Error executing >> statement: 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. >> 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(Native >> Method)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: sqoop import : communication links failure

    sqoop-user | 3 years ago | Wan Razali
    manager.SqlManager: Error executing >> statement: 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. >> 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(Native >> Method)
  6. 0

    Cannot connect to mysql server with jdbc

    Stack Overflow | 5 years ago | Timnit Gebru
    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. poroszd 1 times, last 4 weeks ago
  2. rp 1 times, last 4 weeks ago
  3. QrCeric 17 times, last 1 month ago
  4. andyglick 56 times, last 3 months ago
  5. tomthomas 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

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    6. java.net.Socket.connect(Socket.java:529)
    7. java.net.Socket.connect(Socket.java:478)
    8. java.net.Socket.<init>(Socket.java:375)
    9. java.net.Socket.<init>(Socket.java:218)
    9 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:294)
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2333)
    4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2370)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2154)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    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:411)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    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. Unknown
    Connect.main
    1. Connect.main(Connect.java:16)
    1 frame