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

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


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

Expert tip

This is a bug in Wise, updating to v4.10 seems to solve the problem.

Solutions on the web

via Coderanch by Alex Reynders, 1 year ago
via Coderanch by Henry Wong, 1 year ago
via GitHub by mkj28
, 9 months ago
For input string: "10,997"
via Google Groups by DammeBuddies, 2 years ago
For input string: "9213501144129031184""
via Oracle Community by 861395, 1 year ago
For input string: ""
via Stack Overflow by Keval Shah
, 2 years ago
java.lang.NumberFormatException: For input string: "b"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at org.Java.Instructor.Project.hexadecimalEquivalent1(
at org.Java.Instructor.Project.Calculator(
at org.Java.Instructor.Project.main(

Users with the same issue

4 times, 1 day ago
Once, 2 days ago
4 times, 1 week ago
16 times, 1 week ago
6 times, 1 week ago

Write tip

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