com.atlassian.crowd.exception.runtime.OperationFailedException: Group already exists

Atlassian JIRA | James Wong | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Attempting to add a user to a group before the groups have been sync'ed from the remote directory results in the following stack trace: {noformat} com.atlassian.crowd.exception.runtime.OperationFailedException: Group already exists at com.atlassian.crowd.embedded.core.CrowdAdminServiceImpl.addUserToGroup(CrowdAdminServiceImpl.java:396) at com.atlassian.jira.user.util.UserUtilImpl.doAddUserToGroup(UserUtilImpl.java:501) at com.atlassian.jira.user.util.UserUtilImpl.addUserToGroup(UserUtilImpl.java:479) at com.atlassian.jira.user.util.UserUtilImpl.addUserToGroups(UserUtilImpl.java:516) at com.atlassian.jira.bc.group.DefaultGroupService.addUsersToGroups(DefaultGroupService.java:331) at com.atlassian.jira.web.action.admin.user.EditUserGroups.doExecute(EditUserGroups.java:85) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:168) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) {noformat} Steps to reproduce: * Create a read/write LDAP Directory in Jira. * Browse for a user that exists in LDAP (using the User Browser). * Select "Groups" link to edit groups * Select the "jira-users" from the list and click "Join" Expected: * User successfully added to "jira-users"

    Atlassian JIRA | 6 years ago | James Wong
    com.atlassian.crowd.exception.runtime.OperationFailedException: Group already exists
  2. 0

    Attempting to add a user to a group before the groups have been sync'ed from the remote directory results in the following stack trace: {noformat} com.atlassian.crowd.exception.runtime.OperationFailedException: Group already exists at com.atlassian.crowd.embedded.core.CrowdAdminServiceImpl.addUserToGroup(CrowdAdminServiceImpl.java:396) at com.atlassian.jira.user.util.UserUtilImpl.doAddUserToGroup(UserUtilImpl.java:501) at com.atlassian.jira.user.util.UserUtilImpl.addUserToGroup(UserUtilImpl.java:479) at com.atlassian.jira.user.util.UserUtilImpl.addUserToGroups(UserUtilImpl.java:516) at com.atlassian.jira.bc.group.DefaultGroupService.addUsersToGroups(DefaultGroupService.java:331) at com.atlassian.jira.web.action.admin.user.EditUserGroups.doExecute(EditUserGroups.java:85) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:168) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) {noformat} Steps to reproduce: * Create a read/write LDAP Directory in Jira. * Browse for a user that exists in LDAP (using the User Browser). * Select "Groups" link to edit groups * Select the "jira-users" from the list and click "Join" Expected: * User successfully added to "jira-users"

    Atlassian JIRA | 6 years ago | James Wong
    com.atlassian.crowd.exception.runtime.OperationFailedException: Group already exists

    Root Cause Analysis

    1. com.atlassian.crowd.exception.runtime.OperationFailedException

      Group already exists

      at com.atlassian.crowd.embedded.core.CrowdAdminServiceImpl.addUserToGroup()
    2. com.atlassian.crowd
      CrowdAdminServiceImpl.addUserToGroup
      1. com.atlassian.crowd.embedded.core.CrowdAdminServiceImpl.addUserToGroup(CrowdAdminServiceImpl.java:396)
      1 frame
    3. com.atlassian.jira
      EditUserGroups.doExecute
      1. com.atlassian.jira.user.util.UserUtilImpl.doAddUserToGroup(UserUtilImpl.java:501)
      2. com.atlassian.jira.user.util.UserUtilImpl.addUserToGroup(UserUtilImpl.java:479)
      3. com.atlassian.jira.user.util.UserUtilImpl.addUserToGroups(UserUtilImpl.java:516)
      4. com.atlassian.jira.bc.group.DefaultGroupService.addUsersToGroups(DefaultGroupService.java:331)
      5. com.atlassian.jira.web.action.admin.user.EditUserGroups.doExecute(EditUserGroups.java:85)
      5 frames
    4. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:165)
      1 frame
    5. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58)
      1 frame
    6. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139)
      1 frame
    7. com.atlassian.jira
      JiraWebworkActionDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:168)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.internalDoFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      1 frame