java.lang.NumberFormatException: 2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

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.

,

Can occur when you try to convert a String to a numeric value but the String is not well formatted for the conversion.

Solutions on the web

via Oracle Community by 807594, 1 year ago
via Oracle Community by 3004, 1 year ago
via Oracle Community by 3004, 1 year ago
via Google Groups by Laci, 6 months ago
For input > string: "(ROOT{0-24} ([S]{0-23} ([S]{0-19} ([S]{0-17} ([S]{0-12} ([S] > {0-11} ([S]{0-2} ([X]{0-2} a ([X]{1-2} fifty-seven-when_OOV))) ([X] > {2-11} ([X]{2-4} volt) összefüggő ([X]{5-11} ([X]{5-7} szerette) , > hogy ([X]{10-11
via Stack Overflow by Innova
, 2 years ago
Invalid int: "][2" 07-22 11:12:57.728: W/System.err(9582): at java.lang.Integer.invalidInt(Integer.java:138) 07-22 11:12:57.728: W/System.err(9582): at java.lang.Integer.parse(Integer.java:375)
via Oracle Community by 3004, 1 year ago
error=2 at > java.lang.Integer.parseInt(Integer.java:409) >
java.lang.NumberFormatException: 2
at java.lang.Integer.parseInt(Integer.java:423)
at java.lang.Integer.parseInt(Integer.java:463)
at undefined.POP3a.(POP3a.java:92)
at undefined.POP3a.main(POP3a.java:159)

Users with the same issue

Once, 1 day ago
18 times, 1 week ago
Once, 1 month ago
Once, 1 month ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.