Details
-
Bug
-
Resolution: Fixed
-
Low
-
Release 4.0, 4.1, 4.2
-
None
-
4.01
-
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)