File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes NumberFormatException: For input string: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "NumberFormatException: For input string: "null"" Watch "NumberFormatException: For input string: "null"" New topic
Author

NumberFormatException: For input string: "null"

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726
Hi,

the following code is working fine but sometime I am seeing Error in tomcat log



Tomcat Log:


I checked line 43 and 48 but unable to understand where is the error?

Please help me

Best regards
Mahendra Suda
Greenhorn

Joined: Apr 22, 2011
Posts: 18
You are getting String pageNo=req.getParameter("pageNo") as 'null' string, thats why it is going inside null check, but pageNo is not null ie it is value 'null' as string, and definitely the number format exception will come for input as "null" or any string which does not include any number.

you need to check where you passing the parameter pageNo, it is passing properly or not.


http://www.java-connect.com
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726
Mahendra Suda you are really genius. Thanks a lot

Best regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NumberFormatException: For input string: "null"
 
Similar Threads
getter and setters
Pagging Problem
Want to convert my code in method
java.lang.IllegalStateException
Pagging Problem