com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 3,146,142 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.

Google Groups | Unknown author | 3 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 | 9 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 | 7 years ago | Chetan Nayak
    java.lang.ArrayIndexOutOfBoundsException: 2
  3. 0

    RE: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (77 > -1)

    commons-user | 3 years ago | Martin Gainty
    com.mysql.jdbc.PacketTooBigException: Packet for query is too large (77 > -1). You can change this value on the server by setting the max_allowed_packet' variable.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    com.mysql.jdbc.PacketTooBigException: Packet for query is too large (77 > -1)

    commons-user | 3 years ago | 心如止水
    com.mysql.jdbc.PacketTooBigException: Packet for query is too large (77 > -1). You can change this value on the server by setting the max_allowed_packet' variable.

    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.jdbc.MysqlIO.readFully()
    2. MySQL jdbc
      PreparedStatement.execute
      1. com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2914)
      2. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3332)
      3. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3322)
      4. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3762)
      5. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
      6. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
      7. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2535)
      8. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1911)
      9. com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1203)
      9 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    4. MyBatis
      PreparedStatementLogger.invoke
      1. org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:62)
      1 frame
    5. com.sun.proxy
      $Proxy54.execute
      1. com.sun.proxy.$Proxy54.execute(Unknown Source)
      1 frame
    6. MyBatis
      MapperProxy.invoke
      1. org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:59)
      2. org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:73)
      3. org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:60)
      4. org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:267)
      5. org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:137)
      6. org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:96)
      7. org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:77)
      8. org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)
      9. org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)
      10. org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:66)
      11. org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:68)
      12. org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
      12 frames
    7. com.sun.proxy
      $Proxy57.getLatestThumbnail
      1. com.sun.proxy.$Proxy57.getLatestThumbnail(Unknown Source)
      1 frame
    8. com.mininglamp.tuning
      SnapshotService.getLatestThumbnail
      1. com.mininglamp.tuning.console.application.SnapshotManager.getLatestThumbnail(SnapshotManager.java:103)
      2. com.mininglamp.tuning.console.service.SnapshotService.getLatestThumbnail(SnapshotService.java:515)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    10. Apache CXF Core
      AbstractInvoker.invoke
      1. org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
      2. org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
      2 frames
    11. Apache CXF Runtime JAX-RS Frontend
      JAXRSInvoker.invoke
      1. org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)
      2. org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)
      2 frames
    12. Apache CXF Core
      ChainInitiationObserver.onMessage
      1. org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
      2. org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
      3. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
      4. org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      4 frames
    13. Apache CXF Runtime HTTP Transport
      AbstractHTTPServlet.doGet
      1. org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)
      2. org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
      3. org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
      4. org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
      5. org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
      6. org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)
      7. org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:217)
      7 frames
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
      1 frame
    15. Apache CXF Runtime HTTP Transport
      AbstractHTTPServlet.service
      1. org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)
      1 frame
    16. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    17. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    18. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
      10 frames
    19. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      3 frames
    20. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    21. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    22. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame