• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullFormatException : Null

 
ganesh dengale
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the line the exception is being thown at. An object reference in that line points to null.
 
ganesh dengale
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i couldnot get what you want to say
 
ganesh dengale
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error I got is as follows


 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic