java.util.NoSuchElementException

Atlassian JIRA | Jean-Christophe Huet | 7 years ago
  1. 0

    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)

    Atlassian JIRA | 7 years ago | Jean-Christophe Huet
    java.util.NoSuchElementException
  2. 0

    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)

    Atlassian JIRA | 7 years ago | Jean-Christophe Huet
    java.util.NoSuchElementException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NoSuchElementException in audit

    GitHub | 4 years ago | jshiell
    org.infernus.idea.checkstyle.exception.CheckStylePluginException: The inspection could not be executed.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.NoSuchElementException

      No message provided

      at java.util.AbstractList$Itr.next()
    2. Java RT
      AbstractList$Itr.next
      1. java.util.AbstractList$Itr.next(AbstractList.java:350)
      1 frame
    3. com.pyxis.greenhopper
      CustomFieldVersion.getDefaultValue
      1. com.pyxis.greenhopper.jira.fields.CustomFieldVersion.getDefaultValue(CustomFieldVersion.java:44)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor3684.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames