aspose file tools*
The moose likes JDBC and the fly likes com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure" Watch "com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure" New topic
Author

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
I don't have any clue.

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Sorry for the long post. I tried to copy all whole stack trace.

Other Information :

- I am using Spring framework, Hibernate and MySQL database. I have tried with Apache Tomcat and JBoss servers.
- Application tries to execute a query and it fails because it can't connect to the database.

I don't know to which forum this question belongs.

I use Tomcat lookup,

as well as tried to put

url="jdbc:mysql://server:3307/database?autoReconnect=true"/> too.

but why the hell I can not get rid of this error.
 
Consider Paul's rocket mass heater.
 
subject: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure