Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] NullPointer when executing junit test from maven
[Acceleo] NullPointer when executing junit test from maven [message #1107565] Thu, 12 September 2013 11:49 Go to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

I have a JUnit test which executes an acceleo transformation in works fine when executing from Eclipse. Found here (https://github.com/deep-modeling/melanee-core/blob/master/tests/org.melanee.core.test.melanee2metadepth/src/org/melanee/core/test/melanee2metadepth/GenerateFactoryTest.java).

In my maven build I use the acceleo maven plugin to compile my template which works fine. When running my test, however, I do get a NullPointer exception in the generation process.

java.lang.NullPointerException
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:565)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:193)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:158)
at org.melanee.core.melanee2metadepth.main.GenerateMetadepth.doGenerate(GenerateMetadepth.java:202)

How can I debug my problem to find out what is going wrong here?

Ralph
Re: [Acceleo] NullPointer when executing junit test from maven [message #1111514 is a reply to message #1107565] Wed, 18 September 2013 06:17 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

the problem was that there was a problem when compiling the acceleo module. Fixing a dependency to my meta-model solved the problem.

Ralph
Previous Topic:Difference between eSuperTypes and eAllSuperTypes
Next Topic:[Acceleo] Developing a eclipse plug-in using acceleo generation within
Goto Forum:
  


Current Time: Tue Jul 22 17:52:49 EDT 2014

Powered by FUDForum. Page generated in 0.02542 seconds