java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h3. Summary In a fresh installation of JIRA 6.4.10, pie charts are throwing a 500-internal server error on an NPE. !DashboardNPE.png|thumbnail! h3. Environment * JIRA 6.4.10 h3. 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. h3. Expected Results The pie chart renders correctly. h3. Actual Results Rendering fails and the below error is seen inside the pie chart gadget and the atlassian-jira.log: {noformat} 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) {noformat} h3.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}}.
    via by Daniel Leng [Atlassian],
  • h3. Summary In a fresh installation of JIRA 6.4.10, pie charts are throwing a 500-internal server error on an NPE. !DashboardNPE.png|thumbnail! h3. Environment * JIRA 6.4.10 h3. 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. h3. Expected Results The pie chart renders correctly. h3. Actual Results Rendering fails and the below error is seen inside the pie chart gadget and the atlassian-jira.log: {noformat} 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) {noformat} h3.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}}.
    via by Daniel Leng,
    • 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)
    No Bugmate found.