com.mysql.cj.jdbc.exceptions.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.

oschina.net | 2 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

    SonarQube Users (archive) - Problems using Sonar, sonar-runner and mysql.

    nabble.com | 8 months ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 28,517 milliseconds ago.  The last packet sent successfully to the server was 7 milliseconds ago. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23) at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:147) at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:134)
  2. 0

    How to get output from stored procedure to ibatis class

    Google Groups | 6 years ago | Chetan Nayak
    java.lang.ArrayIndexOutOfBoundsException: 2
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Application behaving weird in ubuntu, but working fine in windows

    Stack Overflow | 3 years ago | Prats
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dbconnect.BDB_PROPERTIES' doesn't exist

    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.io.EOFException

      Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

      at com.mysql.cj.core.io.FullReadInputStream.readFully()
    2. com.mysql.cj
      NonRegisteringDriver.connect
      1. com.mysql.cj.core.io.FullReadInputStream.readFully(FullReadInputStream.java:61)
      2. com.mysql.cj.mysqla.io.SimplePacketReader.readHeader(SimplePacketReader.java:60)
      3. com.mysql.cj.mysqla.io.MysqlaProtocol.readPacket(MysqlaProtocol.java:521)
      4. com.mysql.cj.mysqla.io.MysqlaProtocol.readServerCapabilities(MysqlaProtocol.java:480)
      5. com.mysql.cj.mysqla.io.MysqlaProtocol.beforeHandshake(MysqlaProtocol.java:367)
      6. com.mysql.cj.mysqla.io.MysqlaProtocol.connect(MysqlaProtocol.java:1412)
      7. com.mysql.cj.mysqla.MysqlaSession.connect(MysqlaSession.java:132)
      8. com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:1726)
      9. com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:1596)
      10. com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:633)
      11. com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:347)
      12. com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:219)
      12 frames
    3. Java RT
      DriverManager.getConnection
      1. java.sql.DriverManager.getConnection(DriverManager.java:664)
      2. java.sql.DriverManager.getConnection(DriverManager.java:208)
      2 frames
    4. MyBatis
      DefaultSqlSession.selectOne
      1. org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:201)
      2. org.apache.ibatis.datasource.unpooled.UnpooledDataSource.doGetConnection(UnpooledDataSource.java:196)
      3. org.apache.ibatis.datasource.unpooled.UnpooledDataSource.getConnection(UnpooledDataSource.java:93)
      4. org.apache.ibatis.datasource.pooled.PooledDataSource.popConnection(PooledDataSource.java:385)
      5. org.apache.ibatis.datasource.pooled.PooledDataSource.getConnection(PooledDataSource.java:89)
      6. org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:138)
      7. org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:60)
      8. org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336)
      9. org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:84)
      10. org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
      11. org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
      12. org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
      13. org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
      14. org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
      15. org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
      16. org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
      17. org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
      17 frames
    5. com.shadowolf.first
      MyBatisFirst.findUserById
      1. com.shadowolf.first.MyBatisFirst.findUserById(MyBatisFirst.java:39)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. JUnit
      JUnitCore.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
      9. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
      10. org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
      11. org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
      12. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      13. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:220)
      15. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      15 frames
    8. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
      1 frame
    9. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
      2. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
      3. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
      3 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    11. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame