Pool error connecting to database
Posted by: Mikel Lertxundi
Date: June 03, 2005 01:30AM


I've made an aplication that conects to a database via mysql Connector/J 3.1.8 version and
I've this error when trying to connect to the Database:

java.net.SocketException: java.net.BindException: Address already in use: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1774)
at com.mysql.jdbc.Connection.<init>(Connection.java:437)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at controlmontaje.GestorBD.<init>(GestorBD.java:33)
at controlmontaje.Montaje.ficheroPrepsTratado(Montaje.java:345)
at controlmontaje.Principal.main(Principal.java:40)

It's weird but I´ve got this error time after several inserts are made to the database via JAVA aplication.

Thanks, and excuse my English I've got it a little bit rusty.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.