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

,

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.

,

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

Solutions on the web

via QOS.ch JIRA by Sébastien Pennec, 1 year ago
For input string: "% %"
via GitHub by ItsShadow13
, 1 year ago
For input string: "R"
java.lang.NumberFormatException: For input string: "% %"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at ch.qos.logback.core.pattern.FormatInfo.valueOf(FormatInfo.java:70)
at ch.qos.logback.core.pattern.parser.Parser.T(Parser.java:84)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:51)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.Eopt(Parser.java:107)
at ch.qos.logback.core.pattern.parser.Parser.E(Parser.java:55)
at ch.qos.logback.core.pattern.parser.Parser.parse(Parser.java:31)
at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:76)
at ch.qos.logback.core.joran.action.AbstractLayoutAction.end(AbstractLayoutAction.java:75)
at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:289)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at ch.qos.logback.core.joran.JoranConfiguratorBase.doConfigure(JoranConfiguratorBase.java:125)
at ch.qos.logback.core.joran.JoranConfiguratorBase.doConfigure(JoranConfiguratorBase.java:101)
at ch.qos.logback.core.joran.JoranConfiguratorBase.doConfigure(JoranConfiguratorBase.java:84)
at mainPackage.ConfigTester.main(ConfigTester.java:21)

Users with the same issue

4 times, 5 days ago
16 times, 5 days ago
6 times, 1 week ago
30 times, 1 week ago
2 times, 1 week ago

Write tip

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