JIRA throws "Internal Server Error" when trying to add users/groups to Project Roles
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
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
Summary
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
Solution
Resolution
Enable the modules by following the steps below.
Navigate to the Manage Add-ons page
Select All add-ons from the drop down beside the search bar
Search for Project Role Actors Plugin and expand it
Click on x of 4 modules enabled to expand all the modules
Enable the respective modules
Was this helpful?