aucd29 / cloning

Automatically exported from code.google.com/p/cloning
Other
0 stars 0 forks source link

ConcurrentModificationException in FastClonerHashMap #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While using cloning-1.7.4 or cloning-1.7.5-SNAPSHOT (from today's trunk), I am 
getting a ConcurrentModificationException error. If I change the execution 
timing of my code by enabling some logging, I do not generally get the 
exception. My application utilizes a single Cloner instance, and calls it very 
rapidly, however, not from multiple threads.

The full exception stack is below, minus the calls from my application:
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 com.rits.cloning.FastClonerHashMap.clone(com.rits.cloning.FastClonerHashMap:20)
    at com.rits.cloning.Cloner.fastClone(com.rits.cloning.Cloner:96)
    at com.rits.cloning.Cloner.cloneInternal(com.rits.cloning.Cloner:360)
    at com.rits.cloning.Cloner.cloneInternal(com.rits.cloning.Cloner:409)
    at com.rits.cloning.Cloner.cloneInternal(com.rits.cloning.Cloner:409)
    at com.rits.cloning.Cloner.deepClone(com.rits.cloning.Cloner:309)

If my inquiry should be going to a mailing list instead, please let me know. I 
looked briefly but I didn't see one off hand.

Thanks,

Greg

Original issue reported on code.google.com by ghasse...@gmail.com on 7 Mar 2011 at 9:02

GoogleCodeExporter commented 9 years ago
This issue can be closed. I was able to track the cause of this issue down to a 
concurrency issue in my application.

Thanks,

Greg

Original comment by ghasse...@gmail.com on 17 Mar 2011 at 4:34

GoogleCodeExporter commented 9 years ago
Hi, just saw your entry, will close the issue

Original comment by kostas.k...@googlemail.com on 13 Apr 2011 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by kostas.k...@googlemail.com on 13 Apr 2011 at 7:41