• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

very perplexing connection problem

 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a very strange problem with some code. The code is as follows:
<font size=+1>

</font>
The method that calls this has code that goes through the List and prints out what is in it. When the code runs, the only statement that appears inside the list is "before connection." If I put the return connection from the getConnection method in a finally block, then I get connection is null. That makes it appear that an exception is being thrown. Now here is the tricky part. The code that calls this method catches all exceptions and prints them out. It is not catching any exceptions. Does anyone have any ideas on this?
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It appears that I may have a rights issue with the database. I placed a try/catch block around connection = getConnection() and added the exception to my List. It appears that it is not recognizing the login password as valid. If I find anything else, I will post it here so that others may learn from my mistakes.
 
reply
    Bookmark Topic Watch Topic
  • New Topic