Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » NullPointerException in Hudson
NullPointerException in Hudson [message #1619330] Mon, 16 February 2015 13:59 Go to next message
Eclipse UserFriend
Hi,

I get following exception when I want to build my E4 RCP project with
Hudson (version 3.2.1) and Maven (version 3.2.5, Tycho 0.22.0):




Found mavenVersion 3.2.5 from file
jar:file:/opt/apache-maven-3.2.5/lib/maven-core-3.2.5.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
Parsing POMs
ERROR: Processing failed due to a bug in the code. Please report this to
dev@xxxxxxxx.net
java.lang.NullPointerException
at hudson.FilePath.isAbsolute(FilePath.java:214)
at hudson.FilePath.<init>(FilePath.java:202)
at hudson.FilePath.child(FilePath.java:940)
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:570)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:524)
at hudson.model.Run.run(Run.java:1493)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:420)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
project=MavenModuleSet[MyProject]
project.getModules()=[MavenModule[MyProject/my.project:my.project.module1][MyProject/my.project:my.project.module1][relativePath:null],
MavenModule[MyProject/my.project:my.project][MyProject/my.project:my.project][relativePath:null],
MavenModule[MyProject/my.project:my.project.module2][MyProject/my.project:my.project.module2][relativePath:null],
MavenModule[MyProject/my.project:my.project.module3][MyProject/my.project:my.project.module3][relativePath:null],
MavenModule[MyProject/my.project:my.projectmodule4][MyProject/my.project:my.projectmodule4][relativePath:null],
MavenModule[MyProject/my.project:my.project.module5][MyProject/my.project:my.project.module5][relativePath:null],
MavenModule[MyProject/my.project:my.project.module6][MyProject/my.project:my.project.module6][relativePath:null],
....
MavenModule[MyProject/my.project:my.project.master][MyProject/my.project:my.project.master][relativePath:],
MavenModule[MyProject/my.project:my.project.module7][MyProject/my.project:my.project.module7][relativePath:null],
MavenModule[MyProject/my.project:my.project.product][MyProject/my.project:my.project.product][relativePath:null]]
project.getRootModule()=MavenModule[MyProject/my.project:my.project.master][MyProject/my.project:my.project.master][relativePath:]
FATAL: null
java.lang.NullPointerException
at hudson.FilePath.isAbsolute(FilePath.java:214)
at hudson.FilePath.<init>(FilePath.java:202)
at hudson.FilePath.child(FilePath.java:940)
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:570)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:524)
at hudson.model.Run.run(Run.java:1493)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:420)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)






The project gets properly built under Windows/Linux using the integrated
Maven 3.2.1 of the Eclipse Luna workbench.

The project "my.project.master" defines the parent pom that also defines
the contained modules.

The parent sections of my modules look like this:

<parent>
<groupId>my.project</groupId>
<artifactId>my.project.master</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../my.project.master/pom.xml</relativePath>
</parent>

When I manually build the Hudson working copy using "mvn clean verify",
everything gets compiled properly. So, it seems to be a Hudson problem.

I couldn't find a solution for this problem. Does anybody have an idea
what is going wrong and can point into the right direction.


Thanks a lot!

Regards,

Stefan
Re: NullPointerException in Hudson [message #1620013 is a reply to message #1619330] Tue, 17 February 2015 00:30 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Are you using legacy maven project or maven 2 builder? Do you get the error if you try to use FreeStyle project and maven 3 builder?

Winston Prakash
Eclipse Hudson team
Re: NullPointerException in Hudson [message #1620630 is a reply to message #1620013] Tue, 17 February 2015 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi Winston,

thanks for your quick response. I was using the Maven 2/3 Legacy
builder. I just tried the Free Style Maven 3 project and everything
executed smoothly. Seems to be a bug in the Maven 2/3 Legacy project?

Thanks a lot for your help!

Regards,

Stefan


Am 17.02.2015 um 01:30 schrieb Winston Prakash:
> --
> Winston Prakash
Re: NullPointerException in Hudson [message #1621289 is a reply to message #1620630] Tue, 17 February 2015 20:17 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Stefan,

Maven 2/3 Legacy project is not maintained actively. That is why it comes with a deprecated warning Smile


Winston Prakash
Eclipse Hudson team
Previous Topic:java.lang.LinkageError: loader constraint violation
Next Topic:Hudson support
Goto Forum:
  


Current Time: Tue Mar 19 11:41:16 GMT 2024

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

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

Back to the top