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

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

,

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

,

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 YouTrack by Unknown author, 1 year ago
via Atlassian JIRA by Armen Khachatryan [Atlassian], 1 year ago
For input string: "/bamboo2"
via https://bugzilla.redhat.com/bugzilla/ by Tomas Jelinek, 1 year ago
via https://bugzilla.redhat.com/bugzilla/ by Pavel Novotny, 6 months ago
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 akka.http.impl.model.parser.IpAddressParsing$class.ip$minusnumber(IpAddressParsing.scala:21)
at akka.http.impl.model.parser.UriParser.ip$minusnumber(UriParser.scala:21)
at akka.http.impl.model.parser.IpAddressParsing$class.ip$minusv4$minusaddress(IpAddressParsing.scala:13)
at akka.http.impl.model.parser.UriParser.ip$minusv4$minusaddress(UriParser.scala:21)
at akka.http.impl.model.parser.UriParser.ipv4Host(UriParser.scala:150)
at akka.http.impl.model.parser.UriParser.host(UriParser.scala:135)
at akka.http.impl.model.parser.UriParser.hostAndPort(UriParser.scala:131)
at akka.http.impl.model.parser.UriParser.authority(UriParser.scala:125)
at akka.http.impl.model.parser.UriParser.hier$minuspart(UriParser.scala:102)
at akka.http.impl.model.parser.UriParser.absolute$minusURI(UriParser.scala:111)
at akka.http.impl.model.parser.UriParser.request$minustarget(UriParser.scala:233)
at akka.http.impl.model.parser.UriParser$$anonfun$7.apply(UriParser.scala:237)
at akka.http.impl.model.parser.UriParser$$anonfun$7.apply(UriParser.scala:237)
at akka.parboiled2.Parser.runRule$1(Parser.scala:143)
at akka.parboiled2.Parser.phase0_initialRun$1(Parser.scala:151)
at akka.parboiled2.Parser.__run(Parser.scala:204)
at akka.http.impl.model.parser.UriParser.parseHttpRequestTarget(UriParser.scala:237)
at akka.http.scaladsl.model.Uri$.parseHttpRequestTarget(Uri.scala:266)
at akka.http.impl.engine.parsing.HttpRequest$anon$1.parseRequestTarget(HttpRequestParser.scala:139)
at akka.http.impl.engine.parsing.HttpRequestParser$$anon$1.parseMessage(HttpRequestParser.scala:72)
at akka.http.impl.engine.parsing.HttpMessageParser$class.startNewMessage(HttpMessageParser.scala:100)
at akka.http.impl.engine.parsing.HttpRequestParser$$anon$1.startNewMessage(HttpRequestParser.scala:42)
at akka.http.impl.engine.parsing.HttpMessageParser$$anonfun$3.apply(HttpMessageParser.scala:34)
at akka.http.impl.engine.parsing.HttpMessageParser$$anonfun$3.apply(HttpMessageParser.scala:34)
at akka.http.impl.engine.parsing.HttpMessageParser$class.run$1(HttpMessageParser.scala:64)
at akka.http.impl.engine.parsing.HttpMessageParser$class.parseBytes(HttpMessageParser.scala:78)
at akka.http.impl.engine.parsing.HttpRequestParser$$anon$1.parseBytes(HttpRequestParser.scala:42)
at akka.http.impl.engine.parsing.HttpMessageParser$class.parseSessionBytes(HttpMessageParser.scala:60)
at akka.http.impl.engine.parsing.HttpRequestParser$$anon$1.parseSessionBytes(HttpRequestParser.scala:42)
at akka.http.impl.engine.parsing.HttpRequestParser$$anon$1.onPush(HttpRequestParser.scala:53)
at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:755)
at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:657)
at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:470)
at akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:422)
at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:602)
at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:617)
at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:528)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Users with the same issue

4 times, 4 hours ago
Once, 1 day ago
4 times, 1 week ago
16 times, 1 week ago
6 times, 1 week ago

Write tip

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