com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

The last packet successfully received from the server was 36,794,377 milliseconds ago. The last packet sent successfully to the server was 36,794,377 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should c onsider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

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 web258

  • via Stack Overflow by Yair Cohen
    ,
  • Stack trace

    • com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 36,794,377 milliseconds ago. The last packet sent successfully to the server was 36,794,377 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should c onsider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_91] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[?:1.8.0_91] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[?:1.8.0_91] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[?:1.8.0_91] at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:983)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3644)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2452)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)[spigot.jar:git-Spigot-e0e1771-5e5cf84] at vg.civcraft.mc.bettershards.database.DatabaseManager.isPlayerLocked(DatabaseManager.java:490)[BetterShards.jar:?] at vg.civcraft.mc.bettershards.database.DatabaseManager$4.call(DatabaseManager.java:739)[BetterShards.jar:?] at vg.civcraft.mc.bettershards.database.DatabaseManager$4.call(DatabaseManager.java:732)[BetterShards.jar:?]

    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

    fimafima
    28 times, last one
    kuldeepkuldeep
    2 times, last one
    mortalman7mortalman7
    Once,
    Unknown visitor
    Unknown visitorOnce,
    linxiaolonglinxiaolong
    Once,
    10 more bugmates