• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Exception error  RSS feed

 
sam pearce
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this message every time I pass a value either through querystring or a hidden value to the next page when I have a button that uses submit and is pressed. Here is the full detail of the error msg.
A Servlet Exception Has Occurred
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
System:
-Apache Tomcat 4.0
- happens every time the submit button is pressed
Thanks
 
sam pearce
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also a tidbit of more information. I have narrowed it down to when I take the hidden value from the previous page or querystring from previous page.
Then I use the String sID = request.getParameter("nameofvaluepassed"); and use the
**this is when the message comes up**
Integer.parseInt function.
iID=Integer.parseInt(sID);
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it looks you have a mess with the parameter
name. check that you use the same parameter
setting the hidden parameter and in getParameter().
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeh, posting the sources code will help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!