Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid password

 
Jay Faluk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a login screen which asks the user, name and password to connect to the DB. Once the user enters both, I use them to connect to the DB thru the DriverManager.getConnection() method. However, if an invalid password is entered, the system hangs at getConnection(). SQLException is not thrown. What is the way to catch this?
Thanks to all in advance.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u got error at DriverManger.getConnection() the problem should be connection between database and ur application, so please check ur code inside the getConnection Method and datasource name.. this is not ur password problem..
r u using MS-Access or oracle or anyotherdatabase?
so plz check ur code inside the connection method again u feel same problem send me ur code..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic