Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF eCore .diagram files are not saved in EMF Compare API(EMF eCore .diagram files are not saved in EMF Compare API)
EMF eCore .diagram files are not saved in EMF Compare API [message #1809900] Thu, 25 July 2019 12:37 Go to next message
Mallikarjun Reddy is currently offline Mallikarjun ReddyFriend
Messages: 1
Registered: July 2019
Junior Member
Hi Team,

we developed the .diagram files from EMF eCore functionality with org.eclipse.emf.transaction management functionality.

We unable to save the .diagram files in Compare API using the merge functionality.

We are getting the below Exception

java.lang.IllegalStateException: Cannot modify resource set without a write transaction
at org.eclipse.emf.transaction.impl.TransactionChangeRecorder.assertWriting(TransactionChangeRecorder.java:349)
at org.eclipse.emf.transaction.impl.TransactionChangeRecorder.appendNotification(TransactionChangeRecorder.java:303)
at org.eclipse.emf.transaction.impl.TransactionChangeRecorder.processObjectNotification(TransactionChangeRecorder.java:285)
at org.eclipse.emf.transaction.impl.TransactionChangeRecorder.notifyChanged(TransactionChangeRecorder.java:241)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
at com.intervoice.gtf.tc.impl.CalculateValueTypeImpl.setExpr(CalculateValueTypeImpl.java:130)
at com.intervoice.gtf.tc.impl.CalculateValueTypeImpl.eSet(CalculateValueTypeImpl.java:161)
at org.eclipse.emf.compare.utils.ReferenceUtil.safeESet(ReferenceUtil.java:183)
at org.eclipse.emf.compare.merge.AttributeChangeMerger.changeValue(AttributeChangeMerger.java:329)
at org.eclipse.emf.compare.merge.AttributeChangeMerger.accept(AttributeChangeMerger.java:72)
at org.eclipse.emf.compare.merge.AbstractMerger.copyDiff(AbstractMerger.java:794)
at org.eclipse.emf.compare.merge.AbstractMerger.copyLeftToRight(AbstractMerger.java:817)
at org.eclipse.emf.compare.merge.BatchMerger.copyAllLeftToRight(BatchMerger.java:150)
at com.intervoice.gtf.compare.mergeviewer.ContentMergeViewer.copyLeftToRight(ContentMergeViewer.java:711)
at com.intervoice.gtf.compare.mergeviewer.ContentMergeViewer.copy(ContentMergeViewer.java:218)
at org.eclipse.compare.contentmergeviewer.ContentMergeViewer$3.run(ContentMergeViewer.java:940)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:476)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:568)
at org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:439)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Re: EMF eCore .diagram files are not saved in EMF Compare API [message #1809917 is a reply to message #1809900] Thu, 25 July 2019 16:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
You also opened this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=549563

You seems to have something special installed, com.intervoice.gtf.compare, so it's hard to comment on what that might be doing.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Get IllegalValueException when opening model with Ecore Model Editor
Next Topic:MetaModelServiceRegistry initialization failed
Goto Forum:
  


Current Time: Tue Apr 16 19:41:00 GMT 2024

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

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

Back to the top