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

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 memorynotfound.com by Unknown author, 1 year ago
via Stack Overflow by Hooman
, 2 years ago
For input string: "userName"
via releaseteam.com by Unknown author, 1 year ago
For input string: "bco"
via GitHub by mkj28
, 7 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: ""
java.lang.NumberFormatException: For input string: "-abc"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at java.lang.Long.parseLong(Long.java:631)
at com.memorynotfound.ParseLongExample.main(ParseLongExample.java:16)

Users with the same issue

504 times, 1 week ago
2 times, 2 months ago
Once, 2 months ago
Once, 2 months ago
2 times, 4 months ago
230 more bugmates

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