Unable to Delete a Project due to java.lang.NullPointerException
Symptoms
While deleting a project, the user gets a NullPointerException error. The following appears in the
atlassian-jira.log
: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)
Trying to view the project results in the following:
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
- Restart JIRA.
- Verify if the problem is persistant - if so, perform a full reindex of the instance and test again.
Last modified on Jan 24, 2025
Powered by Confluence and Scroll Viewport.