[jboss-jira] [JBoss JIRA] Commented: (JBID-129) java.util.ConcurrentModificationException in HibernateIdentityStoreImpl class

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Mon Jun 15 09:01:57 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBID-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12472076#action_12472076 ] 

Anil Saldhana commented on JBID-129:
------------------------------------

ConcurrentHashMap?

> 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

        



More information about the jboss-jira mailing list