|
|
|
|
Re: Serialization in xtext [message #1266506 is a reply to message #1257700] |
Fri, 07 March 2014 09:55  |
Eclipse User |
|
|
|
If it helps, the Serialization raising exceptions issue in most cases is due to a ScopeProvider problem (in my limited experience).
Make sure if you designed a custom ScopeProvider that it is registered with bindIScopeProvider (and configureSerializerScopeProvider) in your runtime module.
You can also break under debugger just before the
resource.save(Collections.EMPTY_MAP);
and inspect your model manually under debugger to check the AST node that the exception points to as being in error. The error trace is very long, but right at the top you chould get a pretty precise diagnosis of where to look.
The debugger allows to track issues such as crossrefs pointing to objects in other Resources, or attributes being null due to a forgotten EcoreUtil.copy somewhere etc... as these errors are frequent when building a model programmatically.
gl&hf
yann
|
|
|
Powered by
FUDForum. Page generated in 0.41624 seconds