Re: Database connection fail at first time
Posted by: Chris Hughes
Date: January 26, 2005 08:37AM

I am having a very similar problem.
I have a Java app that fails to get a connection the first time, but succeeds the second time - even though the code is the same. It's crazy.

It is something like:

try {
// This code throws a NullPointerException,
conn= DriverManager.getConnection( url, userid, pwd );
}
catch (NullPointerException e) {
// This code works ok ????
conn= DriverManager.getConnection( url, userid, pwd );
}

Options: ReplyQuote


Subject
Written By
Posted
Re: Database connection fail at first time
January 26, 2005 08:37AM


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.