The Active Jobs Application (XWiki.ActiveJobs) is broken.
Singular currentJob became a Set currentJobs when XWiki 12.5 added GroupedJobInitializer, which lets a job group run a pool of threads instead of one job at a time.
Changing lines 26-29 to the following fixed it for me:
def currentJobs = new ArrayList(pathJobOrExecutor.currentJobs);
for (def currentJob : currentJobs) {
displayJob(currentJob, "***");
}
On another note: The closing tag for the tree is wrong as well. You have {{tree}} at both the top and the bottom; from my POV the latter should read: {{/tree}}.
Since I can’t find the corresponding repo or issue tracker I just drop it here. Can someone check and possibly fix the original code?