0

Note: I have Googled a LOT and found hundreds of suggestions for this problem but nothing seem to work for me. That's why I am posting a duplicate looking question

I am getting a weird error in my java program

org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create PoolableConnectionFactory (Communications link failure,
The last packet sent successfully to the server was 0 milliseconds ago.
The driver has not received any packets from the server.)

I am not able to figure out what's wrong. I tried updating mysql jar file, closing other mysql connections, increasing connection limit, restart mysql/tomcat, etc..

Surprisingly, the connection properly works in a different project of mine using exactly same db configs.

This problem started suddenly, I haven't changed a bit in db config lately.

Any info on possible causes will help me debug this issue further.

Community
  • 1
  • 1
Salman
  • 9,299
  • 6
  • 40
  • 73

0 Answers0