java.lang.RuntimeException: Could not serialize EObject via backtracking. Constraint: Type_SarlAgent returns SarlAgent: (annotationInfo=Type_SarlAgent_2_2_0 modifiers+=CommonModifier* name=ValidID extends=JvmParameterizedTypeReference? members+=AOPMember*); Values: name(1) Semantic Object: SarlScript.xtendTypes[0]->SarlAgent'MyAgent' URI: platform:/resource/test/src/main/sarl/io/sarl/tests/runtime/MyAgent.sarl Context: Type returns SarlAgent


Solutions on the web15

Solution icon of github
Could not serialize EObject via backtracking. Constraint: Type_SarlAgent returns SarlAgent: (annotationInfo=Type_SarlAgent_2_2_0 modifiers+=CommonModifier* name=ValidID extends=JvmParameterizedTypeReference? members+=AOPMember*); Values: name(1

Solution icon of bugzilla
via Eclipse Bugzilla by error-reports-inbox, 1 year ago
Could not serialize EObject via backtracking. Constraint: null {XtendField.annotationInfo=} modifiers+=CommonModifier* ((modifiers+='extension' (modifiers+=CommonModifier | modifiers+=FieldModifier)* type=JvmTypeReference name=ValidID? | modifiers

Solution icon of bugzilla
Could not serialize EObject via backtracking. Constraint: null name=ID default=RealNumber lowerBound=RealNumber upperBound=RealNumber unit=STRING? null Values: name(1), default(1), upperBound(1), unit(1) Semantic Object: GeneralProcessModellingSystem.variableTypeEntity->VariableTypeEntity'GasConcentration' Context: VariableTypeEntity

Solution icon of bugzilla
via Eclipse Bugzilla by error-reports-inbox, 1 year ago
Could not serialize EObject via backtracking. Constraint: null null Values: ownedUnrealizedVariables(1) Semantic Object: TopLevelCS.ownedMappings[16]->MappingCS'attributeColumns_MR'.ownedDomains[1]->DomainCS.ownedBottomPattern->BottomPatternCS Context: SourceBottomPatternCS

Solution icon of bugzilla
via Eclipse Bugzilla by ralphgerbig, 1 year ago
Could not serialize EObject via backtracking. Constraint: null (name=SINGLE_QUOTED_STRING | name=UnrestrictedName) (value+=ML_SINGLE_QUOTED_STRING | value+=SINGLE_QUOTED_STRING)* null Values: name(1), value(1) Semantic Object

Solution icon of bugzilla
Could not serialize EObject via backtracking. Constraint: null documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=ImportVisibilityIndicator definition=PackagedElementDefinition null Values: visibility(1) Semantic Object: UnitDefinition.definition->PackageDefinition'Protocol1'.ownedMember[0]->Member Context: PackagedElement

Solution icon of googlegroups
via Google Groups by David Méndez, 1 year ago
Operator [super] is not supported. Semantic Object: XtendFile.xtendTypes[0]->XtendClass'StateMachineAspect'.members[5]->XtendFunction'step'.expression->XBlockExpression.expressions[1]->XWhileExpression.predicate->XBinaryOperation Context: XExpression

Solution icon of bugzilla
via Eclipse Bugzilla by mlehmannm, 1 year ago
No EObjectDescription could be found in Scope XGenericType.type for GenModel.genPackages[0]->GenPackage.genDataTypes[30]->GenDataType Semantic Object: XPackage'test'.classifiers[0]->XClass'Test'.members[0]->XAttribute'test'.type->XGenericType

Solution icon of github
No EObjectDescription could be found in Scope Entity(Resource).kind for Kind Semantic Object: Configuration.resources[0]->Resource URI: temp.occi EStructuralFeature: occi::Entity.kind

Solution icon of github
No EObjectDescription could be found in Scope Thing.includes for ThingMLModel.types[2]->Thing'Test' Semantic Object: ThingMLModel.types[0]->Thing'TestInt16' URI: file:/C:/Users/jakobho/Documents/GitHub/ThingML-xtext/testing/tmp/genCode/Types/Int16.thingml EStructuralFeature: thingML::Thing.includes

Stack trace

java.lang.RuntimeException: Could not serialize EObject via backtracking.
Constraint: Type_SarlAgent returns SarlAgent: (annotationInfo=Type_SarlAgent_2_2_0 modifiers+=CommonModifier* name=ValidID extends=JvmParameterizedTypeReference? members+=AOPMember*);
Values: name(1)
Semantic Object: SarlScript.xtendTypes[0]->SarlAgent'MyAgent'
URI: platform:/resource/test/src/main/sarl/io/sarl/tests/runtime/MyAgent.sarl
Context: Type returns SarlAgent
	at org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic$ExceptionThrowingAcceptor.accept(ISerializationDiagnostic.java:131)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:480)
	at io.sarl.lang.serializer.SARLSemanticSequencer.sequence_Type(SARLSemanticSequencer.java:1399)
	at io.sarl.lang.serializer.SARLSemanticSequencer.sequence(SARLSemanticSequencer.java:147)
	at org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer.createSequence(AbstractSemanticSequencer.java:67)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptEObjectRuleCall(SequenceFeeder.java:325)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.acceptRuleCall(SequenceFeeder.java:352)
	at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept(SequenceFeeder.java:263)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.accept(BacktrackingSemanticSequencer.java:412)
	at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:478)
	at io.sarl.lang.serializer.SARLSemanticSequencer.sequence_SarlScript(SARLSemanticSequencer.java:1375)
	at io.sarl.lang.serializer.SARLSemanticSequencer.sequence(SARLSemanticSequencer.java:278)
	at org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer.createSequence(AbstractSemanticSequencer.java:67)
	at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:118)
	at org.eclipse.xtext.serializer.impl.Serializer.serializeToRegions(Serializer.java:150)
	at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:156)
	at org.eclipse.xtext.serializer.impl.Serializer.serialize(Serializer.java:203)
	at org.eclipse.xtext.resource.XtextResource.doSave(XtextResource.java:369)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1430)
	at io.sarl.eclipse.wizards.elements.AbstractNewSarlElementWizardPage.createSARLType(AbstractNewSarlElementWizardPage.java:667)
	at io.sarl.eclipse.wizards.elements.AbstractNewSarlElementWizardPage$1.execute(AbstractNewSarlElementWizardPage.java:602)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:107)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:128)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 4 months ago