Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Milan Milanovic's code running problem
Milan Milanovic's code running problem [message #898880] Sat, 28 July 2012 19:10 Go to next message
Fernanda R.F. is currently offline Fernanda R.F.Friend
Messages: 64
Registered: May 2012
Member
Hi,

I'm trying to use the Milan Milanovic's code to run ATL programmatically with java.
As I'm using ecore metamodels, I changed the "initMDR" to "initEMF" and the "mdramh" to "emfamh". But it isn't working, I'm getting the following error:


Exception in thread "main" java.lang.NullPointerException
	at atl.ATLTransformations.initEMF(ATLTransformations.java:178)
	at atl.ATLTransformations.<init>(ATLTransformations.java:114)
	at atl.ATLTransformations.getATLTransformations(ATLTransformations.java:221)
	at atl.ATLTransformations.main(ATLTransformations.java:620)



Could somebody help me?

What I'm doing wrong? How can I solve it?

Thanks,
Fernanda
Re: Milan Milanovic's code running problem [message #905095 is a reply to message #898880] Wed, 29 August 2012 17:09 Go to previous messageGo to next message
Emwedish Endargachew is currently offline Emwedish EndargachewFriend
Messages: 27
Registered: April 2011
Junior Member
Hi Fernando,

I am having the same problem, have you got the solution yet?

if you get it would you please tell me what the problem with that library is?

kind regards,
Emwedish
Re: Milan Milanovic's code running problem [message #905119 is a reply to message #905095] Wed, 29 August 2012 18:21 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4186
Registered: July 2009
Senior Member
Hi

In the absence of a quick response from someone who knows the answer...

You are much more likely to get a response if you provide a zipped
project including a launch configuration that demonstrates the problem.

Currently you expect someone to devote unfunded time for:
a) research to discover what Milan Milanovic's code is
b) development to make Milan Milanovic's code run
c) telepathy to identify why you see problems that may not appear in the
independent re-development

If you want help, you need to help yourself to be helped.

Regards

Ed Willink

On 29/08/2012 18:09, Emwedish Endargachew wrote:
> Hi Fernando,
>
> I am having the same problem, have you got the solution yet?
>
> if you get it would you please tell me what the problem with that
> library is?
>
> kind regards,
> Emwedish
Re: Milan Milanovic's code running problem [message #905471 is a reply to message #898880] Thu, 30 August 2012 12:46 Go to previous messageGo to next message
Emwedish Endargachew is currently offline Emwedish EndargachewFriend
Messages: 27
Registered: April 2011
Junior Member
Hi,
@Ed Willink,

I just ask if Fernando solved it assuming that the Milan Milanovic's code is famous on the M2M society.

However the instructions are found
http://wiki.eclipse.org/ATL_Howtos
the link for the code is also found: on the second chapter of the article which says (How do I launch transformations programmatically?)

hope you will give some feedback too.

@Fernando,
I have avoided this error by using the right library files provided in the .zip file from the download link and also using the given libraries. Check the library.

But the problem still have a problem of identifying the literals form the enumeration.I cannot attach the screen shot i wanted to send you, if you are still interested please do send me ur email and i will attach it to you.

Please make sure:
You have used the right meta-model and model names. It is important. I got same error due to metamodel naming difference as well.

Oh sorry, i can not attach the picture.

but try to import the jar files in the lib folder. Also dont forget to add your lib folder in the environment.

However, I would like to ask if there is anyone who faced a problem with literals of an EMF meta-model while launching ATL transformation programmatically?

thanks for helping
good luck.




Re: Milan Milanovic's code running problem [message #906123 is a reply to message #905471] Fri, 31 August 2012 16:58 Go to previous message
Fernanda R.F. is currently offline Fernanda R.F.Friend
Messages: 64
Registered: May 2012
Member
Hi,

I couldn't run it.
So, I came back to atl plugin, and it is working with some files, not all.

Thanks for the answers!

Fernanda
Previous Topic:EBoolean
Next Topic:Entry Point called rule
Goto Forum:
  


Current Time: Thu Dec 18 22:24:17 GMT 2014

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

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