Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number Format Exception

Status
Not open for further replies.

loneill

Programmer
Mar 4, 2002
12
0
0
IE
Hi I am using Interbase with Java Server Pages. I am connecting them over a network. The Page is connecting but I have an error:

java.lang.NumberFormatException:
at java.lang.Integer.parseInt(Integer.java:435)
at java.lang.Integer.parseInt(Integer.java:463)
at interbase.interclient.Driver.connect(interbase/interclient/Driver.java:169)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at org.apache.jsp.Test$jsp._jspService(Test$jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

Does anyone know what this means??
 
For the most part when I get that exception the value I'm apparently passing to the parse methods turns out to be a null value... this is the first thing you should explicitly check for. I hope this helped! ;-)
- Casey Winans
 
Make sure your parseInt argument is a number and that it isn't null, for example you can't parse "THE NUMBER". I'm not sure if you could parse "Eleven", but you should be able to parse "11"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top