Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Error "Type 'A!B' not found in .etl code!"
Error "Type 'A!B' not found in .etl code!" [message #1122709] Tue, 01 October 2013 21:27 Go to next message
Mahsa P is currently offline Mahsa PFriend
Messages: 115
Registered: July 2013
Senior Member
Hello my friends
when i run my ANT file, i get this error: "Type 'A!B' not found in /tr_A2B.etl"! I created my ".ecore"s file and registered them correctly. my XML file is similar to:
<project default="main">

 	<target name="loadModels">
 		<!--epsilon.emf.register 
 		<epsilon.emf.register file="../metamodel/A.ecore"/>
 		<epsilon.emf.register file="../metamodel/B.ecore"/>
 		 		
 		<epsilon.emf.loadModel name="A"
                                       modelFile="untitled.model"
                                       metamodelUri="A"
                                       read="true" store="false"/>
 		
 		<epsilon.emf.loadModel name="B"
                                       modelFile="untitled2.model"
                                       metamodelUri="B"
                                       read="false" store="true"/>
 	</target>
 	
	<target name="main" depends="loadModels">		
		<epsilon.etl src="tr_A2B.etl">
			<model ref="A"/>
			<model ref="B"/>
		</epsilon.etl>
	</target>
</project>

I even get this error when i run ".launch" file in Tree2Graph project while the target model is created ! what may be it's reason?

[Updated on: Wed, 02 October 2013 09:10]

Report message to a moderator

Re: Error "Type 'A!B' not found in .etl code!" [message #1124498 is a reply to message #1122709] Thu, 03 October 2013 15:49 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi,

Could you please put together a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris

[1] http://eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Error "Type 'A!B' not found in .etl code!" [message #1124747 is a reply to message #1124498] Thu, 03 October 2013 21:49 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa PFriend
Messages: 115
Registered: July 2013
Senior Member
Hi Dear Dimitris,
I attached two projects.one of them ("example")contains meta-models and other ("A2B")contains model,.etl code and launch file. in this project i want transform A to B. when i launch via ANT, I receive this error:
"BUILD FAILED
D:\eclipse\workspace\A2B\launch.xml:21: Type 'A!a1' not found (D:\eclipse\workspace\A2B\A2B.etl@2:22)"

and so for creating the target model i receive this error too.
(for some project such as Tree2Graph, if I run the ANT each time and then run ".launch", the target model is created but i receive "Type 'Tree!Tree' not found (D:\eclipse\workspace\tree2graph\Tree2Graph.etl@2:25))" too.)
I don't know it's reason. why isn't found this type while meta-models are registered correctly?
  • Attachment: A2B.zip
    (Size: 1.47KB, Downloaded 136 times)
  • Attachment: example.zip
    (Size: 1.32KB, Downloaded 158 times)

[Updated on: Thu, 03 October 2013 21:54]

Report message to a moderator

Re: Error "Type 'A!B' not found in .etl code!" [message #1124756 is a reply to message #1124747] Thu, 03 October 2013 21:56 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Masha,

The problem is that your models are named APackage and BPackage in the ANT file but A and B in your transformation. To fix this you need to define local names for your models in the task that invokes your ETL transformation as follows:

<epsilon.etl src="A2B.etl">
<model ref="APackage" as="A"/>
<model ref="BPackage" as="B"/>
</epsilon.etl>

Cheers,
Dimitris
Re: Error "Type 'A!B' not found in .etl code!" [message #1124771 is a reply to message #1124756] Thu, 03 October 2013 22:18 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa PFriend
Messages: 115
Registered: July 2013
Senior Member
Ok. so thanks from your answer. my problem is fixed:)
can you recommend me one reference for Xml launch files?
Re: Error "Type 'A!B' not found in .etl code!" [message #1124775 is a reply to message #1124771] Thu, 03 October 2013 22:21 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Great! Chapter 13 of the Epsilon book [1] discusses the Epsilon ANT tasks in some detail.

Cheers,
Dimitris

[1] http://eclipse.org/epsilon/doc/book/
Re: Error "Type 'A!B' not found in .etl code!" [message #1124780 is a reply to message #1124775] Thu, 03 October 2013 22:28 Go to previous message
Mahsa P is currently offline Mahsa PFriend
Messages: 115
Registered: July 2013
Senior Member
Again,thank you for the helps.
Previous Topic:Eugenia Epsilon
Next Topic:Entry & Validation of Text in a GMF Runtime
Goto Forum:
  


Current Time: Sat Apr 20 00:06:24 GMT 2024

Powered by FUDForum. Page generated in 0.03595 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top