Skip to main content



      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 09:28 Go to next message
Eclipse UserFriend
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 09:29] by Moderator

Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1707914 is a reply to message #1707912] Thu, 10 September 2015 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Have you set the location of MSBuild for the node?
Re: Hudson 3.3.0 MsBuild plugin fails with NullPointerException [message #1707915 is a reply to message #1707914] Thu, 10 September 2015 09:57 Go to previous messageGo to next message
Eclipse UserFriend
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 09:59 Go to previous messageGo to next message
Eclipse UserFriend
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 08:40 Go to previous messageGo to next message
Eclipse UserFriend
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 09:48 Go to previous message
Eclipse UserFriend
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 05:14] by Moderator

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


Current Time: Thu Jul 17 17:00:24 EDT 2025

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

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

Back to the top