|Error on importing EMF model [message #794038]
||Wed, 08 February 2012 21:29
| Josef Pohl
Registered: January 2012
Not sure if anyone is monitoring this list but thought I would try.
I am a new VIATRA2 user (3.2) and am trying to import an ecore meta-model and an instance of this meta-model but have run into a number of cryptic errors which I cannot explain.
First I ran into a number of errors when I simply load the meta-model (using the generic importer from the Model Space instance). These errors do not seem to have anything to do with my meta-model itself though. This error did not re-occur on a second attempt so it might not be a true issue (i.e. I tried to recreate it but was not able to immediately.)
Relation 'nemf.ecore.EClass.EAttribute' is not a valid subtype of relation 'nemf.ecore.EClass.EStructuralFeature' as the refinement of target ends is invalid.
There were about 4 errors that pop up on this. All related to nemf.ecore
(EAttribute, EReference, EDataType (x2 on the last one, same error twice.)
The meta-model seems to be placed in the .vpml file though. And I can convert it to .vtml. (Just FYI. But it looks much more complicated than my original model.)
The second issue, which I can recreate, is when I then try to import an instance.
I receive the error:
Error executing task 'Native import: /home/jmpohl/runtime-EclipseApplication/egsc_test3/src/diagrams/Test23.egsn' (java.lang.reflect.InvocationTargetException) [null]
The model file, although with a different extension than the model name (xxegsn) is created from a graphical editor. I unfortunately do not get any other information on this (no stack trace, etc). So it is presumably a known issue (?) or at least seen before. The model is not resident in the VIATRA2 project that I am using.
Just for completeness I am using Eclipse Indigo (3.7.1)
So I guess in general, is there any work around on this? I have dug around a bit in the documentation but cannot seem to locate any user study case that explicitly follows the path of loading an ecore model and writing transformations based on that content. Am I missing something?
Powered by FUDForum
. Page generated in 0.01744 seconds