java.lang.NullPointerException

Atlassian JIRA | Daniel Leng | 1 year ago
  1. 0

    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}}.

    Atlassian JIRA | 1 year ago | Daniel Leng [Atlassian]
    java.lang.NullPointerException
  2. 0

    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}}.

    Atlassian JIRA | 1 year ago | Daniel Leng
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.getNumberClauses()
    2. com.atlassian.jira
      StatisticsResource.oneDimensionalSearch
      1. com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.getNumberClauses(StatisticsServiceImpl.java:223)
      2. com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.isFilterOnlyClause(StatisticsServiceImpl.java:246)
      3. com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.getStatisticsResult(StatisticsServiceImpl.java:180)
      4. com.atlassian.jira.dashboarditem.statistics.service.StatisticsServiceImpl.aggregateOneDimensionalStats(StatisticsServiceImpl.java:107)
      5. com.atlassian.jira.dashboarditem.statistics.rest.StatisticsResource.oneDimensionalSearchWithJql(StatisticsResource.java:138)
      6. com.atlassian.jira.dashboarditem.statistics.rest.StatisticsResource.oneDimensionalSearchForFilter(StatisticsResource.java:126)
      7. com.atlassian.jira.dashboarditem.statistics.rest.StatisticsResource.oneDimensionalSearch(StatisticsResource.java:87)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. com.atlassian.plugins
      DispatchProviderHelper$ResponseOutInvoker._dispatch
      1. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:234)
      2. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:100)
      3. com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61)
      4. com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38)
      5. com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61)
      6. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:132)
      7. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:230)
      7 frames
    5. Jersey
      ResourceJavaMethodDispatcher.dispatch
      1. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      1 frame