• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Connection through bean error

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for cross posting but no one seems to be able to help, and I think this might be more appropriate here (as opposed to the jsp board)
I have a java bean that is accessing a teradata database. The get methods open up a connection, perform a select statement, format the result set, and return a string representing a list box. The problem is that the connection never happens. The bean's get method never returns and hangs at this line:
Connection con = DriverManager.getConnection(url, username, password);
Where url is jdbcdbc:DataSourceName, username and password should be obvious. The data source is a system dsn. The wierd part is that a tester program calling the exact same get method works just fine, returning a correctly formated list box string. Originally the data source was a user dsn. Thinking this might be the problem I changed it to a system dsn. Could this have anything to do with it? Could it be something within Teradata (I doubt this very seriously since it's just an odbc connection).
Here's the bean getMethod:

Here's the bean call from within the jsp:

Here's the tester call:

Again the tester works fine, returning the expected output. The bean call never returns or throws an exception. It dies on the previously mentioned line.
Any help would be greatly appreciated. I'm dead in the water right now and extremely frustrated.
Please help, your karma will thank you.
Michael Crutcher
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic