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

Coderanch | Francis Low | 7 years 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

    NumberFormatException thrown from parsing string to int

    Coderanch | 7 years ago | Francis Low
    java.lang.NumberFormatException: For input string: " 1"
  2. 0

    Getting a NumberFormatException in Talend

    Stack Overflow | 5 years ago | Leejoy
    java.lang.NumberFormatException: For input string: "+2"
  3. 0

    zookeeper not starting

    Stack Overflow | 5 years ago | user751851
    java.lang.NumberFormatException: For input string: "C:\Development\apps\zookeeper\zookeeper3.4.1\bin\..\conf\zoo.cfg"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    VoxelSniper null kicking clients.

    GitHub | 3 years ago | mibby
    org.bukkit.command.CommandException: Unhandled exception executing command 'b' in plugin VoxelSniper v5.170.0-SNAPSHOT-jnks317-gitfcb8fe1
  6. 0

    GitHub comment 57#242869127

    GitHub | 8 months ago | arjunnair1989
    java.lang.NumberFormatException: For input string: " 1"

  1. Andreas Häber 10 times, last 3 weeks ago
  2. Indri Yunita 3 times, last 4 weeks ago
  3. Eric 2 times, last 1 month ago
  4. tomthomas 4 times, last 1 month ago
  5. justCodeit 2 times, last 2 months ago
40 more registered users
55 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: " 1"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Integer.parseInt(Integer.java:449)
    3. java.lang.Integer.parseInt(Integer.java:499)
    3 frames
  3. spellingquiz
    Main.main
    1. spellingquiz.Main.loadScores(Main.java:237)
    2. spellingquiz.Main.main(Main.java:31)
    2 frames