java.lang.StringIndexOutOfBoundsException

String index out of range: -1

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 web4606

  • via Coderanch by virga, 7 months ago
    String index out of range: -1
  • via Coderanch by Kari Nordmann, 9 months ago
    String index out of range: -1
  • via Coderanch by Khaly Silverman, 9 months ago
    String index out of range: -1
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1911)[na:1.7.0_45] at com.atlassian.stash.integration.jira.impl.SimpleJiraIssue.<init>(SimpleJiraIssue.java:23)[na:na] at com.atlassian.stash.integration.jira.impl.JiraIssueServiceImpl.addSimpleIssues(JiraIssueServiceImpl.java:265)[na:na] at com.atlassian.stash.integration.jira.impl.JiraIssueServiceImpl.getIssuesIfLinked(JiraIssueServiceImpl.java:241)[na:na] at com.atlassian.stash.integration.jira.impl.JiraIssueServiceImpl.getIssuesForChangesets(JiraIssueServiceImpl.java:136)[na:na] at com.sun.proxy.$Proxy1518.getIssuesForChangesets(Unknown Source)[na:na] at com.atlassian.stash.internal.summary.job.ActivitySummaryGenerator.findJiraKeys(ActivitySummaryGenerator.java:117)[na:na] at com.atlassian.stash.internal.summary.job.ActivitySummaryGenerator.access$200(ActivitySummaryGenerator.java:33)[na:na] at com.atlassian.stash.internal.summary.job.ActivitySummaryGenerator$1.perform(ActivitySummaryGenerator.java:71)[na:na] at com.atlassian.stash.internal.summary.job.ActivitySummaryGenerator$1.perform(ActivitySummaryGenerator.java:62)[na:na] at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:60)[stash-service-impl-3.0.0-SNAPSHOT.jar:na] at com.atlassian.stash.internal.summary.job.ActivitySummaryGenerator.generateContext(ActivitySummaryGenerator.java:61)[na:na] at com.atlassian.stash.internal.summary.job.ActivityNotificationSender.generateActivitySummaryFor(ActivityNotificationSender.java:62)[na:na] at com.atlassian.stash.internal.summary.job.ActivityNotificationSender.access$000(ActivityNotificationSender.java:22)[na:na] at com.atlassian.stash.internal.summary.job.ActivityNotificationSender$1.apply(ActivityNotificationSender.java:55)[na:na] at com.atlassian.stash.internal.summary.job.ActivityNotificationSender$1.apply(ActivityNotificationSender.java:53)[na:na] at com.atlassian.stash.internal.summary.MapUtils.generateMap(MapUtils.java:14)[na:na] at com.atlassian.stash.internal.summary.job.ActivityNotificationSender.send(ActivityNotificationSender.java:53)[na:na] at com.atlassian.stash.internal.summary.service.DefaultActivityNotificationService$NotificationJob.execute(DefaultActivityNotificationService.java:102)[na:na] at com.atlassian.stash.internal.sal.scheduling.PluginSchedulerAdapter$JobDescriptor.runJob(PluginSchedulerAdapter.java:130)[stash-platform-3.0.0-SNAPSHOT.jar:na] at com.atlassian.stash.internal.sal.scheduling.PluginSchedulerAdapter.runJob(PluginSchedulerAdapter.java:86)[stash-platform-3.0.0-SNAPSHOT.jar:na] at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:121)[atlassian-scheduler-core-1.1.0-STASHDEV-6226-2.jar:na] at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)[atlassian-scheduler-core-1.1.0-STASHDEV-6226-2.jar:na] at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)[atlassian-scheduler-core-1.1.0-STASHDEV-6226-2.jar:na] at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:33)[atlassian-scheduler-quartz1-1.1.0-STASHDEV-6226-2.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:223)[quartz-1.8.6.jar:na] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)[quartz-1.8.6.jar:na]

    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, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    95 more bugmates