java.lang.StringIndexOutOfBoundsException: String index out of range: 126

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

,
Expert tip

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.

,
via oracle.com by Unknown author

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.

Solutions on the web

via Google Groups by Rex, 1 year ago
String index out of range: 126
via Oracle Community by 807599, 10 months ago
String index out of range: 6
via Stack Overflow by Kagan Hamzacebi
, 3 months ago
via GitHub by xcurry
, 1 year ago
String index out of range: 311
via pig-user by Shin Chan, 1 year ago
String index out of range: 26
via apache.org by Unknown author, 2 years ago
java.lang.StringIndexOutOfBoundsException: String index out of range: 126
at java.lang.String.charAt(Unknown Source)
at no.priv.garshol.duke.utils.NTriplesParser.parseuri(NTriplesParser.java:181)
at no.priv.garshol.duke.utils.NTriplesParser.parseLine(NTriplesParser.java:98)
at no.priv.garshol.duke.utils.NTriplesParser.parseLine(NTriplesParser.java:49)
at no.priv.garshol.duke.datasources.NTriplesDataSource$IncrementalRecordIterator.parseNextLine(NTriplesDataSource.java:262)
at no.priv.garshol.duke.datasources.NTriplesDataSource$IncrementalRecordIterator.parseRecord(NTriplesDataSource.java:278)
at no.priv.garshol.duke.datasources.NTriplesDataSource$IncrementalRecordIterator.findNextRecord(NTriplesDataSource.java:242)
at no.priv.garshol.duke.datasources.NTriplesDataSource$IncrementalRecordIterator.next(NTriplesDataSource.java:235)
at no.priv.garshol.duke.datasources.NTriplesDataSource$IncrementalRecordIterator.next(NTriplesDataSource.java:212)
at no.priv.garshol.duke.Processor.index(Processor.java:395)
at no.priv.garshol.duke.Processor.link(Processor.java:316)
at no.priv.garshol.duke.Duke.main_(Duke.java:176)
at no.priv.garshol.duke.Duke.main(Duke.java:37)

Users with the same issue

Once, 2 months ago
Once, 2 months ago
3 times, 3 months ago
2 times, 3 months ago
Once, 3 months ago

Write tip

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