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


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.


1 month ago

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


6 months ago

Solutions on the web

Solution icon of googlegroups
via Google Groups by Longzhi Tan, 9 months ago
For input string: "chr11"

Solution icon of stackoverflow
via Stack Overflow by Shantanu
, 1 year ago
For input string: "string"

Solution icon of web
For input string: ""java.lang.NumberFormatException: For input string: ""

Solution icon of coderanch
via Coderanch by Elinor Chang, 10 months ago
For input string: "0.0000000000null"

Solution icon of coderanch
via Coderanch by Henry Wong, 1 year ago
For input string: ""

Solution icon of coderanch
via Coderanch by Jherald Lacambra, 1 year ago
For input string: " "

Solution icon of coderanch
via Coderanch by Sarah Rainier, 1 year ago
For input string: "jjss"

Solution icon of coderanch
via Coderanch by Matt Riddoch, 1 year ago
For input string: "0.5"

Solution icon of coderanch
via Coderanch by Henry Wong, 1 year ago
For input string: "b"

Solution icon of coderanch
via Coderanch by sachin yadav, 10 months ago
For input string: "<%=Offer.OFFER_ID%>"

Stack trace

java.lang.NumberFormatException: For input string: "chr11"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:492)
	at java.lang.Integer.parseInt(Integer.java:527)
	at juicebox.tools.utils.original.AsciiPairIterator.advance(AsciiPairIterator.java:145)
	at juicebox.tools.utils.original.AsciiPairIterator.next(AsciiPairIterator.java:187)
	at juicebox.tools.utils.original.Preprocessor.computeWholeGenomeMatrix(Preprocessor.java:433)
	at juicebox.tools.utils.original.Preprocessor.writeBody(Preprocessor.java:311)
	at juicebox.tools.utils.original.Preprocessor.preprocess(Preprocessor.java:223)
	at juicebox.tools.clt.old.PreProcessing.run(PreProcessing.java:98)
	at juicebox.tools.HiCTools.main(HiCTools.java:77)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 2 months ago
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
255 more bugmates