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

Symptoms

  1. 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)
  2. 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

  1. Restart JIRA.
  2. Verify if the problem is persistant - if so, perform a full reindex of the instance and test again.
Last modified on Jan 24, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.