Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » Hudson 3.3.0 MsBuild plugin fails with NullPointerException
Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1707912] Thu, 10 September 2015 13:28 Go to next message
Vahe Hovhannisyan is currently offline Vahe HovhannisyanFriend
Messages: 7
Registered: September 2015
Junior Member
Suddenly ALL jobs began to fail on MsBuild step.

FATAL: null
java.lang.NullPointerException
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:38)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:140)
at hudson.plugins.msbuild.MsBuildInstallation.forNode(MsBuildInstallation.java:37)
at hudson.plugins.msbuild.MsBuildBuilder.perform(MsBuildBuilder.java:93)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:736)
at hudson.model.Build$RunnerImpl.build(Build.java:181)
at hudson.model.Build$RunnerImpl.doRun(Build.java:136)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:524)
at hudson.model.Run.run(Run.java:1493)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)

I tried to upgrade/downgrade MsBuild plugin, restart Hudson, restart machine. Nothing helped.

[Updated on: Thu, 10 September 2015 13:29]

Report message to a moderator

Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1707914 is a reply to message #1707912] Thu, 10 September 2015 13:48 Go to previous messageGo to next message
Kaz Nishimura is currently offline Kaz NishimuraFriend
Messages: 89
Registered: December 2014
Member
Have you set the location of MSBuild for the node?

Kaz Nishimura
Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1707915 is a reply to message #1707914] Thu, 10 September 2015 13:57 Go to previous messageGo to next message
Vahe Hovhannisyan is currently offline Vahe HovhannisyanFriend
Messages: 7
Registered: September 2015
Junior Member
Here are screenshots of MsBuild configuration from "Configure System" and "Configure Job" screens.

index.php/fa/23223/0/

index.php/fa/23222/0/
Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1707916 is a reply to message #1707915] Thu, 10 September 2015 13:59 Go to previous messageGo to next message
Vahe Hovhannisyan is currently offline Vahe HovhannisyanFriend
Messages: 7
Registered: September 2015
Junior Member
The problem has just solved as suddenly as it started. The only thing I did was removing Git settings from "Configure System" screen. After that all jobs began to run MsBuild. Any ideas what was this about? Smile
Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1708008 is a reply to message #1707916] Fri, 11 September 2015 12:40 Go to previous messageGo to next message
Matt Tuttle is currently offline Matt TuttleFriend
Messages: 2
Registered: July 2015
Junior Member
I ran into the same error after upgrading to Hudson 3.3.0 and ended up changing from backslashes (\) to forward slashes (/) to resolve the issue.

Was:
C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe

Changed to:
C:/Windows/Microsoft.NET/Framework/v3.5/msbuild.exe

-Matt
Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1708023 is a reply to message #1708008] Fri, 11 September 2015 13:48 Go to previous message
Vahe Hovhannisyan is currently offline Vahe HovhannisyanFriend
Messages: 7
Registered: September 2015
Junior Member
After some experiments I can generalize the problem and the workaround.

Problem: After Hudson restart, all jobs begin to fail on MsBuild step (NullPointerException).
Workaround: After restart, change anything in "Configure System" UI (you can actually change something and then change it back),

This is definitely a bug of version 3.3.0. Reported https://bugs.eclipse.org/bugs/show_bug.cgi?id=477198

[Updated on: Mon, 05 October 2015 09:14]

Report message to a moderator

Previous Topic:Deploying WAR to WildFly 8?
Next Topic:Automatic min-length workspace root
Goto Forum:
  


Current Time: Fri Apr 19 08:22:01 GMT 2024

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

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

Back to the top