Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-44888

Pie chart throws 500 NullPointerException error on fresh install of 6.4.10

    XMLWordPrintable

Details

    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

      1. Create some issues, and save a filter that returns all issues (basically by leaving jql field blank in advanced view).
      2. 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

        1. DashboardNPE.png
          DashboardNPE.png
          167 kB
        2. pie_chart.JPG
          pie_chart.JPG
          85 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dleng Daniel Leng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: