• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Error

 
Chitti pokala
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the following error:
E SRVE0026E: [Servlet Error]-[null]: java.lang.NumberFormatException: null

when I am trying to access oracle database using connection pooling through a servlet.

thanks,
chitti.
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A simple guess from that exception would be that your are passing a null object to one of the number formatting classes.

So if you have something like this:

String someNumberString = someDatabase.getSomeValue();
String formattedString = someNumberFormatter(someNumberString);

Then the error is that someDatabase.getSomeValue() is returning null.

you would confirm this by doing System.out.println(someNumberString); between those two lines.
 
Senthil B Kumar
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use the to envelope your code in the post, so that it makes the fellow ranchers to easy to go through the code.
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But that would give the impression that it was real code....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic