Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] NullPointerException during Tycho Build
[Acceleo] NullPointerException during Tycho Build [message #1059249] Thu, 16 May 2013 15:13
Eclipse User
Hey everyone,

I have a multi project tycho project.

After some of my MTL-files are compiled to EMTL(about half of them), the
build stops with following error message/stack trace:

[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.eclipse.acceleo:maven:3.2.1:acceleo-compile (acceleo-compile) on
project
de.fraunhofer.fokus.testing.fokusmbt.service.testcodegeneration.impl.ttcn3pio:
Execution acceleo-compile of goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile failed.
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile (acceleo-compile) on project
de.fraunhofer.fokus.testing.fokusmbt.service.testcodegeneration.impl.ttcn3pio:
Execution acceleo-compile of goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile failed.
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.eclipse.acceleo:maven:3.2.1:acceleo-compile (acceleo-compile) on
project
de.fraunhofer.fokus.testing.fokusmbt.service.testcodegeneration.impl.ttcn3pio:
Execution acceleo-compile of goal
org.eclipse.acceleo:maven:3.2.1:acceleo-compile failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
acceleo-compile of goal org.eclipse.acceleo:maven:3.2.1:acceleo-compile
failed.
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at
org.eclipse.acceleo.parser.AcceleoParserProblem.equals(AcceleoParserProblem.java:118)
at java.util.HashMap.put(HashMap.java:376)
at java.util.HashSet.add(HashSet.java:200)
at
org.eclipse.acceleo.parser.AcceleoParserProblems.addProblem(AcceleoParserProblems.java:54)
at
org.eclipse.acceleo.parser.AcceleoSourceBuffer.logProblem(AcceleoSourceBuffer.java:390)
at
org.eclipse.acceleo.internal.parser.ast.ASTFactory.logProblem(ASTFactory.java:598)
at
org.eclipse.acceleo.internal.parser.ast.ASTFactory.getOrCreateOCLExpression(ASTFactory.java:309)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:777)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:1399)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveBody(CST2ASTConverterWithResolver.java:1802)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:1467)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveBody(CST2ASTConverterWithResolver.java:1804)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:546)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolveOwnedModuleElement(CST2ASTConverterWithResolver.java:1768)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.transformStepResolve(CST2ASTConverterWithResolver.java:198)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:136)
at
org.eclipse.acceleo.internal.parser.ast.CST2ASTConverterWithResolver.resolveAST(CST2ASTConverterWithResolver.java:115)
at
org.eclipse.acceleo.parser.AcceleoSourceBuffer.resolveAST(AcceleoSourceBuffer.java:336)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.doBuild(AcceleoParser.java:605)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:421)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:726)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:426)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:726)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:426)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:310)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.computeModuleFileDependency(AcceleoParser.java:458)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:389)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:726)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:426)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:310)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.computeModuleFileDependency(AcceleoParser.java:458)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:389)
at
org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildAll(AcceleoParser.java:254)
at
org.eclipse.acceleo.maven.AcceleoParserMojo.execute(AcceleoParserMojo.java:348)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more

Can anybody help me and fix this? I can provide pom configuration, but I
figured because some are already compiled, it must be correct.
Or could this be a problem with the MTL-files?

Regards,
Luis Reisewitz
Previous Topic:[Acceleo]Acceleo does not see metamodels located in targetplatform
Next Topic:Properties of ecore classes
Goto Forum:
  


Current Time: Fri Sep 19 07:57:34 GMT 2014

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

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