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

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

,
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.

,
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.

Solutions on the web

via blogspot.com by Unknown author, 1 year ago
via Google Groups by Frances Del Rio, 1 month ago
String index out of range: -1
via GitHub by hazendaz
, 10 months ago
String index out of range: 246
via Stack Overflow by V Ts
, 1 month ago
java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.String.charAt(String.java:793)
at oracle.apps.xdo.template.pdf.util.PDFFile.getVersion(PDFFile.java:232)
at oracle.apps.xdo.template.pdf.Xref.initialize(Xref.java:89)
at oracle.apps.xdo.template.pdf.Xref.init(Xref.java:72)
at oracle.apps.xdo.template.pdf.PDFParser.initialize(PDFParser.java:261)
at oracle.apps.xdo.template.pdf.PDFParser.init(PDFParser.java:160)
at oracle.apps.xdo.template.pdf.PDFParser.init(PDFParser.java:151)
at oracle.apps.xdo.common.pdf.util.PDFDocMerger$PDFUtility.init(PDFDocMerger.java:1603)
at oracle.apps.xdo.common.pdf.util.PDFDocMerger.mergeDocs(PDFDocMerger.java:431)
at oracle.apps.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:378)
at oracle.apps.xdo.common.pdf.util.StreamPDFDocMerger.process(StreamPDFDocMerger.java:120)
at oracle.apps.pay.core.documents.DocPDFMerger.process(DocPDFMerger.java:86)

Users with the same issue

3 times, 1 month ago
Once, 1 month ago
2 times, 2 months ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
43 more bugmates

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