Feature xyz must be set [message #776752] |
Mon, 09 January 2012 03:16  |
Eclipse User |
|
|
|
Hi,
I'm running in a problem when using ETL, I don't know where it origins, maybe someone of you has a hint?
Im executing a standalone ETL transformation. I'm trying to save my target model, I've set: emfModelTarget.setStoredOnDisposal(true);
When I invoke the module via
module.execute();
module.getContext().getModelRepository().dispose();
it crashes with: org.eclipse.xtext.validation.IConcreteSyntaxValidator$InvalidConcreteSyntaxException: These errors need to be fixed before the model can be serialized.
Model: Feature Model.document must be set.
(why in org.eclipse.xtext.validation? where does this come from?).
So I don't know why that happens because in my .etl I'm pretty sure I'm setting this feature:
rule Model2Model
transform m : Source!Model
to m : Target!Model {
("Transforming a Model to a Model").println();
var neet := new Target!NonEmptyElementTag;
var stag := new Target!STag;
stag.name := "span";
neet.stag := stag;
var etag := new Target!ETag;
etag.name := "span";
neet.etag := etag;
m.document = neet;
}
Any guesses? What could be the problem?
Best regards
Yves
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04327 seconds