Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-1802

java.util.NoSuchElementException when using a single version picker in card creation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.2.1
    • Release 4.0, 4.1, 4.2
    • None

    Description

      This is not easy to reproduce on the latest versions of JIRA.
      The problem is that if no versions are found an empty set is returned instead of a null reference. Since GreenHopper only checks the null case, the empty set will trigger this error.

      Steps to reproduce:
      1) User clicks on "New Card" from Greenhopper in the Marketer product
      2) Screen goes to an opaque grey with "Loading" in the foreground.
      3) The "Loading" never quits and the user eventually gives up and hits the back button.

      The following error appears in the catalina.out log when the issue occurs:

      2009-11-24 11:47:15,264 http-192.168.122.12-8443-Processor100 ERROR kmason 42435x173118x1 3v1d3b https://jira.balihoo.com:8443/secure/GHAddIssue.jspa [velocity] Method getDefaultValue threw exception for reference $afield in template templates/greenhopper/jira/issue/fields/select-create.vm at [10,96]
      2009-11-24 11:47:15,264 http-192.168.122.12-8443-Processor100 ERROR kmason 42435x173118x1 3v1d3b https://jira.balihoo.com:8443/secure/GHAddIssue.jspa [velocity] Method getDefaultValue threw exception for reference $option in template templates/greenhopper/jira/issue/fields/select-create.vm at [10,75]
      2009-11-24 11:47:15,264 http-192.168.122.12-8443-Processor100 ERROR kmason 42435x173118x1 3v1d3b https://jira.balihoo.com:8443/secure/GHAddIssue.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.util.NoSuchElementException
      java.util.NoSuchElementException
      at java.util.AbstractList$Itr.next(AbstractList.java:350)
      at com.pyxis.greenhopper.jira.fields.CustomFieldVersion.getDefaultValue(CustomFieldVersion.java:44)
      at sun.reflect.GeneratedMethodAccessor3684.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jchuet JC
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: