java.lang.StringIndexOutOfBoundsException

String index out of range: -1


Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web4670

Solution icon of coderanch
via Coderanch by virga, 8 months ago
String index out of range: -1

Solution icon of coderanch
via Coderanch by Kari Nordmann, 10 months ago
String index out of range: -1

Solution icon of coderanch
via Coderanch by Khaly Silverman, 10 months ago
String index out of range: -1

Solution icon of coderanch
via Coderanch by Rahul Mahindrakar, 9 months ago
String index out of range: -1

Solution icon of coderanch
via Coderanch by David Yutzy, 9 months ago
String index out of range: -1

Solution icon of bugzilla
String index out of range: 1

Solution icon of bugzilla
String index out of range: -1

Solution icon of bugzilla
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by anton.leherbauer, 1 year ago
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by todd.gochenour, 1 year ago
String index out of range: -1

Stack trace

  • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.charAt(String.java:687) at oracle.apps.xdo.common.encoding.Base64Util.decode(Base64Util.java:54) at oracle.apps.xdo.template.fo.elements.FOInstreamForeignObject.end(FOInstreamForeignObject.java:71) at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:455) at oracle.apps.xdo.common.xml.XSLTMerger.endElement(XSLTMerger.java:69) at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1295) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206) at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:320) at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1051) at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936) at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459) at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548) at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302) at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)

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

Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
14 times, 1 month ago
11 times, 3 months ago
Once, 1 year ago
2 times, 1 year ago
35 more bugmates