This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes org.apache.derby.client.am.DisconnectException: java.net.BindException : Error opening socket to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "org.apache.derby.client.am.DisconnectException: java.net.BindException : Error opening socket to " Watch "org.apache.derby.client.am.DisconnectException: java.net.BindException : Error opening socket to " New topic
Author

org.apache.derby.client.am.DisconnectException: java.net.BindException : Error opening socket to

Marco Bongiovanni
Greenhorn

Joined: Jan 27, 2012
Posts: 2
Hello,
I have the following error when I run my program:




I think that the problem is that I connect and disconnect from the database derby to many times.
Someone can help me?

The code of the program is the following:





thank you
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

you can only have 1 connection open to derby at a time. so you can't run your program whilst checking on the database using another program, for example squirrel.

This is my most usual cause of these type of errors in derby
Marco Bongiovanni
Greenhorn

Joined: Jan 27, 2012
Posts: 2
if I run the program with few elements the program run without error. If I try to use more elements I have this error. I think that the problem is that I connect to many time to the database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.derby.client.am.DisconnectException: java.net.BindException : Error opening socket to