Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Occasional buold failures without error message
Occasional buold failures without error message [message #908991] Thu, 06 September 2012 11:05 Go to next message
Bernhard Hiller is currently offline Bernhard Hiller
Messages: 10
Registered: September 2012
Junior Member
Hudson 2.2.1 was set up on a virtual machine with Windows XP (German locale). When building our .NET projects with Visual Studio command line, I observe occasional build failures where no failure ought to happen. And no error message is given, just a FAILURE message, e.g.

Kompilierung abgeschlossen -- 0 Fehler, 3 Warnungen
  ILicenseServer -> F:\Hudson\V3-Projekte\.....\ILicenseServer.dll
------ Erstellen gestartet: Projekt: ODSI, Konfiguration: Release Any CPU ------
Sending e-mails to: xxx@yyy.de
[DEBUG] Skipping watched dependency update for build: V3-Projekte #18 due to result: FAILURE
Finished: FAILURE


That is, Hudson succeeds with building some of the projects in the solution ("Kompilierung abgeschlossen ..."). When it starts the next project ("Erstellen gestartet ..."), it just fails.
I could not find any entry in the Event Logs of Windows for that internal failure of Hudson.

It happens about once in 5 builds.
Re: Occasional buold failures without error message [message #909144 is a reply to message #908991] Thu, 06 September 2012 15:55 Go to previous messageGo to next message
Steve Christou is currently offline Steve Christou
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

Interesting, few questions:
1. Do you have any external plugins enabled for this job?
2. Do you see any error messages in the hudson log (http://localhost:8080/log/all).
3. Are you invoking a build using the Execute Command Line? If so, Does your script ever throw some kind of error/warning code?


/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Re: Occasional buold failures without error message [message #909449 is a reply to message #909144] Fri, 07 September 2012 06:54 Go to previous messageGo to next message
Bernhard Hiller is currently offline Bernhard Hiller
Messages: 10
Registered: September 2012
Junior Member
Thanks for your hints.
1. A VMWare plugin was downloaded, but it is not used in this job.
The source code repository is subversion, running on a different machine, hence a subversion plugin is used here.
2. That's a good point - I did not know yet where the log files of Hudson are located. In the log file, I see an exception for that case:
Information: V3-Projekte #18 main build action completed: FAILURE

Sep 06, 2012 12:45:10 PM hudson.ExpressionFactory2$JexlExpression evaluate
Warnung: Caught exception evaluating: descriptor.hostNames. Reason: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor419.invoke(Unknown Source)

which eventually leads down to
Caused by: java.lang.NullPointerException
	at hudson.plugins.vmware.VMwareActivationWrapper$DescriptorImpl.getHostNames(VMwareActivationWrapper.java:383)
	... 180 more

Very strange - why is the VMwareActivationWrapper called somewhere during the build of a solution? During - not between two solutions! And, this project does not activate a virtual machine, it is executed on the "Master" only (no slaves were running). I'll try to remove that plugin.

3. Yes, it is an "Execute Windows Batch command",
call "C:\Programme\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
devenv Entwicklung\MyProject1\MyProject1.sln /clean RELEASE
devenv Entwicklung\MyProject1\MyProject1.sln /build RELEASE

It shows a few warning messages, but they must not cause a failure. Just start the same project immediately again, without any changes to the sources, and it does succeed.
Re: Occasional buold failures without error message [message #909514 is a reply to message #909449] Fri, 07 September 2012 09:04 Go to previous messageGo to next message
Bernhard Hiller is currently offline Bernhard Hiller
Messages: 10
Registered: September 2012
Junior Member
Deactivating the plugin did not lead to a solution. I found out that such failures can be provoked by logging off from an RDP session of the hudson server. Hence, I created an extra user for the Hudson service to run with - but that did not help.
A new trace from the log file:
Information: V3-Projekte #30 main build action completed: FAILURE

Sep 07, 2012 10:54:31 AM hudson.model.DownloadService$Downloadable doPostBack
Information: Obtained the updated data file for hudson.tasks.Ant.AntInstaller

Sep 07, 2012 10:53:30 AM hudson.model.Hudson$5 onAttained
Information: Loaded all jobs

Sep 07, 2012 10:53:30 AM hudson.model.Hudson$5 onAttained
Information: Augmented all extensions

Sep 07, 2012 10:53:27 AM hudson.model.DownloadService$Downloadable doPostBack
Information: Obtained the updated data file for hudson.tools.JDKInstaller

Sep 07, 2012 10:53:27 AM hudson.model.DownloadService$Downloadable doPostBack
Information: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller

Sep 07, 2012 10:50:08 AM hudson.model.AsyncPeriodicWork$1 run
Information: Finished Workspace clean-up. 16 ms

Sep 07, 2012 10:50:08 AM hudson.model.AsyncPeriodicWork$1 run
Information: Started Workspace clean-up

Sep 07, 2012 9:52:07 AM hudson.model.Run run

Re: Occasional buold failures without error message [message #909859 is a reply to message #909514] Fri, 07 September 2012 23:51 Go to previous messageGo to next message
Steve Christou is currently offline Steve Christou
Messages: 125
Registered: June 2012
Location: Milwaukee, Wisconsin
Senior Member

That's interesting how it impacts you when you loginoff only. You would not have happened to remove the -Xrs option would you?

/**
 * @author Steven Christou
 * @dev    Hudson-ci
 */
Re: Occasional build failures without error message [message #911181 is a reply to message #909859] Tue, 11 September 2012 06:28 Go to previous messageGo to next message
Bernhard Hiller is currently offline Bernhard Hiller
Messages: 10
Registered: September 2012
Junior Member
In Hudson.xml, I find the line:
<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\hudson.war" --httpPort=8080</arguments>

That is, the Xrs option is switched on.
Presently, I think that it might be a bug of Visual Studio: that it stops execution at a "session switch" event, regardless of the associated user.
Re: Occasional build failures without error message [message #911699 is a reply to message #911181] Wed, 12 September 2012 06:42 Go to previous message
Bernhard Hiller is currently offline Bernhard Hiller
Messages: 10
Registered: September 2012
Junior Member
After changing the command line from using devenv for the builds to msbuild, the problem has not yet occured again. Hence that looks like a proof for the bug in Visual Studio theory.
Previous Topic:java.lang.StackOverflowError when using Compiler warnings plugin
Next Topic:How to prevent Hudson from entering Shutdown mode automatically or when idle?
Goto Forum:
  


Current Time: Thu Oct 02 10:45:27 GMT 2014

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

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