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

coderanch.com | 6 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

    java.net.ConnectException: Connection refused: connect (JDBC and Relational Databases forum at Coderanch)

    coderanch.com | 8 months ago
    com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 1 ms ago.
  2. 0

    java.net.ConnectException: Connection refused: connect (JDBC and Relational Databases forum at Coderanch)

    coderanch.com | 6 months ago
    com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 1 ms ago.
  3. 0

    java.net.ConnectException: Connection refused: connect (JDBC and Relational Databases forum at Coderanch)

    coderanch.com | 2 months ago
    com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 1 ms ago.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "java.net.SocketException: java.net.ConnectException: Connection refused" b

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

    can't connect to mysql datasource in jboss

    Coderanch | 8 years ago | Tom Esposito
    org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.)

  1. QrCeric 17 times, last 5 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 2 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