File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Immediate help please . Not getting DB connection !!!!!!

 
Siva Ram
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For session tracting I have implemented HttpSessionBindingListener. When session invalidation happens, the ValueUnBound method will be called. During this time I am not able to get the DB connection ??
Can any one help me to solve this please...
TAI,
Siva Ram
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean you cannot get db connection?
Do you get an error message ?
Be more specific
 
Siva Ram
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
DB conncetion refers to "For updating database , I need DB Connection". I am not getting DB connection. I got the exception given below.
*******DB Connection not successful*********
[javax.naming.NamingException [Root exception is java.lang.NullPointerException]
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are getting a NamingException. It's possible that the name you are using is not what the method is expecting, so it could not find it. Check your spelling, case, etc.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic