ClassCastException when using the "Show Empty Rows" option

Issue #825 resolved
Nicolas Zastavni created an issue

When trying to use the "Show Empty Rows" option to show all jiras in epics related to a given filter (not only the one for which there are encoded hours), the page redirect to a 500 response.

In the log, the following error is present:

2016-04-12 15:01:27,760 http-nio-8095-exec-22 ERROR      [o.a.c.c.C.[.[localhost].[/jira].[action]] Servlet.service() for servlet [action] in context with path [/jira] threw exception [java.lang.ClassCastException: com.atlassian.jira.user.DelegatingApplicationUser cannot be cast to java.lang.Comparable] with root cause
java.lang.ClassCastException: com.atlassian.jira.user.DelegatingApplicationUser cannot be cast to java.lang.Comparable
    at java.util.TreeMap.compare(TreeMap.java:1290)
    at java.util.TreeMap.put(TreeMap.java:538)
    at java.util.TreeSet.add(TreeSet.java:255)
    at jira.plugin.report.timesheet.TimesheetService.addRoleUser(TimesheetService.java:607)
    at jira.plugin.report.timesheet.TimesheetService.projectUsers(TimesheetService.java:585)
    at jira.plugin.report.timesheet.TimesheetService.addEmptyUsers(TimesheetService.java:518)
    at jira.plugin.report.timesheet.TimesheetService.postProcess(TimesheetService.java:359)
    at jira.plugin.report.timesheet.TimesheetService.postProcess(TimesheetService.java:64)
    at jira.plugin.report.timesheet.TimeBaseService.getTimeSpents(TimeBaseService.java:355)
    at com.fdu.jira.plugin.report.timesheet.TimeSheet.generateReport(TimeSheet.java:88)
    at com.fdu.jira.plugin.report.AbstractTimebaseReport.generateReportHtml(AbstractTimebaseReport.java:103)
    at com.atlassian.jira.web.action.browser.ConfigureReport.doExecute(ConfigureReport.java:132)
    ... 1 filtered
    at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
    ... 7 filtered
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    ... 50 filtered
    at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59)
    ... 151 filtered
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)

Comments (4)

  1. Log in to comment