| Summary: | ConcurrentModificationException when triggering lazy load from conforming query | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | thorsten kruse <ruebe356> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | ruebe356, tomas.kraus | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 321041 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
thorsten kruse
Test-case is similar to bug 526546, in addition the entities are inherited: There are three entities EmployeePO(name), CustomerPO(name) and ContactPO(Emp, daysVisited, Cus). Employee: Bob, Paul Customer: CompA, CompB Contacts: Con1 (Bob, 5 days, CompA), Con2 (Paul, 10 days, CompA), Con3 (Paul, 5 days, CompB) Read all contatcs to customer CompA two times: ReadAllQuery raqCon = getNewReadAllQuery(ContactPO.class); ExpressionBuilder ebCon = new ExpressionBuilder(); raqCon.setSelectionCriteria(ebCon.get("customer").get("name").equal("CompA")); uow.executeQuery(raqCon); //execute query again uow.executeQuery(raqCon); //NoSuchElementException Commented code is attached. Created attachment 271316 [details]
Entities and testcode
workaround would be to catch the ConcurrentModificationException an execute the query again. Created attachment 271946 [details] Fix for master and 2.7 Pushed into master: ------------------- http://git.eclipse.org/c/eclipselink/eclipselink.runtime.git/commit/?id=0d06164409eeb7f3b55ee85343a58ee81e4ce998 Pushed into 2.7: ---------------- http://git.eclipse.org/c/eclipselink/eclipselink.runtime.git/commit/?h=2.7&id=34d4dcdc7e8a004cc3e76a1c1d4859aab43a338e Will the fix be part of the next eclipselink release? (In reply to thorsten kruse from comment #6) > Will the fix be part of the next eclipselink release? Sure, it is already part of release 2.7.1 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |