Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to serialize the object (How to serialize the object )
How to serialize the object [message #1805223] Wed, 10 April 2019 04:54 Go to next message
Eclipse UserFriend
I am having sirius and xtext editor. Any change from the sirius diagram not reflecting in xtext editor. i am getting exception like java.lang.RuntimeException: Could not serialize EObject via backtracking. .then i checked is transient value ,it is returning true. i tried to change the value by extending the class DefaultTransientValueService but it is giving exceptions. can any one help me how to serialize the objects.
Re: How to serialize the object [message #1805241 is a reply to message #1805223] Wed, 10 April 2019 05:46 Go to previous messageGo to next message
Eclipse UserFriend
Please provide a minimal metamodel, grammar and unit test
Re: How to serialize the object [message #1806064 is a reply to message #1805223] Thu, 02 May 2019 00:00 Go to previous message
Eclipse UserFriend
The problem is most likely the one described here:
https://www.eclipse.org/forums/index.php/t/367763/

As far as I understood it, the parser in the current code tries to serialize an empty element.
Usually the element is created implicitly on the first access to a member . But since there is no such elements, the EMF object itself is also not created.
Adding
{Element}
will explicitly create the EMF object at the beginning of serializing the rule and therefore it is then present and the serializer is happy :).

[Updated on: Wed, 08 May 2019 01:55] by Moderator

Previous Topic:What Industry Wants from Academia in Software Modeling
Next Topic:indir in grammer
Goto Forum:
  


Current Time: Wed May 14 07:21:37 EDT 2025

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

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

Back to the top