java.lang.StringIndexOutOfBoundsException

String index out of range: -2<br></p> <pre> <code>at java.lang.String.substring(String.java:1931)

Samebug tips2

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"


This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

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

Solutions on the web4515

  • via Appcelerator JIRA by Ingo Muschenetz, 11 months ago
    String index out of range: -2<br></p> <pre> <code>at java.lang.String.substring(String.java:1931)
  • via Appcelerator JIRA by Ingo Muschenetz, 1 year ago
    String index out of range: -2<br></p> <pre> <code>at java.lang.String.substring(String.java:1931)
  • via Stack Overflow by KhaldunT
    , 1 year ago
    String index out of range: 2 at java.lang.String.substring(String.java:1950) at java.lang.String.substring(String.java:1950)
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: -2<br></p> <pre> <code>at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at com.aptana.editor.common.contentassist.CommonCompletionProposal.validate(CommonCompletionProposal.java:349) at com.aptana.editor.common.contentassist.CompletionProposalPopup.computeFilteredProposals(CompletionProposalPopup.java:1628) at com.aptana.editor.common.contentassist.CompletionProposalPopup.access$24(CompletionProposalPopup.java:1582) at com.aptana.editor.common.contentassist.CompletionProposalPopup$11.run(CompletionProposalPopup.java:1547) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

    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

    Unknown user
    Once, 10 months ago
    2 times, 4 hours ago
    2 times, 5 days ago
    Once, 3 weeks ago
    Once, 3 weeks ago
    95 more bugmates