Multiple inputs with references [message #1099861] |
Mon, 02 September 2013 10:06 |
|
Hi,
I am facing a problem that was already posted in an archived forum
http://www.eclipse.org/forums/index.php/m/683910/?srch=Multiple+input+with+references#msg_683910
My problem is very similar. I have one metamodel divided in different ecore files, with references between them. For example, a "property" references another metamodel file that has the concept of "metric", and so on.
In an ATL transformation I get an error when I try to access the object "metric" of a given "property". I think that the problem is related with this, with the fact that it is in another file.
org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class it.cnr.isti.labse.connect.metrics.Metrics.impl.MetricsImpl' must be of type 'org.eclipse.emf.ecore.impl.EClassImpl@13b0fe0 (name: Metrics) (instanceClassName: null) (abstract: false, interface: false)'
The metamodels are provided by someone else, so I cannot unify them.
Any suggestion would be appreciated!
|
|
|
|
Re: Multiple inputs with references [message #1099902 is a reply to message #1099895] |
Mon, 02 September 2013 11:15 |
|
yes, the stack trace shows this:
<unknown>!coverageReachingGuard
org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class it.cnr.isti.labse.connect.metrics.EventSet.impl.EventSetImpl' must be of type 'org.eclipse.emf.ecore.impl.EClassImpl@e273f6 (name: EventSet) (instanceClassName: null) (abstract: false, interface: false)'
at __applygetTestContext#88(MAIN.atl[110:4-110:14])
what refers to my code here:
prop.metrics.debug();
where I have accessed to other attributes of this element before, like
name <- prop.name,
So, the prop model is loaded and I can access their elements without problem, but when I try to access to an attribute that it is in another file it fails as mentioned
Thank you for your time!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03854 seconds