com.atlassian.crowd.exception.runtime.OperationFailedException: Error from Crowd server propagated to here via REST API (check the Crowd server logs for det ails): Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group'

Atlassian JIRA | Lauretha Rura [Atlassian] | 2 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

    h5. Summary There is a known compatibility issue that prevents the user management synchronisation between JIRA 6.4 and Confluence 5.7.x and above. This will only affect you if you use JIRA to manage your Confluence users. The bug in JIRA is being tracked on [JRA-42566|https://jira.atlassian.com/browse/JRA-42566]. \\ h5. Environment - Confluence version: 5.7.x, 5.8.x - JIRA version: 6.4 \\ h5. Steps to Reproduce - Case 1 -# Set up Confluence 5.7.x and above with JIRA 6.4 configured as its User Management Server. To perform that, please refer to [Connecting Confluence to JIRA for user management|https://confluence.atlassian.com/display/DOC/Connecting+to+Crowd+or+JIRA+for+User+Management#ConnectingtoCrowdorJIRAforUserManagement-ConnectingConfluencetoJIRAforUserManagement]. -# Perform Synchronisation. - Case 2 -# Install Confluence 5.7.x and above as per the [Confluence Setup Guide|https://confluence.atlassian.com/display/DOC/Confluence+Setup+Guide] documentation. (i) Instead of managing users and groups within Confluence itself, choose _Connect to JIRA_ and setup [JIRA External User Management|https://confluence.atlassian.com/display/DOC/Confluence+Setup+Guide#ConfluenceSetupGuide-8.SetupusermanagementUserMan] (JIRA 6.4 instance) instead. \\ h5. Expected Results Synchronisation should work successfully as per expected. \\ h5. Actual Results Synchronisation fails and the below exception is thrown in the atlassian-confluence.log file: {noformat} 2015-07-22 13:49:12,755 INFO [Long running task: Synchronising JIRA Directory] [atlassian.crowd.directory.DbCachingRemoteDirectory] synchroniseCache failed synchronisation complete for directory [ 131073 ] in [ 946ms ] 2015-07-22 13:49:12,768 ERROR [Long running task: Synchronising JIRA Directory] [confluence.setup.actions.ConnectToJiraSyncDirectoryAction$SyncJiraDirectory LongRunningTask] runInternal Synchronization failed. -- referer: http://localhost:8090/setup/connecttojira-start.action | url: /setup/connecttojirasyncdirectory-start.action | userName: anonymous | action: co nnecttojirasyncdirectory-start com.atlassian.crowd.exception.runtime.OperationFailedException: Error from Crowd server propagated to here via REST API (check the Crowd server logs for det ails): Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group' at com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory(CrowdDirectoryServiceImpl.java:208) at com.atlassian.confluence.setup.actions.ConnectToJiraSyncDirectoryAction$SyncJiraDirectoryLongRunningTask.runInternal(ConnectToJiraSyncDirectoryAc tion.java:213) ... Caused by: com.atlassian.crowd.integration.rest.service.CrowdRestException: Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group' at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:656) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:485) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.searchGroupsWithAttributes(RestCrowdClient.java:572) {noformat} \\ h5. Workaround This is a bug in JIRA 6.4 and is fixed in JIRA 6.4.1. The preferred solution is to upgrade to JIRA 6.4.1.

    Atlassian JIRA | 2 years ago | Lauretha Rura [Atlassian]
    com.atlassian.crowd.exception.runtime.OperationFailedException: Error from Crowd server propagated to here via REST API (check the Crowd server logs for det ails): Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group'
  2. 0

    h5. Summary There is a known compatibility issue that prevents the user management synchronisation between JIRA 6.4 and Confluence 5.7.x and above. This will only affect you if you use JIRA to manage your Confluence users. The bug in JIRA is being tracked on [JRA-42566|https://jira.atlassian.com/browse/JRA-42566]. \\ h5. Environment - Confluence version: 5.7.x, 5.8.x - JIRA version: 6.4 \\ h5. Steps to Reproduce - Case 1 -# Set up Confluence 5.7.x and above with JIRA 6.4 configured as its User Management Server. To perform that, please refer to [Connecting Confluence to JIRA for user management|https://confluence.atlassian.com/display/DOC/Connecting+to+Crowd+or+JIRA+for+User+Management#ConnectingtoCrowdorJIRAforUserManagement-ConnectingConfluencetoJIRAforUserManagement]. -# Perform Synchronisation. - Case 2 -# Install Confluence 5.7.x and above as per the [Confluence Setup Guide|https://confluence.atlassian.com/display/DOC/Confluence+Setup+Guide] documentation. (i) Instead of managing users and groups within Confluence itself, choose _Connect to JIRA_ and setup [JIRA External User Management|https://confluence.atlassian.com/display/DOC/Confluence+Setup+Guide#ConfluenceSetupGuide-8.SetupusermanagementUserMan] (JIRA 6.4 instance) instead. \\ h5. Expected Results Synchronisation should work successfully as per expected. \\ h5. Actual Results Synchronisation fails and the below exception is thrown in the atlassian-confluence.log file: {noformat} 2015-07-22 13:49:12,755 INFO [Long running task: Synchronising JIRA Directory] [atlassian.crowd.directory.DbCachingRemoteDirectory] synchroniseCache failed synchronisation complete for directory [ 131073 ] in [ 946ms ] 2015-07-22 13:49:12,768 ERROR [Long running task: Synchronising JIRA Directory] [confluence.setup.actions.ConnectToJiraSyncDirectoryAction$SyncJiraDirectory LongRunningTask] runInternal Synchronization failed. -- referer: http://localhost:8090/setup/connecttojira-start.action | url: /setup/connecttojirasyncdirectory-start.action | userName: anonymous | action: co nnecttojirasyncdirectory-start com.atlassian.crowd.exception.runtime.OperationFailedException: Error from Crowd server propagated to here via REST API (check the Crowd server logs for det ails): Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group' at com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory(CrowdDirectoryServiceImpl.java:208) at com.atlassian.confluence.setup.actions.ConnectToJiraSyncDirectoryAction$SyncJiraDirectoryLongRunningTask.runInternal(ConnectToJiraSyncDirectoryAc tion.java:213) ... Caused by: com.atlassian.crowd.integration.rest.service.CrowdRestException: Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group' at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:656) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:485) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.searchGroupsWithAttributes(RestCrowdClient.java:572) {noformat} \\ h5. Workaround This is a bug in JIRA 6.4 and is fixed in JIRA 6.4.1. The preferred solution is to upgrade to JIRA 6.4.1.

    Atlassian JIRA | 2 years ago | Lauretha Rura [Atlassian]
    com.atlassian.crowd.exception.runtime.OperationFailedException: Error from Crowd server propagated to here via REST API (check the Crowd server logs for det ails): Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group'

    Root Cause Analysis

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

      Error from Crowd server propagated to here via REST API (check the Crowd server logs for det ails): Class type for return values ('interface com.atlassian.crowd.model.group.GroupWithAttributes') is not 'String' or 'Group'

      at com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory()
    2. com.atlassian.crowd
      CrowdDirectoryServiceImpl.synchroniseDirectory
      1. com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl.synchroniseDirectory(CrowdDirectoryServiceImpl.java:208)
      1 frame