[
https://jira.jboss.org/jira/browse/JBID-129?page=com.atlassian.jira.plugi...
]
Jeff Yu commented on JBID-129:
------------------------------
Not really,
It is trying to delete the Object when it is in the iterator.next() method.
like:
for (HibernateIdentityObjectRelationship relationship :
hibernateObject.getToRelationships())
{
relationship.getFromIdentityObject().getFromRelationships().remove(relationship);
relationship.getToIdentityObject().getToRelationships().remove(relationship);
hibernateSession.delete(relationship); // This is causing the error.
}
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:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira