Details
-
Bug
-
Resolution: Obsolete
-
Low
-
6.4.10, 6.4.11, 6.4.12
-
6.04
-
Description
Summary
In a fresh installation of JIRA 6.4.10, pie charts are throwing a 500-internal server error on an NPE.
Environment
- JIRA 6.4.10
Steps to Reproduce
- Create some issues, and save a filter that returns all issues (basically by leaving jql field blank in advanced view).
- Create a new dashboard and add a Pie Chart gadget, with the filter set to the filter on Step 1.
Expected Results
The pie chart renders correctly.
Actual Results
Rendering fails and the below error is seen inside the pie chart gadget and the atlassian-jira.log:
2015-08-20 22:59:06,065 http-bio-8070-exec-25 ERROR admin 1379x1061x1 noi09t 0:0:0:0:0:0:0:1 /rest/gadget/1.0/statistics [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null java.lang.NullPointerException at com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.getNumberClauses(StatisticsServiceImpl.java:223) at com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.isFilterOnlyClause(StatisticsServiceImpl.java:246) at com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.getStatisticsResult(StatisticsServiceImpl.java:180) at com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.aggregateOneDimensionalStats(StatisticsServiceImpl.java:107) at com.atlassian.jira.dashboarditem.statistics.rest.StatisticsResource.oneDimensionalSearchWithJql(StatisticsResource.java:138) at com.atlassian.jira.dashboarditem.statistics.rest.StatisticsResource.oneDimensionalSearchForFilter(StatisticsResource.java:126) at com.atlassian.jira.dashboarditem.statistics.rest.StatisticsResource.oneDimensionalSearch(StatisticsResource.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:132) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:230) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
Workaround
No workaround at the moment. I tried to change the pie chart filter etc nothing works.
On an empty filter, it correctly renders No Data Available.
Attachments
Issue Links
- was cloned as
-
JRASERVER-59744 Pie chart gadget does not display any content with Saved Filters
- Closed