java.lang.StringIndexOutOfBoundsException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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


rprp
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.

  • Steps to reproduce: # install a new vanilla JIRA instance # create a new project. Let's say with key "ADD" # create a ticket with description "tea". Issue Key ADD-1 # create another ticket (ADD-2) with description contain: {noformat} Try to find a point where there is some load (BT off, LEDs on, display on) {noformat} Refer to screenshot Description-Edit.png # change Project Key Pattern via _Administration > General Configuration > Advanced > jira.projectkey.pattern_ to: {noformat} ([A-Z][A-Z]+)|(PJ[0-9]{4}) {noformat} # try to create a new Project with key "PJ0223". JIRA doesn't throw any error. # go to both ADD-1 and ADD-2. ADD-1 is correct as shown in ADD-1.png. However, ADD-2 will have the description broken as shown in the screenshot Description-View.png # JIRA also throw following error if : {noformat} 2012-03-26 21:33:07,110 http-8084-2 ERROR admin 1293x162x1 9tevgj 127.0.0.1 /browse/ADD-2 [atlassian.renderer.v2.V2Renderer] Unable to render content due to system error: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at com.atlassian.jira.issue.fields.renderer.wiki.links.JiraIssueLinkRendererComponent.linkBugKeys(JiraIssueLinkRendererComponent.java:77) at com.atlassian.jira.issue.fields.renderer.wiki.links.JiraIssueLinkRendererComponent.render(JiraIssueLinkRendererComponent.java:26) {noformat} or {noformat} 2012-03-26 21:23:40,665 http-8084-2 ERROR admin 1283x107x1 9tevgj 127.0.0.1 /browse/ADD-2 [webwork.util.ValueStack] METHOD: "renderedContent", exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at com.atlassian.jira.util.JiraKeyUtils.linkBugKeys(JiraKeyUtils.java:372) at com.atlassian.jira.issue.fields.renderer.text.DefaultTextRenderer.render(DefaultTextRenderer.java:20) {noformat} This is tested in JIRA 4.4.3
    via by Janet Albion [Atlassian],
  • Steps to reproduce: # install a new vanilla JIRA instance # create a new project. Let's say with key "ADD" # create a ticket with description "tea". Issue Key ADD-1 # create another ticket (ADD-2) with description contain: {noformat} Try to find a point where there is some load (BT off, LEDs on, display on) {noformat} Refer to screenshot Description-Edit.png # change Project Key Pattern via _Administration > General Configuration > Advanced > jira.projectkey.pattern_ to: {noformat} ([A-Z][A-Z]+)|(PJ[0-9]{4}) {noformat} # try to create a new Project with key "PJ0223". JIRA doesn't throw any error. # go to both ADD-1 and ADD-2. ADD-1 is correct as shown in ADD-1.png. However, ADD-2 will have the description broken as shown in the screenshot Description-View.png # JIRA also throw following error if : {noformat} 2012-03-26 21:33:07,110 http-8084-2 ERROR admin 1293x162x1 9tevgj 127.0.0.1 /browse/ADD-2 [atlassian.renderer.v2.V2Renderer] Unable to render content due to system error: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at com.atlassian.jira.issue.fields.renderer.wiki.links.JiraIssueLinkRendererComponent.linkBugKeys(JiraIssueLinkRendererComponent.java:77) at com.atlassian.jira.issue.fields.renderer.wiki.links.JiraIssueLinkRendererComponent.render(JiraIssueLinkRendererComponent.java:26) {noformat} or {noformat} 2012-03-26 21:23:40,665 http-8084-2 ERROR admin 1283x107x1 9tevgj 127.0.0.1 /browse/ADD-2 [webwork.util.ValueStack] METHOD: "renderedContent", exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at com.atlassian.jira.util.JiraKeyUtils.linkBugKeys(JiraKeyUtils.java:372) at com.atlassian.jira.issue.fields.renderer.text.DefaultTextRenderer.render(DefaultTextRenderer.java:20) {noformat} This is tested in JIRA 4.4.3
    via by Janet Albion [Atlassian],
  • GitHub comment 6#4988246
    via GitHub by caetie
    ,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at com.atlassian.jira.util.JiraKeyUtils.linkBugKeys(JiraKeyUtils.java:372) at com.atlassian.jira.issue.fields.renderer.text.DefaultTextRenderer.render(DefaultTextRenderer.java:20)

    Users with the same issue

    zsambokizsamboki
    1 times, last one,
    osvzsosvzs
    2 times, last one,
    richard77richard77
    2 times, last one,
    MoYaproMoYapro
    1 times, last one,
    kjhdofjosvskjhdofjosvs
    2 times, last one,
    92 more bugmates