Bug 328 : ConcurrentModificationException when running query
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
13/10/2010
Updated 
13/10/2010
Type 
Bug
 
Attachments 
No attachments

Hit by Rien:

java.util.ConcurrentModificationException
at java.util.LinkedHashMap
$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)
at java.util.LinkedHashMap
$ValueIterator.next(LinkedHashMap.java:405)
at
com.avaje.ebeaninternal.server.querydefn.OrmQueryDetail.removeSecondaryQueries(OrmQueryDetail.java:
194)
at
com.avaje.ebeaninternal.server.querydefn.OrmQueryDetail.removeSecondaryQueries(OrmQueryDetail.java:
149)
at
com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.removeQueryJoins(DefaultOrmQuery.java:
336)
at
com.avaje.ebeaninternal.server.loadcontext.DLoadContext.registerSecondaryQueries(DLoadContext.java:
137)
at
com.avaje.ebeaninternal.server.core.OrmQueryRequest.(OrmQueryRequest.java:
112)
at
com.avaje.ebeaninternal.server.core.DefaultServer.createQueryRequest(DefaultServer.java:
1142)
at
com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:
1389)
at
com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:
896)

 
Rob 13 Oct 08:04
Fixed in HEAD

Fix in HEAD. Copy the OrmQueryDetail ... so as not to share instances when using Autofetch tuned queries.

woResponse

Upload a file