java.lang.StringIndexOutOfBoundsException

String index out of range: -1

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web13

  • via Unknown by Wojciech Bajcar,
  • via Unknown by Wojciech Bajcar,
  • via Unknown by Jonny Rimes,
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.setLength(Unknown Source) at java.lang.StringBuilder.setLength(Unknown Source) at com.aptana.editor.common.text.rules.CollectingCharacterScanner.unread(CollectingCharacterScanner.java:67) at com.aptana.editor.common.text.rules.PrefixedCharacterScanner.unread(PrefixedCharacterScanner.java:61) at org.eclipse.jface.text.rules.PatternRule.endSequenceDetected(PatternRule.java:268) at org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:195) at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308) at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:209) at com.aptana.editor.common.text.rules.TagRule.endSequenceDetected(TagRule.java:108) at org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:187) at com.aptana.editor.common.text.rules.TagRule.doEvaluate(TagRule.java:85) at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308) at com.aptana.editor.common.text.rules.CompositePartitionScanner.doResumeContentType(CompositePartitionScanner.java:210) at com.aptana.editor.common.text.rules.CompositePartitionScanner.nextToken(CompositePartitionScanner.java:182) at org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:176) at org.eclipse.jface.text.rules.FastPartitioner.checkInitialization(FastPartitioner.java:151) at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:143) at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:125) at com.aptana.editor.common.CompositeDocumentProvider.connect(CompositeDocumentProvider.java:53) at com.aptana.editor.php.internal.ui.editor.PHPDocumentProvider.connect(PHPDocumentProvider.java:38)

    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

    We couldn't find other users who have seen this exception.