JIRA throws "Internal Server Error" when trying to add users/groups to Project Roles

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.

Problem

When trying to add users or groups to Project Roles, you will see the following

Either of the following is seen the the atlassian-jira.log

2015-06-12 20:41:52,485 http-bio-6442-exec-22 ERROR admin 1241x775x1 1csrum 127.0.0.1 /rest/api/2/project/PROA/role/10000 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    ...
Caused by: java.lang.IllegalArgumentException: Type atlassian-group-role-actor is not a registered RoleActor implementation
    at com.atlassian.jira.security.roles.PluginDelegatingRoleActorFactory.createRoleActor(PluginDelegatingRoleActorFactory.java:55)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.createRoleActors(DefaultProjectRoleService.java:984)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.updateActorsToProjectRole(DefaultProjectRoleService.java:907)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.setActorsForProjectRole(DefaultProjectRoleService.java:473)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.setActorsForProjectRole(DefaultProjectRoleService.java:1241)  <+2> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43)
    ... 
2015-06-12 20:43:31,650 http-bio-6442-exec-22 ERROR admin 1243x799x1 1csrum 127.0.0.1 /rest/api/2/project/PROA/role/10000 [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    ...
Caused by: java.lang.IllegalArgumentException: Type atlassian-user-role-actor is not a registered RoleActor implementation
    at com.atlassian.jira.security.roles.PluginDelegatingRoleActorFactory.createRoleActor(PluginDelegatingRoleActorFactory.java:55)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.createRoleActors(DefaultProjectRoleService.java:984)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.updateActorsToProjectRole(DefaultProjectRoleService.java:907)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.setActorsForProjectRole(DefaultProjectRoleService.java:473)
    at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.setActorsForProjectRole(DefaultProjectRoleService.java:1241)  <+2> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43)
    ... 

Diagnosis

Unable to define any users and/or groups when trying to Manage Defaul Members for roles either

 

As you can see from the following screenshot, you can only set for groups. Options for users are missing (in some cases Groups might be missing or maybe even both)

Cause

The User Role Actor or Group Role Actor module of the Project Roles Actor Plugin is disabled

Resolution

Enable the modules by following the steps below.

  1. Navigate to the Manage Add-ons page
  2. Select All add-ons from the drop down beside the search bar
  3. Search for Project Role Actors Plugin and expand it
  4. Click on x of 4 modules enabled to expand all the modules
  5. Enable the respective modules
Last modified on Feb 26, 2016

Was this helpful?

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