File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NumberFormatException: For input string:

 
Caleb Jhay
Greenhorn
Posts: 18
Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I dont knw if this is the right forum to ask this queston.

I have this query



This code execute well. I was able to see the size of my result

For some reason I dont see anything on my jsp page it returns me this error



My JSP CODE is this



I ran out of ideas I dont know what to do because I'm new to java/spring and hibernate. Any help is deeply appriciated.

Best Regards,
 
Paul Clapham
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's put it this way: the JSP processing is trying to convert the string "DATE_RECEIVED" to an integer for some reason. I don't see why either of the
two code fragments you posted have anything to do with that.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47244
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please avoid long lines; they are difficult to read, particularly in code tags.
You are somehow passing the String "PO_NUMBER" to the constructor of a Number class, or to a method like Integer.parseInt(), Integer.valueOf(), etc. It would appear to be Integer.parseInt().
You will have to go through your code, using the line numbers shown, and work out where it is happening. It is probably not in the code you posted.
 
Caleb Jhay
Greenhorn
Posts: 18
Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

THANK YOU FOR REPLYING GUYS

edited the error and put the entire error log.




This code execute well. I was able to see the size of my result

For some reason I dont see anything on my jsp page it returns me this error



My JSP CODE is this




I was confused how come im getting the parse error since I'm not parsing anything?
Initially I was using List result = session.createQuery it works ok. But when I try List result = session.createSQLQuery Im getting this problem.

Best Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic