Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Could not serialize Mission via backtracking
Could not serialize Mission via backtracking [message #1795167] Mon, 17 September 2018 15:30 Go to next message
Sergio García is currently offline Sergio GarcíaFriend
Messages: 15
Registered: May 2018
Junior Member
Hello!

So I'm having problems with my project (again). I'm working with both Xtext and Sirius, so I don't really know where the problem lies. The thing is that when working with both syntaxes at the same time there are certain objects that return an error (see below) when being added from Sirius. It doesn't happen when adding those objects from Xtext, they just pop up in the graphical syntax as usual. Those objects are the ones inheriting from abstract classes (my workspace: https://www.dropbox.com/s/hgamlrayc4ymjlz/workspace.zip?dl=0). However, only one of the objects gives an error when specified in Sirius. In my grammar it would be the object Event, but not Action (also "ordered locations" but not "not ordered locations"). I realized that the order in the grammar is important since if I exchange (for instance) the position of events and actions the object returning error also changes. I hope I could explain it properly. Thank you in advance.

Best regards,
Sergio


!ENTRY org.eclipse.core.jobs 4 2 2018-09-17 17:17:32.464
!MESSAGE An internal error occurred during: "Saving Models and Representations for project promise_integration".
!STACK 0
java.lang.RuntimeException: Could not serialize Mission via backtracking.
Constraint: Mission_Mission returns Mission: (
(conditions+=Event conditions+=Event*)?
(conditions+=Action conditions+=Action*)?
robots+=Robot
robots+=Robot*
(location+=OrderedLocation location+=OrderedLocation*)?
(location+=NotOrderedLocation location+=NotOrderedLocation*)?
operator+=Operator
operator+=Operator*
);
Values: operator(1), conditions(24), robots(3), location(6)
Semantic Object: Mission
URI: platform:/resource/promise_integration/mission2.promise
Context: Mission returns Mission
at org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic$ExceptionThrowingAcceptor.accept(ISerializationDiagnostic.java:131)
at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:503)
at se.gu.co4robots.xtext.promise.serializer.PromiseSemanticSequencer.sequence_Mission(PromiseSemanticSequencer.java:395)
at se.gu.co4robots.xtext.promise.serializer.PromiseSemanticSequencer.sequence(PromiseSemanticSequencer.java:108)
at org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer.createSequence(AbstractSemanticSequencer.java:67)
at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:115)
at org.eclipse.xtext.serializer.impl.Serializer.serializeToRegions(Serializer.java:136)
at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:142)
at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:189)
at org.eclipse.xtext.resource.XtextResource.doSave(XtextResource.java:386)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1430)
at org.eclipse.sirius.business.internal.session.danalysis.ResourceSaveDiagnose.hasDifferentSerialization(ResourceSaveDiagnose.java:84)
at org.eclipse.sirius.business.internal.session.IsModifiedSavingPolicy.hasDifferentSerialization(IsModifiedSavingPolicy.java:210)
at org.eclipse.sirius.business.internal.session.IsModifiedSavingPolicy.computeResourcesToSave(IsModifiedSavingPolicy.java:191)
at org.eclipse.sirius.business.api.session.AbstractSavingPolicy.save(AbstractSavingPolicy.java:57)
at org.eclipse.sirius.common.xtext.internal.XtextSavingPolicy.save(XtextSavingPolicy.java:68)
at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl$1.run(DAnalysisSessionImpl.java:828)
at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328)
at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.doSave(DAnalysisSessionImpl.java:837)
at org.eclipse.sirius.business.internal.session.danalysis.Saver.wrappedSave(Saver.java:142)
at org.eclipse.sirius.business.internal.session.danalysis.Saver.access$0(Saver.java:131)
at org.eclipse.sirius.business.internal.session.danalysis.Saver$1.run(Saver.java:119)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2262)
at org.eclipse.sirius.business.internal.session.danalysis.Saver.saveNow(Saver.java:116)
at org.eclipse.sirius.business.internal.session.danalysis.Saver.save(Saver.java:93)
at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.save(DAnalysisSessionImpl.java:801)
at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.save(DAnalysisSessionImpl.java:796)
at org.eclipse.sirius.diagram.ui.tools.internal.resource.CustomSiriusDocumentProvider.doSaveDocument(CustomSiriusDocumentProvider.java:279)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider$1SaveOperation.execute(AbstractDocumentProvider.java:596)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider$DocumentProviderOperation.run(AbstractDocumentProvider.java:66)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.executeOperation(AbstractDocumentProvider.java:530)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.saveDocument(AbstractDocumentProvider.java:579)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.performSave(DiagramDocumentEditor.java:864)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.doSave(DiagramDocumentEditor.java:684)
at org.eclipse.sirius.ui.business.internal.session.SaveSessionRunnable.run(SaveSessionRunnable.java:62)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:370)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

[Updated on: Fri, 12 October 2018 08:04]

Report message to a moderator

Re: Could not serialize Mission via backtracking [message #1796360 is a reply to message #1795167] Thu, 11 October 2018 15:12 Go to previous messageGo to next message
Sergio García is currently offline Sergio GarcíaFriend
Messages: 15
Registered: May 2018
Junior Member
Sorry again for being insistent, but can you help me?

Best,
Sergio
Re: Could not serialize Mission via backtracking [message #1796377 is a reply to message #1796360] Fri, 12 October 2018 05:31 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

Xtext rob;ems are best asked on the Xtext ghroup, and repros usually help.

Superficially it looks like 6 locations where 2 are allowed.

Regards

Ed Willink
Previous Topic:Ordered list
Next Topic:Table Navigation
Goto Forum:
  


Current Time: Fri Mar 29 08:38:15 GMT 2024

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

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

Back to the top