Skip to main content

Posts

Showing posts from October, 2008

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Software caused connection abort: recv failed STACKTRACE: java.net.SocketException: Software caused connection abort: recv failed Environment: Apache Tomcat 6.0.14 with MySQL 5.2 This is the exception which was the night mare for many developers who used MySQL with Java Web application in Tomcat server. Before explaining the cause let me told you that, the exception has responsible for pulling my hair for almost 2 weeks, with little use of Googling and MySQL Forum! Particularly, the problem was, I lost my connection object when server is idle for 24 to 34 hours, so any request comes after this time interval results in above exception. Disclaimer: The below explanation is as per my understanding and as I’m not an architecture of MySQL JConnector nor Apache DBCP API, Comments & Suggestions are welcomed, See this link from wh

Hello , Mike Testing..

This is my first (or last, the way blogger stacked them) blog and I`m pretty excited . In this coming years you can expect my thoughts on various technical and non technical issues. I`m not kinda writer person, So your comment are always welcome, So , Take my thoughts ..