Skip to main content



      Home
Home » Modeling » Compare » MatchService.doMatch ConcurrentModificationException
MatchService.doMatch ConcurrentModificationException [message #1701876] Thu, 16 July 2015 07:19 Go to next message
Eclipse UserFriend
Hi,

I'm experiencing a ConcurrentModificationException during MatchService.doMatch
EMFCompare 1.1.1 with IBM RSA 9.1.1

The code looks like:
EObject next = loadModel(URI.createPlatformResourceURI(iterator.next().getFullPath().toString(), true));
EObject prev = loadModel(URI.createPlatformResourceURI(model.getFullPath().toString(), true));
...
final MatchModel match = MatchService.doMatch(next, prev, new HashMap<String, Object>());

final DiffModel diff = DiffService.doDiff(match, false);
EList<DiffElement> diffs = diff.getDifferences();


private EObject loadModel(URI modelUri) throws InterruptedException {
..
EObject root = (EObject) UMLModeler.openModelResource(modelUri);
return root;
...
}



Exception:
java.util.ConcurrentModificationException
at org.eclipse.emf.common.util.AbstractEList$EIterator.checkModCount(AbstractEList.java:756)
at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:704)
at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:690)
at org.eclipse.emf.common.util.AbstractTreeIterator.next(AbstractTreeIterator.java:133)
at org.eclipse.emf.compare.match.engine.GenericMatchScope.resolveAll(GenericMatchScope.java:166)
at org.eclipse.emf.compare.match.engine.GenericMatchScope.<init>(GenericMatchScope.java:74)
at org.eclipse.emf.compare.match.engine.GenericMatchScopeProvider.<init>(GenericMatchScopeProvider.java:77)
at org.eclipse.emf.compare.match.engine.MatchScopeProviderUtil.getScopeProvider(MatchScopeProviderUtil.java:81)
at org.eclipse.emf.compare.match.engine.GenericMatchEngine.modelMatch(GenericMatchEngine.java:532)
at org.eclipse.emf.compare.match.service.MatchService.doMatch(MatchService.java:155)


Greetings Markus
Re: MatchService.doMatch ConcurrentModificationException [message #1701884 is a reply to message #1701876] Thu, 16 July 2015 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Additional Note: the loaded diagrams are generated using the IBM RSA Java2UML Transformation API, if i load a model which was not generated from this API it seems to be fine.
Re: MatchService.doMatch ConcurrentModificationException [message #1701890 is a reply to message #1701884] Thu, 16 July 2015 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Ok: closing the Project which you transformed does help.
Re: MatchService.doMatch ConcurrentModificationException [message #1702187 is a reply to message #1701890] Mon, 20 July 2015 10:05 Go to previous message
Eclipse UserFriend
Hi Markus,

EMF Compare 1.1.1 hasn't been maintained since 2010. If at all possible, you should try and update to a newer version for improved behavior, performances and stability.

Or are you stuck using this version in your environment ? You might want to contact the commercial adress of Obeo for long term support on your project.

Laurent Goubet
Obeo
Previous Topic:Consider cross references for comparison
Next Topic:[EMF Compare] Is there any way to tweak matching phase?
Goto Forum:
  


Current Time: Sat Jul 05 01:41:18 EDT 2025

Powered by FUDForum. Page generated in 0.04271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top