Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] tycho transformation test fails
[Acceleo] tycho transformation test fails [message #1197013] Tue, 19 November 2013 18:10 Go to next message
Franck Malartic is currently offline Franck MalarticFriend
Messages: 8
Registered: September 2012
Junior Member
Hello,

I encounter some strange problem trying to run tycho-surefire-plugin test on an acceleo project. The test runs fine within eclipse.
Other tests not using transformation are correct too.

The error is the following (appears in the log file):
org.eclipse.acceleo.engine.AcceleoEvaluationException: Class generator.transformation.Parameters Couldn't be found in the classpath of the bundle containing module parameters.emtl.
	at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.invoke(AcceleoLibraryOperationVisitor.java:1171)
	at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.callNonStandardOperation(AcceleoLibraryOperationVisitor.java:133)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitOperationCallExp(AcceleoEvaluationVisitor.java:1230)
	at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
	at org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
	at org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:156)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1904)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1059)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoQueryInvocation(AcceleoEvaluationVisitor.java:889)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1881)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1059)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:931)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1836)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1059)
	at org.eclipse.ocl.internal.evaluation.QueryImpl.evaluate(QueryImpl.java:152)
	at org.eclipse.ocl.ecore.QueryImpl.evaluate(QueryImpl.java:62)
	at org.eclipse.acceleo.engine.generation.AcceleoEngine.doEvaluate(AcceleoEngine.java:365)
	at org.eclipse.acceleo.engine.generation.AcceleoEngine.evaluate(AcceleoEngine.java:142)
	at org.eclipse.acceleo.engine.service.AcceleoService.doGenerateTemplate(AcceleoService.java:884)
	at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:585)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:193)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:158)



This class is accessed with an "invoke" query from the template.
It is present in the generated jar of the project with maven, and the package is correctly exported in the MANIFEST.
If I remove the call to this query, the test fails at next "invoke" query, with the same error but applied to another class.
org.eclipse.acceleo.engine.AcceleoEvaluationException: Class generator.transformation.Filename Couldn't be found in the classpath of the bundle containing module filename.emtl.

The maven compilation is done with acceleo maven plugin 3.2.1 (the only one I could find on the repository raw.github.com/eclipse/acceleo/master/maven/repository/releases/indigo).

Eclipse platform : 3.8.2
Acceleo : 3.3.2
Maven : 3.0.4
tycho : 0.19.0 (also tried 0.18.1)

Any clue where I could investigate ?

Best regards,
Franck

Edit: interestingly, the tests succeed when run from the module pom. The above error appears when the tests are run from the parent pom !
The tests are located in a plugin fragment (the host is the acceleo project) if that can help.

[Updated on: Wed, 20 November 2013 10:26]

Report message to a moderator

Re: [Acceleo] tycho transformation test fails [message #1209616 is a reply to message #1197013] Mon, 25 November 2013 16:07 Go to previous message
Franck Malartic is currently offline Franck MalarticFriend
Messages: 8
Registered: September 2012
Junior Member
Finally found the cause. Many thanks to the guy who added the "-DdebugPort=8000" option to maven !

Problem is in the bundle resolver, due to an underscore in the path. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=422487 for details.

Regards,
Franck
Previous Topic:[Acceleo] MTL Metamodel
Next Topic:[Xpand] C postprocessor
Goto Forum:
  


Current Time: Sat Jul 27 09:30:26 GMT 2024

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

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

Back to the top