mysql JDBC tomcat

tony.chamberlain at tony.chamberlain at
Fri Feb 15 14:39:38 UTC 2008

Perhaps there is a mysql group I could ask? But I will ask here anyway.

Someone is using java and tomcat and mysql. Accessing mysql on
from They are pingable from each other but go through gateway

And mysql -h 
from returns a prompt after a while.

However using jdbc times out even with a timeout of 70000. Here is the command:

jdbc:mysql:// id
(id omitted from this message for security reasons)

This is being executed from Java. 

And to repeat, when it was used before there were 1 hop from server machine to host machine (like here):
traceroute to (, 30 hops max, 38 byte packets
 1 ( 1.158 ms 0.198 ms 0.186 ms
but in this case there are two
traceroute to (, 30 hops max, 38 byte packets
 1 ( 20.068 ms 19.775 ms 19.806 ms
 2 ( 24.404 ms 23.240 ms 23.249 ms

Could this be the reason for the timeout? Can jdbc not hop?

if you are interested, here is a stack backtrace Read timed out
 at Method)
 at com.mysql.jdbc.MysqlIO.readFully(
 at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(
 at com.mysql.jdbc.MysqlIO.sendCommand(
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
 at com.mysql.jdbc.MysqlIO.sqlQuery(
 at com.mysql.jdbc.Connection.execSQL(
 at com.mysql.jdbc.Connection.execSQL(
 at com.mysql.jdbc.Statement.executeQuery(
 at com.mysql.jdbc.Connection.initializePropsFromServer(
 at com.mysql.jdbc.Connection.createNewIO(
 at com.mysql.jdbc.Connection.<init>(

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the fedora-list mailing list