build failed due to bug in code

618 views
Skip to first unread message

William Pughe

unread,
Nov 1, 2013, 10:10:04 AM11/1/13
to jenkins...@googlegroups.com
A Jenkins build of code that builds from the command line and in other Jenkins instances produced:

Checking out Revision 3f7b2aebae0b87940b806423bb5d55e634e93a3b (origin/master)
First time build. Skipping changelog.
ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.NullPointerException
	at java.io.File.<init>(File.java:277)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
	at hudson.FilePath.act(FilePath.java:1004)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:605)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
	at hudson.model.Run.execute(Run.java:1665)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:230)
project=hudson.maven.MavenModuleSet@66f11134[first]
project.getModules()=[]
project.getRootModule()=null
FATAL: null
java.lang.NullPointerException
	at java.io.File.<init>(File.java:277)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58)
	at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
	at hudson.FilePath.act(FilePath.java:1004)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:605)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
	at hudson.model.Run.execute(Run.java:1665)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:230)

Mark Waite

unread,
Nov 1, 2013, 10:30:39 AM11/1/13
to jenkins...@googlegroups.com
John Kerr recently reported a similar stack trace.


Unfortunately, I have no idea on either of the cases.

Mark Waite

Christoph Kutzinski

unread,
Nov 1, 2013, 11:46:47 AM11/1/13
to jenkins...@googlegroups.com
What is your Jenkins and your maven-plugin versions?
 
From the error it looks like there's a problem with the configured maven installation to use for this job (Maven home seems to be empty).
Can you check that configuration?
 
Gesendet: Freitag, 01. November 2013 um 15:10 Uhr
Von: "William Pughe" <will...@gmail.com>
An: jenkins...@googlegroups.com
Betreff: build failed due to bug in code
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Daniel Beck

unread,
Nov 1, 2013, 11:49:16 AM11/1/13
to jenkins...@googlegroups.com
This can be trivially reproduced: Create a Maven installation, remove the auto-installer, and leave the path empty. Configure it to be used in a Maven job, and run it.

William Pughe

unread,
Nov 1, 2013, 11:53:18 AM11/1/13
to jenkins...@googlegroups.com
That was it, empty maven_home.  All set now, thanks for the help.



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/2711nDJxK6A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Christoph Kutzinski

unread,
Nov 1, 2013, 12:08:59 PM11/1/13
to jenkins...@googlegroups.com
Nice :)
 
Could you create a JIRA issue for this, so we can produce a better error message the next time someone hits this problem?
 
 
Gesendet: Freitag, 01. November 2013 um 16:53 Uhr

Von: "William Pughe" <will...@gmail.com>
An: jenkins...@googlegroups.com
Betreff: Re: build failed due to bug in code

William Pughe

unread,
Nov 1, 2013, 12:24:46 PM11/1/13
to jenkins...@googlegroups.com
Sure, what component would this be for?

Christoph Kutzinski

unread,
Nov 1, 2013, 12:39:50 PM11/1/13
to jenkins...@googlegroups.com
maven2
 
Gesendet: Freitag, 01. November 2013 um 17:24 Uhr

Von: "William Pughe" <will...@gmail.com>
An: jenkins...@googlegroups.com
Betreff: Re: Re: build failed due to bug in code
Reply all
Reply to author
Forward
0 new messages