'java.lang.IllegalArgumentException Group passed to HibernateGroupManager must be of type DefaultHibernateGroup' when Deleting a Group

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Symptoms

Deleting a group fails with an error like the following:

1 2 3 4 5 6 7 8 java.lang.IllegalArgumentException: Group passed to HibernateGroupManager must be of type 'DefaultHibernateGroup' at com.atlassian.user.impl.hibernate.HibernateGroupManager.getMemberNames(HibernateGroupManager.java:180) Stack Trace: java.lang.IllegalArgumentException: Group passed to HibernateGroupManager must be of type 'DefaultHibernateGroup' at com.atlassian.user.impl.hibernate.HibernateGroupManager.getMemberNames(HibernateGroupManager.java:180) at com.atlassian.user.impl.cache.CachingGroupManager.getMemberNames(CachingGroupManager.java:205) at com.atlassian.user.impl.cache.CachingGroupManager.removeGroup(CachingGroupManager.java:146)

Cause

When performing a migration, there are duplicate groups in the LDAP and local hibernate repositories.

Resolution

  1. Rename or delete the duplicate group in LDAP.

  2. Repopulate the Confluence cache (restart or go to Administration >> Cache Statistics >> Flush Cache >> Advanced >> Flush All).

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.