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.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1570

  • via Unknown by 3259248,
  • via Unknown by Unknown author,
  • via Stack Overflow by user1785917
    ,
  • Stack trace

    • 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 org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:98) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at com.mysql.etools.agent.collection.JdbcConnector$1.getDataSource(JdbcConnector.java:214) at com.mysql.etools.agent.collection.JdbcConnector.initDataSourceCall(JdbcConnector.java:388) at com.mysql.etools.agent.collection.JdbcConnector.access$300(JdbcConnector.java:52) at com.mysql.etools.agent.collection.JdbcConnector$3.execute(JdbcConnector.java:303) at com.mysql.etools.agent.collection.JdbcConnector$3.execute(JdbcConnector.java:300) at com.mysql.etools.agent.collection.PrivilegeFallback.attempt(PrivilegeFallback.java:35) at com.mysql.etools.agent.collection.JdbcConnector.initDataSource(JdbcConnector.java:307) at com.mysql.etools.agent.collection.JdbcConnector.<init>(JdbcConnector.java:286) at com.mysql.etools.agent.collection.JdbcConnector.<init>(JdbcConnector.java:264) at com.mysql.etools.agent.collection.JdbcConnector.<init>(JdbcConnector.java:256) at com.mysql.etools.agent.collection.MysqlConnection.pingCall(MysqlConnection.java:1432) at com.mysql.etools.agent.collection.MysqlConnection.access$3900(MysqlConnection.java:79) at com.mysql.etools.agent.collection.MysqlConnection$7.call(MysqlConnection.java:1394) at com.mysql.etools.agent.collection.MysqlConnection$7.call(MysqlConnection.java:1390) at com.mysql.etools.limits.RateLimit.doWithRateLimit(RateLimit.java:222) at com.mysql.etools.agent.collection.MysqlConnectionRateLimit.doWithRateLimit(MysqlConnectionRateLimit.java:81) at com.mysql.etools.agent.collection.MysqlConnectionRateLimit.doWithRateLimitCore(MysqlConnectionRateLimit.java:62) at com.mysql.etools.agent.collection.MysqlConnection.ping(MysqlConnection.java:1390) at com.mysql.etools.agent.collection.mysql.ConnectionStats.ping(MysqlAvailabilityCollector.java:204) at com.mysql.etools.agent.collection.mysql.MysqlAvailabilityCollector$1.run(MysqlAvailabilityCollector.java:102) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: 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) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:981) at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:628) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1014) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:795) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor41.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:153) at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:144) at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:155) at org.springframework.jdbc.datasource.SingleConnectionDataSource.initConnection(SingleConnectionDataSource.java:224) at com.mysql.etools.agent.collection.JdbcConnector$1.getDataSource(JdbcConnector.java:210) ... 26 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:100) at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:143) at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:173) at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2954) at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:560) ... 45 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor3 times, last one
    tvrmsmithtvrmsmith
    2 times, last one
    bernardpaulusbernardpaulus
    Once,
    pulse00pulse00
    Once,
    musketyrmusketyr
    4 times, last one
    150 more bugmates