java.lang.NumberFormatException: For input string: ""


Samebug tips3

You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.


3 weeks ago

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


5 months ago

Solutions on the web4041

Solution icon of bugzilla
via Netbeans Bugzilla by dovidhalevi, 1 year ago
For input string: "?"

Solution icon of github
For input string: "1234567899999"

Solution icon of googlegroups
via Google Groups by Dionatan Hovoruski, 1 year ago
For input string: "nome"

Solution icon of googlegroups
For input string: "500Mb"*

Solution icon of apache
via ws-users by mith86, 1 year ago
For input string: "Client"

Solution icon of oraclecommunity
via Oracle Community by 807606, 11 months ago
For input string: ""

Solution icon of oraclecommunity
via Oracle Community by 807569, 1 year ago
For input string: ""8""

Solution icon of sourceforge
via symphonic by nobody
, 1 year ago
For input string: "0000C35"

Solution icon of stackoverflow
For input string: "prenom"

Solution icon of stackoverflow
via Stack Overflow by Mehdi Academic 2014
, 1 year ago
For input string: "0.211429"

Stack trace

java.lang.NumberFormatException: For input     string: ""
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
254 more bugmates