You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Tobias Schoessler <to...@gmail.com> on 2009/11/03 16:59:50 UTC

ConcurrentModificationExceptio on commit

Hi,

I am getting this exception when committing.


java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
        at java.util.HashMap$EntryIterator.next(HashMap.java:834)
        at java.util.HashMap$EntryIterator.next(HashMap.java:832)
        at
org.objectstyle.cayenne.access.ObjectStore.postprocessAfterCommit(ObjectStore.java:575)

        at
org.objectstyle.cayenne.access.DataContext.flushToParent(DataContext.java:1263)

        at
org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:1166)

...

I am using cayenne 1.2.3. I am a bit clueless where to look for as the
Exception is thrown obviously after the commit succeeds.

thanks

best regards

Re: ConcurrentModificationExceptio on commit

Posted by Andrus Adamchik <an...@objectstyle.org>.
Don't remember seeing this error.

Can you reproduce it consistently in a single user environment, or is  
this something that happens under load with many users accessing the  
app?

Andrus



On Nov 3, 2009, at 5:59 PM, Tobias Schoessler wrote:
> Hi,
>
> I am getting this exception when committing.
>
>
> java.util.ConcurrentModificationException
>        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
>        at java.util.HashMap$EntryIterator.next(HashMap.java:834)
>        at java.util.HashMap$EntryIterator.next(HashMap.java:832)
>        at
> org 
> .objectstyle 
> .cayenne.access.ObjectStore.postprocessAfterCommit(ObjectStore.java: 
> 575)
>
>        at
> org 
> .objectstyle 
> .cayenne.access.DataContext.flushToParent(DataContext.java:1263)
>
>        at
> org 
> .objectstyle 
> .cayenne.access.DataContext.commitChanges(DataContext.java:1166)
>
> ...
>
> I am using cayenne 1.2.3. I am a bit clueless where to look for as the
> Exception is thrown obviously after the commit succeeds.
>
> thanks
>
> best regards