java.lang.StringIndexOutOfBoundsException

tip

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

tip

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • JEMH is handling requests properly, but reporting the following in our logs: {code} javax.mail.MessagingException: Unhandled Exception occurred during processing, type=java.lang.StringIndexOutOfBoundsException), location=java.lang.String.substring(String.java:1937). Likely this is a BUG: String index out of range: -9; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:262) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:67) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at com.javahollic.jira.emh.processor.SubjectBasedFieldProcessor.getFieldMap(SubjectBasedFieldProcessor.java:170) at com.javahollic.jira.emh.processor.SubjectBasedFieldProcessor.getDirectiveCount(SubjectBasedFieldProcessor.java:220) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:107) ... 6 more {code}
    via by Ryan Wilcox,
  • JEMH is handling requests properly, but reporting the following in our logs: {code} javax.mail.MessagingException: Unhandled Exception occurred during processing, type=java.lang.StringIndexOutOfBoundsException), location=java.lang.String.substring(String.java:1937). Likely this is a BUG: String index out of range: -9; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:262) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:67) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at com.javahollic.jira.emh.processor.SubjectBasedFieldProcessor.getFieldMap(SubjectBasedFieldProcessor.java:170) at com.javahollic.jira.emh.processor.SubjectBasedFieldProcessor.getDirectiveCount(SubjectBasedFieldProcessor.java:220) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:107) ... 6 more {code}
    via by Ryan Wilcox,
  • BNF recursion in EpochX framework
    via Stack Overflow by espais
    ,
  • Extracting data elements from a text file
    via Stack Overflow by Sinatics
    ,
  • No title
    via by Unknown author,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:262) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:67) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at com.javahollic.jira.emh.processor.SubjectBasedFieldProcessor.getFieldMap(SubjectBasedFieldProcessor.java:170) at com.javahollic.jira.emh.processor.SubjectBasedFieldProcessor.getDirectiveCount(SubjectBasedFieldProcessor.java:220) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:107) ... 6 more

    Users with the same issue

    Handemelindo
    1 times, last one,
    Casper
    8 times, last one,
    zsamboki
    1 times, last one,
    Pilleo
    1 times, last one,
    Unknown User
    36 times, last one,
    92 more bugmates