my dog learned polymorphism*
The moose likes Servlets and the fly likes NullFormatException : Null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "NullFormatException : Null" Watch "NullFormatException : Null" New topic
Author

NullFormatException : Null

ganesh dengale
Greenhorn

Joined: Feb 22, 2007
Posts: 6
from my J2me Code I am accessing a servlet but i'm facing above error.

My J2me & Servlet Code Snippets are as follow..

J2me Code Snippet




Servlet Code snippet

[BSouther: Added UBB CODE tags]
[ March 30, 2007: Message edited by: Ben Souther ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Look at the line the exception is being thown at. An object reference in that line points to null.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
ganesh dengale
Greenhorn

Joined: Feb 22, 2007
Posts: 6
sorry i couldnot get what you want to say
ganesh dengale
Greenhorn

Joined: Feb 22, 2007
Posts: 6
Error I got is as follows


Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

java.lang.NumberFormatException

This is thrown from Integer.parseInt(String) when the value you try to parse cannot be interpreted as an integer. Look at the code on line 18 of your CollectionDetails servlet and check the value you are trying to parse is not null and a parsable value (i.e. its not a letter or a floating point number, or some other non-numeric character)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullFormatException : Null
 
Similar Threads
please any one cleare my error
Problem of inserting java array into DB
problem in retrieving data from a DB to HTML through JSP
NumberFormatException : null
PreparedStatement-Statement