java.util.NoSuchElementException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Jean-Christophe Huet,
  • 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)
    via by Jean-Christophe Huet,
  • NoSuchElementException in audit
    via GitHub by jshiell
    ,
  • Problem arrayList class
    via Stack Overflow by Blanca Hdez
    ,
  • Facing some problems in sqoop-export?
    via Stack Overflow by bks
    ,
  • How to use autoincrement-IDs in Sqoop export
    via Stack Overflow by thomers
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,