ATL Plugin Feature 'literal' not found error [message #895516] |
Fri, 13 July 2012 11:13 |
Emwedish Endargachew Messages: 27 Registered: April 2011 |
Junior Member |
|
|
Dear All,
I have worked with atl for a while and I am coming to something productive at the end. I have completed the transformation after a long ride and now I wanted to launch the atl transformation from Java project.
Inorder to do so I want to first creat the ATL Plugin and use it in java project.
However, when I run the ATL Plugin before i use it in the java project, then I get an error says org.eclipse.m2m.atl.core.ATLCoreException feature 'literal' not found as it is shown below.
org.eclipse.m2m.atl.core.ATLCoreException: Error loading Meta/MetaModel.ecore: Feature 'literal' not found. (Meta/MetaModel.ecore, 663, 90)
at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector.java:70)
at org.eclipse.m2m.atl.core.emf.EMFInjector.inject(EMFInjector.java:84)
at Export.a2b.loadModels(a2b.java:113)
at Export.a2b.main(a2b.java:76)
line 663 is an eliteral
I have made some test to check what the cause for this problem is and i find out that the eliteral from the metamodel enumeration are the sources of the error. However, my metamodel have lots of enumerations and I need a solution to handle the enumeration in the atl plugin.
I have series of transformations and the once with out enumeration are working fine.
I have tried to find from the forum if there is someone with similar problem however, i have found no related error and i was wondering if anyone of you know about it. Or if it is a bug in the ATL plug in.
I am using Eclipse 3.6.0 Helios Release (3.6.0) , ATL 3.1.1 and EMF 2.6.1 and I want to create ATL plugins that that I can run the atl transformation programmatically by calling it from Java.
I thank everyone in advance for the solution you will provide me.
kind regards,
Emwedish
[Updated on: Fri, 13 July 2012 11:21] Report message to a moderator
|
|
|
|
|
|
|
|
Re: ATL Plugin Feature 'literal' not found error [message #905564 is a reply to message #905544] |
Thu, 30 August 2012 16:35 |
Emwedish Endargachew Messages: 27 Registered: April 2011 |
Junior Member |
|
|
hi Hugo,
Thanks a lot!
No i have not tried to run it on Indigo or Juno. However, when I run it using ATL3.1.1 in eclipse Europa, and ATL3.1.1 in Eclipse 3.6.0 Helios i get this error. However, when i use the ATL configuration to run the atl transformation in many different versions of eclipse including AMMAPrototypeEclipse, and ATL2.0 it works fine. The reason why I am now trying to find the latest ATL is that because I want to programmtically launch my application.
I will try to run the Juno you suggest, but can I ask how you tried to run the metamodel in Juno. Did you write a transformation and run the ATL launch configuration or you tried the ATL plugin.
So to make it clear I want to launch an ATL transformation using java:
1. I want to launch it using java or another language which can support GUI
2. want to use the inject and extract as my models are available in xml format
so would you please send me the link for complete eclipse which have all the libraries. The main challenging task for me while working with ATL transformation is,
1. Launching it programmatically including the support for inject and extract an XML file as my input is available in xml.
Do you think Juno will help or if you have the complete Eclipse version with all the libraries that can enable me launching the transformation programmatically, would you please be kind and send me the zip file?
I really appreciate for your help,
Kind regards,
Emwedish
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04937 seconds