com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was85533 milliseconds ago.The last packet sent successfully to the server was 85533 milliseconds ago, which is longer than the server configured value of 'wait_timeout'. You should consider 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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by loren_, 1 year ago
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.
via Oracle Community by 392 Guest, 1 year ago
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.
via Stack Overflow by Carvendy Xu
, 8 months ago
consider 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.
via Stack Overflow by vinod
, 2 years ago
Communications link failure The last packet successfully received from the server was 7,028,219 milliseconds ago. The last packet sent successfully to the server was 16 milliseconds ago.
via Stack Overflow by Sarah Northway
, 2 years ago
Communications link failure The last packet successfully received from the server was 5,327 milliseconds ago. The last packet sent successfully to the server was 5,003 milliseconds ago.
via Stack Overflow by om sharma
, 2 years ago
Communications link failure The last packet successfully received from the server was 35,019,246 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was85533 milliseconds ago.The last packet sent successfully to the server was 85533 milliseconds ago, which is longer than the server configured value of 'wait_timeout'. You should consider 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.

Users with the same issue

Once, 6 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
28 times, 1 year ago
2 times, 1 year ago
10 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.