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 Google Groups by WHänsch, 2 years ago
For input string: "1332846741070"
via GitHub by hanito
, 1 year ago
For input string: "NUMBER_OF_VERB_FRAMES"
via Coderanch by Mike Oxenfire, 1 year ago
For input string: "shirt "
via GitHub by DallonTG
, 1 year ago
via ws-users by Jochen Wiedmann, 1 year ago
For input string: "Client"
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at pcgen.persistence.lst.PCClassLoader.parseFullClassLevelLine(PCClassLoader.java:237)
at pcgen.persistence.lst.PCClassLoader.parseClassLine(PCClassLoader.java:213)
at pcgen.persistence.lst.PCClassLoader.parseLine(PCClassLoader.java:163)
at pcgen.persistence.lst.PCClassLoader.parseLine(PCClassLoader.java:48)
at pcgen.persistence.lst.LstObjectFileLoader.loadLstFile(LstObjectFileLoader.java:449)
at pcgen.persistence.lst.LstObjectFileLoader.loadLstFiles(LstObjectFileLoader.java:117)
at pcgen.persistence.lst.LstSystemLoader.loadCampaigns(LstSystemLoader.java:573)
at pcgen.persistence.lst.LstSystemLoader.loadCampaigns(LstSystemLoader.java:447)
at pcgen.persistence.PersistenceManager.loadCampaigns(PersistenceManager.java:189)
at pcgen.gui.sources.MainSource.loadCampaigns(MainSource.java:1312)
at pcgen.gui.sources.MainSource.access$1800(MainSource.java:136)
at pcgen.gui.sources.MainSource$20.construct(MainSource.java:1328)
at pcgen.util.SwingWorker$2.run(SwingWorker.java:144)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

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

Write tip

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