Description:
Using Jconnector - mysql-connector-java-3.1.12-bin.jar
Java app using JDBC to MySQL DB.
I can not figure out why my application starts running fine and then it bombs. The following error is in the application log:
************************************************
<Entry time="2005-12-23 14:11:54" level="SEVERE" class="com.saic.projectlewis.harvester.HarvesterLogger" method="exception" tid="47">com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.BindException: Address already in use: connect
STACKTRACE:
java.net.SocketException: java.net.BindException: Address already in use: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.saic.projectlewis.harvester.DbConnector.getConnection(DbConnector.java:39)
at com.saic.projectlewis.harvester.HarvesterToDb.checkHash(HarvesterToDb.java:307)
at com.saic.projectlewis.harvester.HarvesterToDb.jobFileCollected(HarvesterToDb.java:246)
at com.bat.harvester.ProcessorThread.a(Unknown Source)
at com.bat.harvester.ProcessorThread.do(Unknown Source)
at com.bat.harvester.ProcessorThread.run(Unknown Source)
** END NESTED EXCEPTION **
Last packet sent to the server was 0 ms ago.</Entry>
How to repeat:
Not sure how to explain. I only get this problem when I run the Java application that connects to the MySQL DB. Maybe the bug is in the COTs code? They are telling me its a DB connectivity issue.
Basically this occurs everytime I run the application.