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
posted 10 years ago
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.