It's all about the answers!

Ask a question

Maven build engine throws a NPE


0
1
Spencer Murata (2.3k115970) | asked May 24 '12, 2:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 04 '12, 9:38 a.m.
Build started from an RTC maven build engine produces a null pointer exception using maven 2.2.1 when activityIdProperty is used in the pom file

Note: The last "caused by" is from our code

org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: java.lang.NullPointerException
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
......

Caused by: java.lang.NullPointerException
at com.ibm.team.build.ant.task.StartBuildActivityTask.updateBuildResult(StartBuildActivityTask.java:159)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:655)

Accepted answer


permanent link
Spencer Murata (2.3k115970) | answered May 24 '12, 2:55 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Do not update your maven m2.conf file with the buildtool kit jar files. The wiki had said to put the following in the m2.conf:

load C:\Program Files (x86)\Ant\1.8.3\lib\ant.jar
load C:\Program Files (x86)\IBM\Build Toolkits\3.0.1.2\buildsystem\buildtoolkit\*.jar

Rather use the Ant script to load the jar files, not the Maven m2.conf file.

Build started from an RTC maven build engine produces a null pointer exception using maven 2.2.1 when activityIdProperty is used in the pom file

Note: The last "caused by" is from our code

org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: java.lang.NullPointerException
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
......

Caused by: java.lang.NullPointerException
at com.ibm.team.build.ant.task.StartBuildActivityTask.updateBuildResult(StartBuildActivityTask.java:159)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:655)
Spencer Murata selected this answer as the correct answer

Your answer


Register or to post your answer.