Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » java.lang.IllegalStateException: Cannot modify resource set without a write transaction
java.lang.IllegalStateException: Cannot modify resource set without a write transaction [message #1283442] Thu, 03 April 2014 12:27 Go to next message
Stefania DAgostini is currently offline Stefania DAgostiniFriend
Messages: 1
Registered: April 2014
Junior Member
Hi,

I am using Sirius to implement a graphical modeling workbench.
I have a EMF model (Ecore model) describing the modeling workbench from
which I have generated the model code, the edit code and the editor code.
From this domain model I have created different Eclipse editors using Sirius
Viewpoint specifications.
All it is fine except when I save the modifications made on a Sirius diagram. For
example if I create a new element of the model in a diagram editor I can
see the new element on the EMF tree editor, but if I save I receive the
following exception:

java.lang.IllegalStateException: Cannot modify resource set without a write
transaction

atorg.eclipse.emf.transaction.impl.TransactionChangeRecorder.assertWriting(T
ransactionChangeRecorder.java:348)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.appendNotificatio
n(TransactionChangeRecorder.java:302)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.processObjectNoti
fication(TransactionChangeRecorder.java:284)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.notifyChanged(Tra
nsactionChangeRecorder.java:240)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierIm
pl.java:374)

Any idea?
Thank you in advance.
Stefania
Re: java.lang.IllegalStateException: Cannot modify resource set without a write transaction [message #1333674 is a reply to message #1283442] Mon, 05 May 2014 07:08 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

Sorry for the late anwser, when you say you create model elements in a
diagram editor and you see them in the EMF tree editor, do you mean that
you share a single TransactionalEditingDomain between Sirius diagram
editor and your EMF generated tree editor? Or do you mean when you
create model elements in the EMF generated tree editor and you save you
have the following stacktrace when the sirius diagram editor reload its
resources.
Can you provide the full stacktrace and a more precise reproduction
scenario.

Best Regards.

Le 03/04/2014 15:20, Stefania DAgostini a écrit :
> Hi,
>
> I am using Sirius to implement a graphical modeling workbench. I have a
> EMF model (Ecore model) describing the modeling workbench from
> which I have generated the model code, the edit code and the editor code.
> From this domain model I have created different Eclipse editors using
> Sirius
> Viewpoint specifications.
> All it is fine except when I save the modifications made on a Sirius
> diagram. For
> example if I create a new element of the model in a diagram editor I can
> see the new element on the EMF tree editor, but if I save I receive the
> following exception:
>
> java.lang.IllegalStateException: Cannot modify resource set without a write
> transaction
>
> atorg.eclipse.emf.transaction.impl.TransactionChangeRecorder.assertWriting(T
>
> ransactionChangeRecorder.java:348)
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.appendNotificatio
>
> n(TransactionChangeRecorder.java:302)
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.processObjectNoti
>
> fication(TransactionChangeRecorder.java:284)
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.notifyChanged(Tra
>
> nsactionChangeRecorder.java:240)
> at
> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierIm
>
> pl.java:374)
>
> Any idea?
> Thank you in advance.
> Stefania
>
Previous Topic:Representation of a hierarchical model
Next Topic:Shapes with non-rectangular boundaries
Goto Forum:
  


Current Time: Thu Apr 25 19:36:02 GMT 2024

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

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

Back to the top