java.util.NoSuchElementException

Jenkins JIRA | vdupain | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Build statistics does not display result with regex .* filter. Exception is thrown: {code} WARNING: Caught exception evaluating: it.getBuildStat(jobs) in /jenkins/view/0.%20Survol/. Reason: java.util.NoSuchElementException java.util.NoSuchElementException at jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey(AbstractLazyLoadRunMap.java:310) at jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey(AbstractLazyLoadRunMap.java:102) at java.util.Collections$UnmodifiableSortedMap.firstKey(Collections.java:1549) at hudson.plugins.view.dashboard.stats.StatBuilds.getBuildStat(StatBuilds.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStati {code} If instead on using regex filter to choose jobs I select job with checkbox, it works, build statistics displays somes results.

    Jenkins JIRA | 4 years ago | vdupain
    java.util.NoSuchElementException
  2. 0

    Build statistics does not display result with regex .* filter. Exception is thrown: {code} WARNING: Caught exception evaluating: it.getBuildStat(jobs) in /jenkins/view/0.%20Survol/. Reason: java.util.NoSuchElementException java.util.NoSuchElementException at jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey(AbstractLazyLoadRunMap.java:310) at jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey(AbstractLazyLoadRunMap.java:102) at java.util.Collections$UnmodifiableSortedMap.firstKey(Collections.java:1549) at hudson.plugins.view.dashboard.stats.StatBuilds.getBuildStat(StatBuilds.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74) at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStati {code} If instead on using regex filter to choose jobs I select job with checkbox, it works, build statistics displays somes results.

    Jenkins JIRA | 4 years ago | vdupain
    java.util.NoSuchElementException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.NoSuchElementException

      No message provided

      at jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey()
    2. jenkins.model.lazy
      AbstractLazyLoadRunMap.firstKey
      1. jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey(AbstractLazyLoadRunMap.java:310)
      2. jenkins.model.lazy.AbstractLazyLoadRunMap.firstKey(AbstractLazyLoadRunMap.java:102)
      2 frames
    3. Java RT
      Collections$UnmodifiableSortedMap.firstKey
      1. java.util.Collections$UnmodifiableSortedMap.firstKey(Collections.java:1549)
      1 frame
    4. hudson.plugins.view
      StatBuilds.getBuildStat
      1. hudson.plugins.view.dashboard.stats.StatBuilds.getBuildStat(StatBuilds.java:48)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    6. Commons JEXL
      ExpressionImpl.evaluate
      1. org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
      2. org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
      3. org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
      4. org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
      5. org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
      6. org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
      6 frames
    7. Hudson
      ExpressionFactory2$JexlExpression.evaluate
      1. hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
      1 frame
    8. commons-jelly
      CoreTagLibrary$2.run
      1. org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134)
      2. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      3. org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      3 frames
    9. Stapler Jelly
      IncludeTag.doTag
      1. org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
      2. org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:146)
      2 frames
    10. commons-jelly
      TagScript.run
      1. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      1 frame