[Acceleo] The type of the first parameter of the main template named 'generateElement' is a proxy [message #1434908] |
Tue, 30 September 2014 19:52  |
Eclipse User |
|
|
|
Here is the exception: Exception in thread "main" org.eclipse.acceleo.engine.AcceleoEvaluationException: The type of the first parameter of the main template named 'generateElement' is a proxy.
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:632)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:211)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:172)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:159)
I have created a simple example showing the problem. Its attached.
Attachment: example.zip
(Size: 146.83KB, Downloaded 210 times)
|
|
|
Re: [Acceleo] The type of the first parameter of the main template named 'generateElement' is a prox [message #1435311 is a reply to message #1434908] |
Wed, 01 October 2014 09:56   |
Eclipse User |
|
|
|
Hi,
You may have an issue with the way your metamodel is registered/loaded during the build or during the execution of your generator.
You should place a breakpoint in AcceleoService to see the state of your package registry there. Otherwise, you could also put a breakpoint in the constructor of the launcher (the class extending AbstractAcceleoGenerator) to see if there are proxies in the module loaded. If there are any, you should compare the URI of the parameter type expected and the NsURI of your metamodel.
Regards,
Stephane Begaudeau, Obeo
|
|
|
|
Powered by
FUDForum. Page generated in 0.03268 seconds