Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communication failure during handshake

 
Drew Lane
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how to fix this problem?
I am using a connection pool to connect to a mysql database.
See below for complete error...
What's strange is that it doesn't happen everytime.
Thanks!
Drew

java.sql.SQLException: Communication failure during handshake. Is there
a server running on localhost:3306?
at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:327)
at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)
at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)
at org.gjt.mm.mysql.Driver.connect(Driver.java:167)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at javaservlets.jdbc.ConnectionPool.fillPool(ConnectionPool.java:581)
at javaservlets.jdbc.ConnectionPool.createPool(ConnectionPool.java:507)
at javaservlets.jdbc.ConnectionPool.initialize(ConnectionPool.java:116)
at com.instantjsp.PostcardBean.<init>(PostcardBean.java:60)
at _postcards._GetPostcardParameters__jsp._jspService(/postcards/GetPostcardParameters.jsp:8)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176)
at com.caucho.server.http.Invocation.service(Invocation.java:278)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic