jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Servlet Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Error" Watch "Servlet Error" New topic

Servlet Error

Chitti pokala
Ranch Hand

Joined: Jan 11, 2005
Posts: 46
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.

Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
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.

Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 160
Please use the to envelope your code in the post, so that it makes the fellow ranchers to easy to go through the code.

Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside Here WEBlog
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
But that would give the impression that it was real code....
I agree. Here's the link: http://aspose.com/file-tools
subject: Servlet Error
It's not a secret anymore!