Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328263

Summary: [Move to EMF Facet] ConcurrentModificationException in catalog
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Project Inbox <modisco.web-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 CC: gdupe
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 352718    
Bug Blocks:    
Attachments:
Description Flags
Another related error log gdupe: iplog-

Description Nicolas Bros CLA 2010-10-20 11:47:47 EDT
I got a ConcurrentModificationException by trying to open the "Load customizations" dialog while a model was being opened in the model browser.

I think the catalog was iterating on the MoDiscoResourceSet when a Resource was added to it, resulting in the ConcurrentModificationException.


java.util.ConcurrentModificationException
	at org.eclipse.emf.common.util.AbstractEList$EIterator.checkModCount(AbstractEList.java:762)
	at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:710)
	at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:696)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:362)
	at org.eclipse.gmt.modisco.infra.common.core.internal.builder.AbstractMoDiscoCatalog.openInstalledResource(AbstractMoDiscoCatalog.java:243)
	at org.eclipse.gmt.modisco.infra.common.core.internal.builder.AbstractMoDiscoCatalog.initInstalledRootObject(AbstractMoDiscoCatalog.java:221)
	at org.eclipse.gmt.modisco.infra.common.core.internal.builder.AbstractMoDiscoCatalog.<init>(AbstractMoDiscoCatalog.java:130)
	at org.eclipse.gmt.modisco.infra.browser.custom.core.CustomizationsCatalog.<init>(CustomizationsCatalog.java:76)
	at org.eclipse.gmt.modisco.infra.browser.custom.core.CustomizationsCatalog.getInstance(CustomizationsCatalog.java:63)
	at org.eclipse.gmt.modisco.infra.browser.editors.BrowserSettingsPersistence.getLastCustomizations(BrowserSettingsPersistence.java:153)
	at org.eclipse.gmt.modisco.infra.browser.editors.EcoreBrowser.backgroundOpenModel(EcoreBrowser.java:666)
	at org.eclipse.gmt.modisco.infra.browser.editors.EcoreBrowser$21.run(EcoreBrowser.java:1873)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Fabien Giquel CLA 2010-10-21 04:15:57 EDT
Created attachment 181368 [details]
Another related error log

Here is a similar ConcurrentMoDificationException but the stack trace is not exactly the same.
I got it with a clean new Helios 3.7M2 with Modisco nightly from 19/10.
The error occurs one time. Not reproductible.
Comment 2 Gregoire Dupe CLA 2011-07-21 08:03:55 EDT
We will try to solve the query, facet and customization problems by using the
EMF Facet. We then have to wait the next version of the facet feature => P4
Comment 3 Gregoire Dupe CLA 2011-09-28 07:37:48 EDT
We will switch to EMF Facet before to try to solve such bugs. => P5