java.lang.NullPointerException

Atlassian JIRA | Aleksander Mierzwicki | 1 year ago
  1. 0

    There is NPE thrown for some projects: {noformat} /projects/JDEV [c.a.j.projects.util.WebPanelRenderer] Cannot render WebPanel with key 'com.atlassian.jira.jira-projects-plugin:summary-page-priority-summary' java.lang.NullPointerException at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo(PriorityCount.java:52) at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo(PriorityCount.java:5) at java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:52) at java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:47) at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351) at java.util.TimSort.sort(TimSort.java:216) at java.util.Arrays.sort(Arrays.java:1512) at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348) at java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCountService.getPriorityCounts(PriorityCountService.java:35) at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.web.priority.PrioritySummaryContextProvider.getContextMap(PrioritySummaryContextProvider.java:59) at com.atlassian.jira.projects.page.AbstractProjectsPageContextProvider.getContextMap(AbstractProjectsPageContextProvider.java:19) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml(DefaultWebPanelModuleDescriptor.java:149) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:44) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:68) at com.atlassian.jira.projects.page.summary.ProjectActivitySummaryContextProvider.getContextMap(ProjectActivitySummaryContextProvider.java:61) at com.atlassian.jira.projects.page.AbstractProjectsPageContextProvider.getContextMap(AbstractProjectsPageContextProvider.java:19) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml(DefaultWebPanelModuleDescriptor.java:149) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:44) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:68) at com.atlassian.jira.projects.page.ProjectWebPanelRenderer.renderWebPanels(ProjectWebPanelRenderer.java:70) at com.atlassian.jira.projects.page.ProjectWebPanelRenderer.render(ProjectWebPanelRenderer.java:45) at com.atlassian.jira.projects.page.ProjectPageRenderer.render(ProjectPageRenderer.java:88) at com.atlassian.jira.projects.page.ProjectPageRenderer.renderWithoutSidebar(ProjectPageRenderer.java:74) at com.atlassian.jira.projects.page.ProjectPageServlet.getRenderResult(ProjectPageServlet.java:149) at com.atlassian.jira.projects.page.ProjectPageServlet.renderItem(ProjectPageServlet.java:134) at com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) ... 45 filtered at com.atlassian.jira.software.internal.filters.ReleasesPageAccessControlFilter.doFilter(ReleasesPageAccessControlFilter.java:73) ... 41 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 25 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:107) ... 50 filtered at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:89) ... 3 filtered at com.atlassian.jira.projects.servlet.ReKeyedProjectFilter.doFilter(ReKeyedProjectFilter.java:54) ... 4 filtered at com.atlassian.servicedesk.project.internal.web.filters.UnlicensedPageFilter.doFilter(UnlicensedPageFilter.java:34) ... 4 filtered at com.atlassian.servicedesk.project.internal.web.filters.RedirectForSdProjects.doFilter(RedirectForSdProjects.java:53) ... 4 filtered at com.atlassian.servicedesk.project.internal.web.filters.NormaliseUrlFilter.doFilter(NormaliseUrlFilter.java:25) ... 16 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 39 filtered at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:122) ... 3 filtered at com.atlassian.plugin.connect.plugin.auth.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:82) ... 3 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$522(CustomerContextSettingFilter.java:169) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$467/18239620.call(Unknown Source) at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:25) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala) at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:24) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:164) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:120) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:112) ... 3 filtered at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) ... 54 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) {noformat} Example affected URL: /projects/JDEV/summary !image-2015-12-04-15-34-04-374.png|thumbnail! h2. Workaround The data is rendering correctly on the statistics page (e.g. /projects/JDEV/summary/statistics) - this page is available by clicking the 'View all issue statistics' under missing panel.

    Atlassian JIRA | 1 year ago | Aleksander Mierzwicki [Atlassian]
    java.lang.NullPointerException
  2. 0

    There is NPE thrown for some projects: {noformat} /projects/JDEV [c.a.j.projects.util.WebPanelRenderer] Cannot render WebPanel with key 'com.atlassian.jira.jira-projects-plugin:summary-page-priority-summary' java.lang.NullPointerException at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo(PriorityCount.java:52) at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo(PriorityCount.java:5) at java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:52) at java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:47) at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351) at java.util.TimSort.sort(TimSort.java:216) at java.util.Arrays.sort(Arrays.java:1512) at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348) at java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCountService.getPriorityCounts(PriorityCountService.java:35) at com.atlassian.jira.projects.page.summary.issue.summary.vignettes.web.priority.PrioritySummaryContextProvider.getContextMap(PrioritySummaryContextProvider.java:59) at com.atlassian.jira.projects.page.AbstractProjectsPageContextProvider.getContextMap(AbstractProjectsPageContextProvider.java:19) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml(DefaultWebPanelModuleDescriptor.java:149) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:44) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:68) at com.atlassian.jira.projects.page.summary.ProjectActivitySummaryContextProvider.getContextMap(ProjectActivitySummaryContextProvider.java:61) at com.atlassian.jira.projects.page.AbstractProjectsPageContextProvider.getContextMap(AbstractProjectsPageContextProvider.java:19) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml(DefaultWebPanelModuleDescriptor.java:149) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:44) at com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:68) at com.atlassian.jira.projects.page.ProjectWebPanelRenderer.renderWebPanels(ProjectWebPanelRenderer.java:70) at com.atlassian.jira.projects.page.ProjectWebPanelRenderer.render(ProjectWebPanelRenderer.java:45) at com.atlassian.jira.projects.page.ProjectPageRenderer.render(ProjectPageRenderer.java:88) at com.atlassian.jira.projects.page.ProjectPageRenderer.renderWithoutSidebar(ProjectPageRenderer.java:74) at com.atlassian.jira.projects.page.ProjectPageServlet.getRenderResult(ProjectPageServlet.java:149) at com.atlassian.jira.projects.page.ProjectPageServlet.renderItem(ProjectPageServlet.java:134) at com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) ... 45 filtered at com.atlassian.jira.software.internal.filters.ReleasesPageAccessControlFilter.doFilter(ReleasesPageAccessControlFilter.java:73) ... 41 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 25 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:107) ... 50 filtered at com.atlassian.plugin.connect.plugin.auth.scope.ApiScopingFilter.doFilter(ApiScopingFilter.java:89) ... 3 filtered at com.atlassian.jira.projects.servlet.ReKeyedProjectFilter.doFilter(ReKeyedProjectFilter.java:54) ... 4 filtered at com.atlassian.servicedesk.project.internal.web.filters.UnlicensedPageFilter.doFilter(UnlicensedPageFilter.java:34) ... 4 filtered at com.atlassian.servicedesk.project.internal.web.filters.RedirectForSdProjects.doFilter(RedirectForSdProjects.java:53) ... 4 filtered at com.atlassian.servicedesk.project.internal.web.filters.NormaliseUrlFilter.doFilter(NormaliseUrlFilter.java:25) ... 16 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 39 filtered at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:122) ... 3 filtered at com.atlassian.plugin.connect.plugin.auth.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:82) ... 3 filtered at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.lambda$invokeFilterChain$522(CustomerContextSettingFilter.java:169) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter$$Lambda$467/18239620.call(Unknown Source) at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.apply(ScalaJavaInterOp.java:25) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$.outOfCustomerContext(CustomerContextUtil.scala:48) at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil.outOfCustomerContext(CustomerContextUtil.scala) at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.outOfCustomerContext(CustomerContextServiceImpl.java:24) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.outOfCustomerContext(CustomerContextSettingFilter.java:164) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilterImpl(CustomerContextSettingFilter.java:120) at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.doFilter(CustomerContextSettingFilter.java:112) ... 3 filtered at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) ... 54 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) {noformat} Example affected URL: /projects/JDEV/summary !image-2015-12-04-15-34-04-374.png|thumbnail! h2. Workaround The data is rendering correctly on the statistics page (e.g. /projects/JDEV/summary/statistics) - this page is available by clicking the 'View all issue statistics' under missing panel.

    Atlassian JIRA | 1 year ago | Aleksander Mierzwicki
    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.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo()
    2. com.atlassian.jira
      PriorityCount.compareTo
      1. com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo(PriorityCount.java:52)
      2. com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCount.compareTo(PriorityCount.java:5)
      2 frames
    3. Java RT
      ReferencePipeline.collect
      1. java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:52)
      2. java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:47)
      3. java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)
      4. java.util.TimSort.sort(TimSort.java:216)
      5. java.util.Arrays.sort(Arrays.java:1512)
      6. java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
      7. java.util.stream.Sink$ChainedReference.end(Sink.java:258)
      8. java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
      9. java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
      10. java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      11. java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      12. java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      12 frames
    4. com.atlassian.jira
      AbstractProjectsPageContextProvider.getContextMap
      1. com.atlassian.jira.projects.page.summary.issue.summary.vignettes.service.priority.PriorityCountService.getPriorityCounts(PriorityCountService.java:35)
      2. com.atlassian.jira.projects.page.summary.issue.summary.vignettes.web.priority.PrioritySummaryContextProvider.getContextMap(PrioritySummaryContextProvider.java:59)
      3. com.atlassian.jira.projects.page.AbstractProjectsPageContextProvider.getContextMap(AbstractProjectsPageContextProvider.java:19)
      3 frames
    5. com.atlassian.plugin
      DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml
      1. com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml(DefaultWebPanelModuleDescriptor.java:149)
      1 frame
    6. com.atlassian.jira
      AbstractProjectsPageContextProvider.getContextMap
      1. com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:44)
      2. com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:68)
      3. com.atlassian.jira.projects.page.summary.ProjectActivitySummaryContextProvider.getContextMap(ProjectActivitySummaryContextProvider.java:61)
      4. com.atlassian.jira.projects.page.AbstractProjectsPageContextProvider.getContextMap(AbstractProjectsPageContextProvider.java:19)
      4 frames
    7. com.atlassian.plugin
      DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml
      1. com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.writeHtml(DefaultWebPanelModuleDescriptor.java:149)
      1 frame
    8. com.atlassian.jira
      ProjectPageServlet.doGet
      1. com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:44)
      2. com.atlassian.jira.projects.util.WebPanelRenderer.renderWebPanels(WebPanelRenderer.java:68)
      3. com.atlassian.jira.projects.page.ProjectWebPanelRenderer.renderWebPanels(ProjectWebPanelRenderer.java:70)
      4. com.atlassian.jira.projects.page.ProjectWebPanelRenderer.render(ProjectWebPanelRenderer.java:45)
      5. com.atlassian.jira.projects.page.ProjectPageRenderer.render(ProjectPageRenderer.java:88)
      6. com.atlassian.jira.projects.page.ProjectPageRenderer.renderWithoutSidebar(ProjectPageRenderer.java:74)
      7. com.atlassian.jira.projects.page.ProjectPageServlet.getRenderResult(ProjectPageServlet.java:149)
      8. com.atlassian.jira.projects.page.ProjectPageServlet.renderItem(ProjectPageServlet.java:134)
      9. com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:104)
      9 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      2 frames
    10. com.atlassian.plugin
      DelegatingPluginServlet.service
      1. com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37)
      1 frame
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      1 frame
    12. com.atlassian.plugin
      ServletModuleContainerServlet.service
      1. com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45)
      1 frame
    13. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      1 frame