Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » MatchService.doMatch ConcurrentModificationException
MatchService.doMatch ConcurrentModificationException [message #1701876] Thu, 16 July 2015 11:19 Go to next message
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member
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 12:39 Go to previous messageGo to next message
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member
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 13:16 Go to previous messageGo to next message
Markus Riedl is currently offline Markus RiedlFriend
Messages: 20
Registered: November 2012
Junior Member
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 14:05 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
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: Mon Nov 04 09:28:52 GMT 2024

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

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

Back to the top