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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

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.

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.

*Fisheye および Crucible は除く

問題

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

診断

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)

原因

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

ソリューション

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
最終更新日: 2016 年 2 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.