When I am thinking using autoReconnect will resolve the disconnection problem, a new error comes to me.
java.net.SocketException
MESSAGE: Software caused connection abort: recv failed
This error appears in occasional case, but also after a long hours of idle. I used Java Persistence to connect mysql. Today morning, when I was back to office. My application seems fine when doing the querying functionalities. However, when I used persist() and merge() operations which updated the DB, this error occurred.
Someone said this also the same problem as previous, which MySQL disconnects the connections after idle for 8 hours, but I am amazing that the error only throw for updating operations. Is it mechanism for Java Persistence, since it can store part of DB details in memory, so it didn’t actually query the database?
Reference:
http://forums.mysql.com/read.php?39,55337,95721#msg-95721









No comments
Comments feed for this article
Trackback link
http://blog.planner4u.org/blog/2007/02/06/mysql-problem-again/trackback/