• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to handle null pointer exception in backend

 
depak sundaram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am working in jsp,servlets and oracle and weblogic.i want to handle one null pointer exception.i am using connection pooling for connection.the problem is when the database is down i am getting as null pointer exception,but i want specific exception to be caught .can anyone help me regarding this?waiting for your reply.

depak
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by depak sundaram:
the problem is when the database is down i am getting as null pointer exception,but i want specific exception to be caught


Welcome to javaRanch.

I believe that your question is no more concern with JSF Forum.
please posts your query in appropriate forum for a better result...

use getMessage() or printStackTrace() for more specific result.

code example

[ February 16, 2007: Message edited by: Saif uddin ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!