Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » edge creation fails: Object is not contained in a resource.(The Object is not contained in a resource.)
edge creation fails: Object is not contained in a resource. [message #1852818] Mon, 06 June 2022 11:14 Go to next message
AMir Taghizadegan is currently offline AMir TaghizadeganFriend
Messages: 32
Registered: May 2022
Member
Hi everyone,
I have this error, when creating an edge. Could someone help me? I am new to sirius web.


org.eclipse.emf.ecore.resource.Resource$IOWrappedException: The Object 'eed.impl.DataMappingImpl@65b97c77 (name: DataMapping)' is not contained in a resource.(52380966-3125-4989-ab11-b71b1e15a5c3).
	at org.eclipse.sirius.emfjson.resource.JsonResourceImpl.doSave(JsonResourceImpl.java:372) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1475) ~[org.eclipse.emf.ecore-2.23.0.jar:na]
	at org.eclipse.sirius.web.services.editingcontext.EditingContextPersistenceService.save(EditingContextPersistenceService.java:101) ~[sirius-web-services-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.services.editingcontext.EditingContextPersistenceService.persist(EditingContextPersistenceService.java:90) ~[sirius-web-services-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.services.editingcontext.EditingContextPersistenceService.persist(EditingContextPersistenceService.java:77) ~[sirius-web-services-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.spring.collaborative.projects.EditingContextEventProcessor.lambda$setupChangeDescriptionSinkConsumer$1(EditingContextEventProcessor.java:136) ~[sirius-web-spring-collaborative-0.5.0.jar:0.5.0]
	at reactor.core.publisher.LambdaSubscriber.onNext(LambdaSubscriber.java:160) ~[reactor-core-3.4.8.jar:3.4.8]
	at reactor.core.publisher.UnicastProcessor.drainRegular(UnicastProcessor.java:388) ~[reactor-core-3.4.8.jar:3.4.8]
	at reactor.core.publisher.UnicastProcessor.drain(UnicastProcessor.java:470) ~[reactor-core-3.4.8.jar:3.4.8]
	at reactor.core.publisher.UnicastProcessor.tryEmitNext(UnicastProcessor.java:338) ~[reactor-core-3.4.8.jar:3.4.8]
	at reactor.core.publisher.SinkManySerialized.tryEmitNext(SinkManySerialized.java:100) ~[reactor-core-3.4.8.jar:3.4.8]
	at org.eclipse.sirius.web.spring.collaborative.diagrams.handlers.InvokeEdgeToolOnDiagramEventHandler.handle(InvokeEdgeToolOnDiagramEventHandler.java:114) ~[sirius-web-spring-collaborative-diagrams-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.spring.collaborative.diagrams.DiagramEventProcessor.handle(DiagramEventProcessor.java:117) ~[sirius-web-spring-collaborative-diagrams-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.spring.collaborative.projects.EditingContextEventProcessor.handleRepresentationInput(EditingContextEventProcessor.java:286) ~[sirius-web-spring-collaborative-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.spring.collaborative.projects.EditingContextEventProcessor.doHandle(EditingContextEventProcessor.java:205) ~[sirius-web-spring-collaborative-0.5.0.jar:0.5.0]
	at org.eclipse.sirius.web.spring.collaborative.projects.EditingContextEventProcessor.lambda$handle$3(EditingContextEventProcessor.java:174) ~[sirius-web-spring-collaborative-0.5.0.jar:0.5.0]
	at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:82) ~[spring-security-core-5.5.1.jar:5.5.1]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:831) ~[na:na]
Caused by: org.eclipse.sirius.emfjson.resource.exception.DanglingHREFException: The Object 'eed.impl.DataMappingImpl@65b97c77 (name: DataMapping)' is not contained in a resource.(52380966-3125-4989-ab11-b71b1e15a5c3).
	at org.eclipse.sirius.emfjson.utils.JsonHelper.handleDanglingHREF(JsonHelper.java:946) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.JsonHelper.getURIFragment(JsonHelper.java:764) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.JsonHelper.getIDREF(JsonHelper.java:895) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializeMultipleNonContainmentEReference(GsonEObjectSerializer.java:1336) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializeEReference(GsonEObjectSerializer.java:1259) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializeEAllStructuralFeatures(GsonEObjectSerializer.java:873) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializationEClass(GsonEObjectSerializer.java:278) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.createData(GsonEObjectSerializer.java:226) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializeMultipleContainmentEReference(GsonEObjectSerializer.java:1310) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializeEReference(GsonEObjectSerializer.java:1253) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializeEAllStructuralFeatures(GsonEObjectSerializer.java:873) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serializationEClass(GsonEObjectSerializer.java:278) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.createData(GsonEObjectSerializer.java:226) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serialize(GsonEObjectSerializer.java:183) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at org.eclipse.sirius.emfjson.utils.GsonEObjectSerializer.serialize(GsonEObjectSerializer.java:1) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[gson-2.8.7.jar:na]
	at com.google.gson.Gson.toJson(Gson.java:704) ~[gson-2.8.7.jar:na]
	at org.eclipse.sirius.emfjson.resource.JsonResourceImpl.doSave(JsonResourceImpl.java:362) ~[org.eclipse.sirius.emfjson-2.3.1-SNAPSHOT.jar:na]
Re: edge creation fails: Object is not contained in a resource. [message #1852856 is a reply to message #1852818] Wed, 08 June 2022 13:04 Go to previous message
Glenn Plouhinec is currently offline Glenn PlouhinecFriend
Messages: 22
Registered: April 2020
Junior Member
Hi AMir,

I suggest you to report the bug on the github of sirius-web https://github.com/eclipse-sirius/sirius-web/issues. In order to have more chances to have an answer, you can describe the scenario to reproduce the bug step by step and attach files, a project to reproduce the bug easily.

Best regards,
Glenn


Glenn Plouhinec - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Sirius-web - errors when deploying custom model
Next Topic:Is there a way to show alphabetically sorted candidate names?
Goto Forum:
  


Current Time: Tue Aug 09 17:24:19 GMT 2022

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

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

Back to the top