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

memorynotfound.com | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to convert a String to long in Java

    memorynotfound.com | 8 months ago
    java.lang.NumberFormatException: For input string: "-abc"
  2. 0

    Twitter4j NumberFormatException

    Stack Overflow | 2 years ago | Hooman
    java.lang.NumberFormatException: For input string: "userName"
  3. 0

    failed to parse [facility] with gelf input

    Google Groups | 2 years ago | Andrew Beresford
    org.elasticsearch.index.mapper.MapperParsingException: failed to parse [facility]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Number format exception in java, taking wrong input

    Stack Overflow | 2 years ago | cwattsdis
    java.lang.NumberFormatException: For input string: "Abernathy, C."
  6. 0

    java.lang.NumberFormatException: For input string: 16:30 (Servlets forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.NumberFormatException: For input string: "16:30"

  1. jesse 1 times, last 2 months ago
  2. poroszd 1 times, last 3 months ago
  3. treefolk 1 times, last 5 months ago
  4. MoYapro 5 times, last 5 months ago
  5. Handemelindo 6 times, last 1 month ago
15 more registered users
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "-abc"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Long.parseLong
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2. java.lang.Long.parseLong(Long.java:589)
    3. java.lang.Long.parseLong(Long.java:631)
    3 frames
  3. com.memorynotfound
    ParseLongExample.main
    1. com.memorynotfound.ParseLongExample.main(ParseLongExample.java:16)
    1 frame