java.util.ConcurrentModificationException in
HibernateIdentityStoreImpl class
-----------------------------------------------------------------------------
Key: JBID-129
URL:
https://jira.jboss.org/jira/browse/JBID-129
Project: JBoss Identity
Issue Type: Bug
Components: IDM
Affects Versions: idm-1.0.0.Alpha5
Reporter: Jeff Yu
Assignee: Jeff Yu
Fix For: idm-1.0.0.Beta1
The test case for this error is:
Group dept =
identitySession.getPersistenceManager().createGroup("sales-dept", GROUP);
User u1 = identitySession.getPersistenceManager().createUser("jeff1");
User u2 = identitySession.getPersistenceManager().createUser("jeff2");
RoleType developer =
identitySession.getRoleManager().createRoleType("developer");
identitySession.getRoleManager().createRole(developer, u1, dept);
identitySession.getRoleManager().createRole(developer, u2, dept);
identitySession.getPersistenceManager().removeGroup(dept, true);
----------------------------------------------------------------------------------------------
Exception stack:
------------------------------------
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
at java.util.HashMap$KeyIterator.next(HashMap.java:877)
at
org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:577)
at
org.jboss.identity.idm.impl.store.hibernate.HibernateIdentityStoreImpl.removeIdentityObject(HibernateIdentityStoreImpl.java:500)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: