MatchService.doMatch ConcurrentModificationException [message #1701876] |
Thu, 16 July 2015 07:19  |
Eclipse User |
|
|
|
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 #1702187 is a reply to message #1701890] |
Mon, 20 July 2015 10:05  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04271 seconds