Details
-
Bug
-
Status: Resolved (View Workflow)
-
Critical
-
Resolution: Fixed
Description
Dear all,
on jenkins 1.597 (and also 1.598) the build stats on Dashboard view (version 2.9.4) doesn't work because of:
Caught exception evaluating: it.getBuildStat(jobs) in /ci/. Reason: java.lang.IllegalArgumentException: fromKey > toKey java.lang.IllegalArgumentException: fromKey > toKey at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1261) at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1699) at java.util.TreeMap.subMap(TreeMap.java:877) at java.util.TreeMap.subMap(TreeMap.java:918) 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:1543) at hudson.plugins.view.dashboard.stats.StatBuilds.getBuildStat(StatBuilds.java:48)
etc.
Please let me know if you need more info.
Regards
Davide
Attachments
Issue Links
- is blocking
-
JENKINS-24380 Use build numbers as IDs
-
- Resolved
-
- is related to
-
JENKINS-27186 Dashboard throws illegal argument Exception
-
- Resolved
-
- links to
SortedMap.headMap is documented to allow the implementation to throw IllegalArgumentException
and passing a negative argument is clearly “outside the bounds of the range” when the range is Jenkins build numbers, whether or not earlier versions of Jenkins happened to enforce that.
However it looks like I wrote this call to headMap so I am on the hook to fix either the caller or the implementor.