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

Coderanch | Bernard Sigmund Gustav | 1 decade 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

    parseInt problem

    Coderanch | 1 decade ago | Bernard Sigmund Gustav
    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 3 weeks ago
  3. Eric 2 times, last 4 weeks 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:468)
    3. java.lang.Integer.parseInt(Integer.java:518)
    3 frames
  3. org.apache.jsp
    readtextfile_jsp._jspService
    1. org.apache.jsp.readtextfile_jsp._jspService(readtextfile_jsp.java:122)
    1 frame
  4. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
    1 frame
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    1 frame
  6. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
    3 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    1 frame
  8. Glassfish Core
    ContainerBase.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
    4. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    6. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
    8. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    11. org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
    12. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
    13. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    14. org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
    15. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
    16. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
    17. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
    18. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    19. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    20. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
    21. org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    22. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    23. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    23 frames
  9. org.apache.coyote
    CoyoteAdapter.service
    1. org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
    1 frame
  10. Grizzly HTTP
    TcpWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    3. org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    3 frames
  11. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    1 frame
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:534)
    1 frame