com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <jira-administrators>, directoryId <557057>]

Atlassian JIRA | Peter White [Atlassian] | 7 years ago
  1. 0

    After creating a directory, importing users from a provider does not include group memberships on the first attempt. If the import is attempted again, group memberships are added. Import from JIRA: {quote}2009-10-20 14:41:12,646 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 10 groups. 2009-10-20 14:41:13,215 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2653 users. 2009-10-20 14:41:23,399 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2766 group memberships. 2009-10-20 14:41:23,407 http-8095-3 ERROR [crowd.importer.importers.BaseImporter] Could not add memberships for group 'jira-administrators' as it does not exist in directory with ID: 557057 com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <jira-administrators>, directoryId <557057>] at com.atlassian.crowd.model.group.GroupDAOHibernate.findByName(GroupDAOHibernate.java:52) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:561) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:379) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addAllUsersToGroup(DirectoryManagerGeneric.java:1185) .... repeat for all 10 groups Now try the import again to the same directory - 2009-10-20 14:45:37,454 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 10 groups. 2009-10-20 14:45:37,457 http-8095-3 INFO [crowd.manager.directory.DirectoryManagerGeneric] Group <com.atlassian.crowd.integration.model.group.GroupTemplate@7bceb29e[name=Accounting,directoryId=557057,active=true,type=GROUP,description=Accounting]> already exists in directory. Skipping over this entity. .... repeat for all 10 groups 2009-10-20 14:45:37,698 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2653 users. 2009-10-20 14:46:11,037 http-8095-3 INFO [crowd.manager.directory.DirectoryManagerGeneric] User <com.atlassian.crowd.integration.model.user.UserTemplateWithCredentialAndAttributes@32f12531[name=john citizen,directoryId=557057,active=true,emailAddress=user@domain.com,firstName=John,lastName=Citizen,displayName=John Citizen,iconLocation=<null>]> already exists in directory. Skipping over this entity. .... repeat for all 2653 users 2009-10-20 14:46:11,050 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2766 group memberships. {quote}

    Atlassian JIRA | 7 years ago | Peter White [Atlassian]
    com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <jira-administrators>, directoryId <557057>]
  2. 0

    After creating a directory, importing users from a provider does not include group memberships on the first attempt. If the import is attempted again, group memberships are added. Import from JIRA: {quote}2009-10-20 14:41:12,646 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 10 groups. 2009-10-20 14:41:13,215 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2653 users. 2009-10-20 14:41:23,399 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2766 group memberships. 2009-10-20 14:41:23,407 http-8095-3 ERROR [crowd.importer.importers.BaseImporter] Could not add memberships for group 'jira-administrators' as it does not exist in directory with ID: 557057 com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <jira-administrators>, directoryId <557057>] at com.atlassian.crowd.model.group.GroupDAOHibernate.findByName(GroupDAOHibernate.java:52) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:561) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:379) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addAllUsersToGroup(DirectoryManagerGeneric.java:1185) .... repeat for all 10 groups Now try the import again to the same directory - 2009-10-20 14:45:37,454 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 10 groups. 2009-10-20 14:45:37,457 http-8095-3 INFO [crowd.manager.directory.DirectoryManagerGeneric] Group <com.atlassian.crowd.integration.model.group.GroupTemplate@7bceb29e[name=Accounting,directoryId=557057,active=true,type=GROUP,description=Accounting]> already exists in directory. Skipping over this entity. .... repeat for all 10 groups 2009-10-20 14:45:37,698 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2653 users. 2009-10-20 14:46:11,037 http-8095-3 INFO [crowd.manager.directory.DirectoryManagerGeneric] User <com.atlassian.crowd.integration.model.user.UserTemplateWithCredentialAndAttributes@32f12531[name=john citizen,directoryId=557057,active=true,emailAddress=user@domain.com,firstName=John,lastName=Citizen,displayName=John Citizen,iconLocation=<null>]> already exists in directory. Skipping over this entity. .... repeat for all 2653 users 2009-10-20 14:46:11,050 http-8095-3 INFO [crowd.importer.importers.BaseImporter] Importing 2766 group memberships. {quote}

    Atlassian JIRA | 7 years ago | Peter White [Atlassian]
    com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <jira-administrators>, directoryId <557057>]
  3. 0

    How to reproduce (Internal Directory): 1. Create a user named *user&user* 2. Create a group named *mygroup&group* 3. Add the user to the group Results: 1. Crowd will say that the operation was successful, but will not show the user as a member of the group in the UI. 2. Opening the User/Group profile and then accessing the Groups/Members tab, the membership is not displayed. 3. Looking at the database, the user *is* a member of the group. Some Crowd admins reported that the problem is also happening if the user don't have '&' in the name. The group having it would be enough to see the problem. The logs report: {noformat} 2010-04-20 16:05:19,656 http-8095-5 ERROR [console.action.principal.UpdateGroups] Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <mygroup>, directoryId <32769>] com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <mygroup>, directoryId <32769>] at com.atlassian.crowd.model.group.GroupDAOHibernate.findByName(GroupDAOHibernate.java:52) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:561) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:379) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:563) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.addUserToGroup(Unknown Source) at com.atlassian.crowd.console.action.principal.UpdateGroups.doAddGroups(UpdateGroups.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) {noformat} So, it seems that the search queries are ignoring the everything after the special char (including it).

    Atlassian JIRA | 7 years ago | Renan Battaglin
    com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <mygroup>, directoryId <32769>]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to reproduce (Internal Directory): 1. Create a user named *user&user* 2. Create a group named *mygroup&group* 3. Add the user to the group Results: 1. Crowd will say that the operation was successful, but will not show the user as a member of the group in the UI. 2. Opening the User/Group profile and then accessing the Groups/Members tab, the membership is not displayed. 3. Looking at the database, the user *is* a member of the group. Some Crowd admins reported that the problem is also happening if the user don't have '&' in the name. The group having it would be enough to see the problem. The logs report: {noformat} 2010-04-20 16:05:19,656 http-8095-5 ERROR [console.action.principal.UpdateGroups] Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <mygroup>, directoryId <32769>] com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <mygroup>, directoryId <32769>] at com.atlassian.crowd.model.group.GroupDAOHibernate.findByName(GroupDAOHibernate.java:52) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:561) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:379) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:563) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy10.addUserToGroup(Unknown Source) at com.atlassian.crowd.console.action.principal.UpdateGroups.doAddGroups(UpdateGroups.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) {noformat} So, it seems that the search queries are ignoring the everything after the special char (including it).

    Atlassian JIRA | 7 years ago | Renan Battaglin
    com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <mygroup>, directoryId <32769>]
  6. 0

    The *Import Users* feature does not perform a complete import when using MySQL. Versions used during test: MySQL 5.0.37 MySQL 5.0.67 mysql-connector-java-3.1.14 mysql-connector-java-5.0.8 mysql-connector-java-5.1.6 Problem reproduced when using the *Atlassian Importer* (with Confluence) and the *CSV Importer*. The following errors are displayed: {noformat} 2009-04-29 15:52:49,212 http-8095-Processor23 ERROR [crowd.importer.importers.BaseImporter] Could not add memberships for group 'confluence-users' as it does not exist in directory with ID: 360450 com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find com.atlassian.crowd.integration.model.RemoteGroup DirectoryID: 360450 and name: confluence-users at com.atlassian.crowd.model.group.GroupDAOHibernate.findByName(GroupDAOHibernate.java:85) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:374) at com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:357) at com.atlassian.crowd.manager.directory.bulk.BulkAddGroupMembershipsOperation.performFindContainerByName(BulkAddGroupMembershipsOperation.java:27) at com.atlassian.crowd.manager.directory.bulk.BulkAddGroupMembershipsOperation.performFindContainerByName(BulkAddGroupMembershipsOperation.java:13) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addAllPrincipalsToContainer(DirectoryManagerGeneric.java:298) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addAllPrincipalsToGroup(DirectoryManagerGeneric.java:344) 2009-04-03 14:25:33,751 http-8095-Processor18 ERROR [persistence.hibernate.batch.BatchProcessorImpl] Could not process class com.atlassian.crowd.integration.model.RemotePrincipal: xxxxx@gmail.com org.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.crowd.integration.model.RemotePrincipal.credentials.credential at org.hibernate.engine.Nullability.checkNullability(Nullability.java:84) at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290) at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507) at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499) at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495) at com.atlassian.crowd.util.persistence.hibernate.batch.operation.SaveOrUpdateOperation.performOperation(SaveOrUpdateOperation.java:10) at com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessorImpl.processIndividual(BatchProcessorImpl.java:302) at com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessorImpl.processBatch(BatchProcessorImpl.java:279) 2009-04-03 14:25:33,749 http-8095-Processor18 ERROR [persistence.hibernate.batch.BatchProcessorImpl] Could not process class com.atlassian.crowd.integration.model.RemotePrincipal: cccc@yahoo.com org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61) at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46) at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92) at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87) at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:222) at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1119) at org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:26) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234) {noformat}

    Atlassian JIRA | 8 years ago | Renan Battaglin
    com.atlassian.crowd.integration.exception.ObjectNotFoundException: Failed to find com.atlassian.crowd.integration.model.RemoteGroup DirectoryID: 360450 and name: confluence-users

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.crowd.integration.exception.ObjectNotFoundException

      Failed to find entity of type [com.atlassian.crowd.integration.model.group.InternalGroup] with identifier [name <jira-administrators>, directoryId <557057>]

      at com.atlassian.crowd.model.group.GroupDAOHibernate.findByName()
    2. com.atlassian.crowd
      DirectoryManagerGeneric.addAllUsersToGroup
      1. com.atlassian.crowd.model.group.GroupDAOHibernate.findByName(GroupDAOHibernate.java:52)
      2. com.atlassian.crowd.integration.directory.internal.InternalDirectory.findGroupByName(InternalDirectory.java:561)
      3. com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.findGroupByName(DirectoryManagerGeneric.java:379)
      4. com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addAllUsersToGroup(DirectoryManagerGeneric.java:1185)
      4 frames