• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to catch exception corresponding to lost connection to mysql server using jdbc

 
vikas byn
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which exception is generated corresponding to "ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0" using jdbc
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't there any stacktrace for that error message?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!