• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communication EXCEPTION

 
pradeepkp pandeyy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell me how to reslove the mentioned problem even i tired what is suggested in this but its not working....please anyone give me exact solution


com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 51,300,941 milliseconds ago. The last packet sent successfully to the server was 51,300,941 milliseconds ago. 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.
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pradeep,

Welcome to the Ranch

Please TellTheDetails - Is this a core Java application code or involves Java EE?

Moderator pleas move the thread
 
pradeepkp pandeyy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first thank you john to taking interest on my problem ,this problem come in my J2EE application which runs on tomcat 6.0,please suggest me what should i do to remove this problem
 
Paul Clapham
Sheriff
Posts: 20980
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic