This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes null pointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "null pointer exception" Watch "null pointer exception" New topic
Author

null pointer exception

depak sundaram
Greenhorn

Joined: Dec 07, 2006
Posts: 2
hi i am using jsp,servlets,weblogic and oracle as back end.the problem is i am getting null pointer exception when the database is down and i want to catch specific exception.pls reply me
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
Well, I think a little code might be in order.

Show us the code where the null pointer exception is occurring and someone may be able to help you. As it is now we can't.

I will take a stab in the dark, though, and lay a small wager on the possibilty that somewhere in your code you are catching and ignoring SQLExceptions which then, later, causes you to attempt to use a reference that hasn't been defined yet.
 
Consider Paul's rocket mass heater.
 
subject: null pointer exception
 
Similar Threads
SCJP Brainteaser (2)
Question on Boxing
Check Box
Null Pointer Exception ???
Question on Exception