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

  1. ,

    Can occur when you try to convert a String to a numeric value but the String is not well formatted for the conversion.

  2. ,

    You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.

Solutions on the web

via Stack Overflow by Robert
, 1 year ago
via Coderanch by Bernard Sigmund Gustav, 1 year ago
For input string: " 1"
via Stack Overflow by Ashish Shah
, 2 years ago
For input string: "123456789111111"
java.lang.NumberFormatException: For input string: ""	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)	at java.lang.Integer.parseInt(Integer.java:592)	at java.lang.Integer.parseInt(Integer.java:615)	at org.primefaces.component.menu.BaseMenuRenderer.findMenuitem(BaseMenuRenderer.java:89)	at org.primefaces.component.menu.BaseMenuRenderer.decode(BaseMenuRenderer.java:67)	at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:832)	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1227)	at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:573)	at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1689)	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)	at javax.faces.component.UIForm.visitTree(UIForm.java:371)	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)	at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:403)	at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:266)	at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)	at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:927)	at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:413)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)	at java.lang.Thread.run(Thread.java:745)