Unable to Delete a Project due to java.lang.NullPointerException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

  1. While deleting a project, the user gets a NullPointerException error. The following appears in the atlassian-jira.log:

    1 2 3 4 5 6 2012-02-09 20:55:29,616 TP-Processor2 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.security.roles.CachingProjectRoleAndActorStore$ProjectRoleActorsCache.removeByProject(CachingProjectRoleAndActorStore.java:213) at com.atlassian.jira.security.roles.CachingProjectRoleAndActorStore.removeAllRoleActorsByProject(CachingProjectRoleAndActorStore.java:137) at com.atlassian.jira.security.roles.DefaultProjectRoleManager.removeAllRoleActorsByProject(DefaultProjectRoleManager.java:200) at com.atlassian.jira.project.DefaultProjectManager.removeProject(DefaultProjectManager.java:238)
  2. Trying to view the project results in the following:

    1 2 3 4 5 2012-01-23 10:27:35,704 http-9443-6 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.projectconfig.contextproviders.ScreensSummaryPanelContextProvider$SimpleIssueTypeScreenScheme.<init>(ScreensSummaryPanelContextProvider.java:217) at com.atlassian.jira.projectconfig.contextproviders.ScreensSummaryPanelContextProvider.getContextMap(ScreensSummaryPanelContextProvider.java:59) at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:70)

Trying to view any project's Screens Tab may result in the same behaviour described in Can't View Screens in Administration Project Section.

Cause

The cached index files are not valid. This is tracked under JRASERVER-28069 - Cannot delete a project, stacktrace on error screen.

Resolution

  1. Restart JIRA.

  2. Verify if the problem is persistant - if so, perform a full reindex of the instance and test again.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.