Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6282

Error updating JIRA issues. java.lang.IndexOutOfBoundsException: No group 1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: jira-plugin
    • Labels:
      None
    • Environment:
      Hudson 1.354
    • Similar Issues:
      Show 5 results

      Description

      Hello there,

      today IƤve updated the Hudson (from 1.351) and his plugins. So the Jira-Plugin was updated as well.
      But from now on, no Jira Issues gets a comment:

      Error updating JIRA issues. Saving issues for next build.
      java.lang.IndexOutOfBoundsException: No group 1

      What is it, and how can i fix it?

      please help!

        Attachments

          Issue Links

            Activity

            Hide
            thosor Thomas S. added a comment -

            At the weekend i installed a test environment, with the std. installation + Jira-Plugin.
            Then I've checked out (SVN) a maven-2-project and build it with hudson.
            The SVN-Comment contents a Jira-Issue.
            Exactly the same error as above occurs.
            Please fix it.

            Apache Maven 2.2.1
            Hudson ver. 1.354
            Hudson Subversion Plug-in 1.16
            Hudson Support Subscription Notification Plugin 1.2
            Hudson SSH Slaves plugin 0.9
            CVS Plugin 1.0
            Maven Integration plugin 1.354
            Hudson JIRA plugin 1.22

            Using a Proxy for Communication.
            The Jira-ID in the SVN-Comment is linked (so Hudson can communicate with Jira)

            Show
            thosor Thomas S. added a comment - At the weekend i installed a test environment, with the std. installation + Jira-Plugin. Then I've checked out (SVN) a maven-2-project and build it with hudson. The SVN-Comment contents a Jira-Issue. Exactly the same error as above occurs. Please fix it. Apache Maven 2.2.1 Hudson ver. 1.354 Hudson Subversion Plug-in 1.16 Hudson Support Subscription Notification Plugin 1.2 Hudson SSH Slaves plugin 0.9 CVS Plugin 1.0 Maven Integration plugin 1.354 Hudson JIRA plugin 1.22 Using a Proxy for Communication. The Jira-ID in the SVN-Comment is linked (so Hudson can communicate with Jira)
            Hide
            thosor Thomas S. added a comment - - edited

            Looking a the Jira-Plugin-Site - maybe you could fix the problem.

            Show
            thosor Thomas S. added a comment - - edited Looking a the Jira-Plugin-Site - maybe you could fix the problem.
            Hide
            johanwannheden johanwannheden added a comment -

            I'm also getting the following message

            Error updating JIRA issues. Saving issues for next build.
            java.lang.IndexOutOfBoundsException: No group 1
            

            with Hudson 1.355, Hudson JIRA plugin 1.22, Jira 3.13.

            Show
            johanwannheden johanwannheden added a comment - I'm also getting the following message Error updating JIRA issues. Saving issues for next build. java.lang.IndexOutOfBoundsException: No group 1 with Hudson 1.355, Hudson JIRA plugin 1.22, Jira 3.13.
            Hide
            kutzi kutzi added a comment -

            I'd guess that this is related to JENKINS-6264

            Show
            kutzi kutzi added a comment - I'd guess that this is related to JENKINS-6264
            Hide
            kutzi kutzi added a comment -

            Please try to enter the default pattern ([a-zA-Z][a-zA-Z0-9_]+-[1-9][0-9]*) (with brackets) into the 'Issue pattern' field of the global configuration.
            Because of JENKINS-6264 the default pattern is not used, if no pattern is entered.

            Show
            kutzi kutzi added a comment - Please try to enter the default pattern ( [a-zA-Z] [a-zA-Z0-9_] +- [1-9] [0-9] *) (with brackets) into the 'Issue pattern' field of the global configuration. Because of JENKINS-6264 the default pattern is not used, if no pattern is entered.
            Hide
            johanwannheden johanwannheden added a comment -

            The workaround works for me, thanks.

            Show
            johanwannheden johanwannheden added a comment - The workaround works for me, thanks.
            Hide
            thosor Thomas S. added a comment - - edited

            Works for me aswell. So simple... thank you

            Show
            thosor Thomas S. added a comment - - edited Works for me aswell. So simple... thank you
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : kutzi
            Path:
            trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/Updater.java
            trunk/hudson/plugins/jira/src/main/webapp/help-issue-pattern.html
            trunk/hudson/plugins/jira/src/main/webapp/help-issue-pattern_de.html
            trunk/hudson/plugins/jira/src/test/java/hudson/plugins/jira/UpdaterTest.java
            http://jenkins-ci.org/commit/30574
            Log:
            [FIXED JENKINS-6282] catch exception if user defined pattern has no matching group and log warning

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kutzi Path: trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/Updater.java trunk/hudson/plugins/jira/src/main/webapp/help-issue-pattern.html trunk/hudson/plugins/jira/src/main/webapp/help-issue-pattern_de.html trunk/hudson/plugins/jira/src/test/java/hudson/plugins/jira/UpdaterTest.java http://jenkins-ci.org/commit/30574 Log: [FIXED JENKINS-6282] catch exception if user defined pattern has no matching group and log warning

              People

              • Assignee:
                kutzi kutzi
                Reporter:
                thosor Thomas S.
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: