|
|
|
|
|
Re: java.lang.IllegalStateException: Cannot modify resource set without a write transaction [message #1698947 is a reply to message #1695187] |
Fri, 19 June 2015 02:33  |
Eclipse User |
|
|
|
I have another questions concerning your problem:
- Why is the model modified during the getter calls? What are the reasons?
Another approach is to add the "content" during the initialization
(creation) of each new instance of object (and not to add it during the
getter call).
Le 12/05/2015 16:31, Regent LArcheveque a écrit :
> Hi Laurent,
> Indeed it is the TransactionChangeRecorder that reports the problem.
>
> Here is the error log stack:
>
> java.lang.IllegalStateException: Cannot modify resource set without a
> write transaction
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.assertWriting(TransactionChangeRecorder.java:348)
>
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.appendNotification(TransactionChangeRecorder.java:302)
>
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.processObjectNotification(TransactionChangeRecorder.java:284)
>
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.notifyChanged(TransactionChangeRecorder.java:240)
>
> at
> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.CartesianTriangularMeshMapLayerImpl.setMeshIsDirty(CartesianTriangularMeshMapLayerImpl.java:97)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.CartesianTriangularMeshURLMapLayerImpl.loadMesh(CartesianTriangularMeshURLMapLayerImpl.java:349)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.CartesianTriangularMeshURLMapLayerImpl.getMesh(CartesianTriangularMeshURLMapLayerImpl.java:128)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.CartesianTriangularMeshURLMapLayerImpl.getCurrentMesh(CartesianTriangularMeshURLMapLayerImpl.java:174)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.CartesianTriangularMeshMapLayerImpl.getAbstractMapLayerNode(CartesianTriangularMeshMapLayerImpl.java:208)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.MapNodeImpl.addLayer(MapNodeImpl.java:215)
>
> at
> ca.gc.asc_csa.symphony.environment.impl.MapNodeImpl$1$1.run(MapNodeImpl.java:299)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
Laurent Redor - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03872 seconds