Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Unresolved compilation error, expression was null.
Unresolved compilation error, expression was null. [message #1799371] Wed, 05 December 2018 18:35 Go to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hello,

I'm facing an issue with deploying Acceleo project. When I run my plugin in a new exlipse instance "Run As->Eclipse plugin" everything works fine! However, it throws the following error message when I create a Feature and UpdateSite to create a deployable version of it. The message is "Unresolved compilation error, expression was null." and the detail is shown below:

eclipse.buildId=unknown
java.version=1.8.0_181
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data file:/C:/Users/Parsa/Desktop/capella/workspace/

org.eclipse.acceleo.engine
Warning
Wed Dec 05 13:31:24 EST 2018
Unresolved compilation error, expression was null.

org.eclipse.acceleo.engine.AcceleoEvaluationException: Unresolved compilation error, expression was null.
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1895)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoQueryInvocation(AcceleoEvaluationVisitor.java:880)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1951)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoIfBlock(AcceleoEvaluationVisitor.java:600)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1912)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:922)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1906)
	at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
	at org.eclipse.ocl.internal.evaluation.QueryImpl.evaluate(QueryImpl.java:146)
	at org.eclipse.ocl.ecore.QueryImpl.evaluate(QueryImpl.java:56)
	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:984)
	at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:652)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:209)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:172)
	at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:159)
	at org.polarsys.capella.aql.transformation.main.Generate.doGenerate(Generate.java:217)
	at org.polarsys.capella.aql.transformation.ui.common.GenerateAll.doGenerate(GenerateAll.java:88)
	at org.polarsys.capella.aql.transformation.ui.popupMenus.AcceleoGenerateTransformtoXSDAction$1.run(AcceleoGenerateTransformtoXSDAction.java:77)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)



Please advise.
Thanks,
Parsa
Re: Unresolved compilation error, expression was null. [message #1799377 is a reply to message #1799371] Wed, 05 December 2018 19:52 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6457
Registered: July 2009
Senior Member
Hi

"works fine" is not always the same as "is fine".

I suspect that your deployment detects some latent problem.

Regards

Ed Willink
Re: Unresolved compilation error, expression was null. [message #1799379 is a reply to message #1799377] Wed, 05 December 2018 20:07 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi Ed,

Do you know any types of latent problem that can cause this? My original Acceleo version is 3.7.1 but the target eclipse has Acceleo version of 3.7.6. Can it be a problem ? My attempts to synchronise the two versions have failed so far!

Best Regards,
Parsa
Re: Unresolved compilation error, expression was null. [message #1799382 is a reply to message #1799379] Wed, 05 December 2018 20:49 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6457
Registered: July 2009
Senior Member
Hi

Yes, read my Bugzillas. But I stopped using Acceleo at about 3.4. I don't care to enumerate all the ways you can make a mistake in the total absence of any repro.

Regards

Ed Willink
Previous Topic:Strange behaviour on generating text - Indentations do not match
Next Topic:Generate Output files in a different folder than the project
Goto Forum:
  


Current Time: Wed Sep 18 01:37:58 GMT 2019

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

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

Back to the top