Exception when deleting a project after altering project roles.

Martyn Swanick December 14, 2011

I have been trying to setup my default project users/roles and mapping them to LDAP groups and making sure newly created projects have the correct users in the correct roles etc..

Since making these changes (which look correct to me) newly created projects seem to have the right users/roles permissions but they throw an exception when being deleted. These projects seem to only partially delete as they are still visible in the project list but throw different errors when I attempt to view them. Any ideas?

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)
	at com.atlassian.jira.project.CachingProjectManager.removeProject(CachingProjectManager.java:290)
	at com.atlassian.jira.bc.project.DefaultProjectService.deleteProject(DefaultProjectService.java:650)
	at com.atlassian.jira.bc.project.DefaultProjectService.deleteProject(DefaultProjectService.java:577)
	at com.atlassian.jira.web.action.project.DeleteProject.doExecute(DeleteProject.java:64)
	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:76)

1 answer

1 accepted

0 votes
Answer accepted
Martyn Swanick December 14, 2011

Must have been some sort of caching issue as once I restarted the windows service I was able to delete the projects without an exception.

MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 3, 2012

Suggest an answer

Log in or Sign up to answer