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

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 Appcelerator JIRA by Ingo Muschenetz, 1 year ago
via Appcelerator JIRA by Ingo Muschenetz, 1 year ago
via java-forums.org by Unknown author, 2 years ago
String index out of range: 3
via java-forums.org by Unknown author, 1 year ago
via Stack Overflow by user1551954
, 2 years ago
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:686)
at com.aptana.editor.html.validator.HTMLTidyValidator.getOffset(HTMLTidyValidator.java:240)
at com.aptana.editor.html.validator.HTMLTidyValidator.parseTidyOutput(HTMLTidyValidator.java:215)
at com.aptana.editor.html.validator.HTMLTidyValidator.runTidy(HTMLTidyValidator.java:154)
at com.aptana.editor.html.validator.HTMLTidyValidator.buildFile(HTMLTidyValidator.java:76)
at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:309)
at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:240)
at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:210)
at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:409)
at com.aptana.editor.common.text.reconciler.CompositeReconcilingStrategy.fullReconcile(CompositeReconcilingStrategy.java:125)
at com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162)

Users with the same issue

Once, 1 month ago
Once, 9 months ago
32257 times, 11 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
43 more bugmates

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