Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18880

Build statistics does not display result with regex .* filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: dashboard-view-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.509.2, RHEL 5, Java 1.7.0_09
    • Similar Issues:

      Description

      Build statistics does not display result with regex .* filter.
      Exception is thrown:

      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
      

      If instead on using regex filter to choose jobs I select job with checkbox, it works, build statistics displays somes results.

        Attachments

          Activity

          Hide
          sogabe sogabe added a comment -

          fixed in 2.9

          Show
          sogabe sogabe added a comment - fixed in 2.9
          Hide
          flabrie Francis Labrie added a comment - - edited

          This problem has been fixed in the past, but since a month or two, Build statistics are still empty in the Jenkins 1.599 Dashboard Portlet when using a regular expression filter like .*. It only work if I select jobs individually.

          Show
          flabrie Francis Labrie added a comment - - edited This problem has been fixed in the past, but since a month or two, Build statistics are still empty in the Jenkins 1.599 Dashboard Portlet when using a regular expression filter like .* . It only work if I select jobs individually.
          Hide
          danielbeck Daniel Beck added a comment -

          Francis Labrie: Are you maybe seeing JENKINS-26690?

          Show
          danielbeck Daniel Beck added a comment - Francis Labrie : Are you maybe seeing JENKINS-26690 ?
          Hide
          flabrie Francis Labrie added a comment -

          Yes, it's the same thing as described in JENKINS-26690.

          févr. 26, 2015 10:51:25 AM AVERTISSEMENT hudson.ExpressionFactory2$JexlExpression evaluate
          Caught exception evaluating: it.getBuildStat(jobs) in /. Reason: java.lang.IllegalArgumentException: fromKey > toKey
          java.lang.IllegalArgumentException: fromKey > toKey
          	at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1364)
          	at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1851)
          	at java.util.TreeMap.subMap(TreeMap.java:909)
          	at java.util.TreeMap.subMap(TreeMap.java:950)
          	at jenkins.model.lazy.AbstractLazyLoadRunMap.subMap(AbstractLazyLoadRunMap.java:250)
          	at jenkins.model.lazy.AbstractLazyLoadRunMap.headMap(AbstractLazyLoadRunMap.java:254)
          	at jenkins.model.lazy.AbstractLazyLoadRunMap.headMap(AbstractLazyLoadRunMap.java:88)
          	at java.util.Collections$UnmodifiableSortedMap.headMap(Collections.java:1863)
          	at hudson.plugins.view.dashboard.stats.StatBuilds.getBuildStat(StatBuilds.java:48)
          ...
          
          Show
          flabrie Francis Labrie added a comment - Yes, it's the same thing as described in JENKINS-26690 . févr. 26, 2015 10:51:25 AM AVERTISSEMENT hudson.ExpressionFactory2$JexlExpression evaluate Caught exception evaluating: it.getBuildStat(jobs) in /. Reason: java.lang.IllegalArgumentException: fromKey > toKey java.lang.IllegalArgumentException: fromKey > toKey at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1364) at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1851) at java.util.TreeMap.subMap(TreeMap.java:909) at java.util.TreeMap.subMap(TreeMap.java:950) at jenkins.model.lazy.AbstractLazyLoadRunMap.subMap(AbstractLazyLoadRunMap.java:250) at jenkins.model.lazy.AbstractLazyLoadRunMap.headMap(AbstractLazyLoadRunMap.java:254) at jenkins.model.lazy.AbstractLazyLoadRunMap.headMap(AbstractLazyLoadRunMap.java:88) at java.util.Collections$UnmodifiableSortedMap.headMap(Collections.java:1863) at hudson.plugins.view.dashboard.stats.StatBuilds.getBuildStat(StatBuilds.java:48) ...
          Hide
          tgr Tobias Gruetzmacher added a comment -

          Closing, since the reason for reopening was a different issue

          Show
          tgr Tobias Gruetzmacher added a comment - Closing, since the reason for reopening was a different issue

            People

            • Assignee:
              tgr Tobias Gruetzmacher
              Reporter:
              vdupain vdupain
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: