com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link<br> failure<br> <br> The last packet successfully received from the server was 28,517<br> milliseconds ago.  The last packet sent successfully to the server was 7<br> milliseconds ago. at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.setDesiredAutoCommit(JdbcTransactio \ n.java:102)<br>         at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java \ :135)<br>         at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java: \ 58)<br>         at<br> org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279) at<br> org.apache.ibatis.executor.ReuseExecutor.prepareStatement(ReuseExecutor.java:72) at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:46 \ )<br>         at \ org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:108)<br>         \ at<br> org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75) at<br> org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:145 \ )<br>         ... 33 more<br> Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:<br> Communications link failure<br> <br> The last packet successfully received from the server was 28,517<br> milliseconds ago.  The last packet sent successfully to the server was 7<br> milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native \ Method)<br>         at<br> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.ja \ va:39)<br>         at<br> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccesso \ rImpl.java:27)<br>         at \ java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>         at \ com.mysql.jdbc.Util.handleNewInstance(Util.java:411)<br>         at<br> com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)

marc.info | 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

    'Re: [sonar-user] Problems using Sonar, sonar-runner and mysql.' - MARC

    marc.info | 6 months ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link<br> failure<br> <br> The last packet successfully received from the server was 28,517<br> milliseconds ago.  The last packet sent successfully to the server was 7<br> milliseconds ago. at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.setDesiredAutoCommit(JdbcTransactio \ n.java:102)<br>         at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java \ :135)<br>         at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java: \ 58)<br>         at<br> org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279) at<br> org.apache.ibatis.executor.ReuseExecutor.prepareStatement(ReuseExecutor.java:72) at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:46 \ )<br>         at \ org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:108)<br>         \ at<br> org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75) at<br> org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:145 \ )<br>         ... 33 more<br> Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:<br> Communications link failure<br> <br> The last packet successfully received from the server was 28,517<br> milliseconds ago.  The last packet sent successfully to the server was 7<br> milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native \ Method)<br>         at<br> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.ja \ va:39)<br>         at<br> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccesso \ rImpl.java:27)<br>         at \ java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>         at \ com.mysql.jdbc.Util.handleNewInstance(Util.java:411)<br>         at<br> com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)

    Root Cause Analysis

    1. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

      Communications link<br> failure<br> <br> The last packet successfully received from the server was 28,517<br> milliseconds ago.  The last packet sent successfully to the server was 7<br> milliseconds ago. at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.setDesiredAutoCommit(JdbcTransactio \ n.java:102)<br>         at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java \ :135)<br>         at<br> org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java: \ 58)<br>         at<br> org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:279) at<br> org.apache.ibatis.executor.ReuseExecutor.prepareStatement(ReuseExecutor.java:72) at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:46 \ )<br>         at \ org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:108)<br>         \ at<br> org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75) at<br> org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:145 \ )<br>         ... 33 more<br> Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:<br> Communications link failure<br> <br> The last packet successfully received from the server was 28,517<br> milliseconds ago.  The last packet sent successfully to the server was 7<br> milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native \ Method)<br>         at<br> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.ja \ va:39)<br>         at<br> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccesso \ rImpl.java:27)<br>         at \ java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>         at \ com.mysql.jdbc.Util.handleNewInstance(Util.java:411)<br>         at<br> com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)

      at com.mysql.jdbc.MysqlIO.reuseAndReadPacket()
    2. MySQL jdbc
      ConnectionImpl.execSQL
      1. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3102)
      2. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2991)
      3. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3532)
      4. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
      5. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
      6. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2618)
      6 frames