Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Hudson exception after successful build(Hudson exception after successful build)
Hudson exception after successful build [message #1392608] Wed, 02 July 2014 15:29 Go to next message
Raffi Simonian is currently offline Raffi SimonianFriend
Messages: 4
Registered: July 2014
Junior Member
After completion of the build successfully, Hudson throws this exception and sets the build status to Failed, even though the actual product was built successfully. I downloaded and installed Hudson 3.1.2 and it is running on a MacBook Pro:

FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection
at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:566)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:588)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:586)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:505)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:670)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:549)
at hudson.model.Run.run(Run.java:1450)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)

Any ideas how I can fix this error?
Re: Hudson exception after successful build [message #1392837 is a reply to message #1392608] Wed, 02 July 2014 23:00 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 74
Registered: January 2013
Member
Not off the top of my head. Was build running on master or slave? Is it straightforward to try this in 3.2.0 RC1? Thanks!
Re: Hudson exception after successful build [message #1392840 is a reply to message #1392837] Wed, 02 July 2014 23:07 Go to previous messageGo to next message
Raffi Simonian is currently offline Raffi SimonianFriend
Messages: 4
Registered: July 2014
Junior Member
No Message Body
Re: Hudson exception after successful build [message #1392841 is a reply to message #1392840] Wed, 02 July 2014 23:09 Go to previous messageGo to next message
Raffi Simonian is currently offline Raffi SimonianFriend
Messages: 4
Registered: July 2014
Junior Member
It was on the master. I can try on 3.2.0 RC1.
Re: Hudson exception after successful build [message #1392927 is a reply to message #1392837] Thu, 03 July 2014 02:28 Go to previous messageGo to next message
Raffi Simonian is currently offline Raffi SimonianFriend
Messages: 4
Registered: July 2014
Junior Member
WIth 3.2.0 RC1, I get the following exception in the console window in Hudson. No exceptions in the logs, which is a major progress from the previous stable build. This error marks the build as failed, even though the product built successfully as you can see in the first message:

[32mBuild successfully uploaded to TestFlight
FATAL: null
java.lang.LinkageError
at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:631)
at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:566)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:588)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:586)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:505)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:670)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:549)
at hudson.model.Run.run(Run.java:1470)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
Caused by: java.lang.NoSuchMethodException: java.lang.UNIXProcess.destroyProcess(int)
at java.lang.Class.getDeclaredMethod(Class.java:2117)
at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:620)
... 10 more
Re: Hudson exception after successful build [message #1473636 is a reply to message #1392927] Fri, 14 November 2014 20:15 Go to previous messageGo to next message
David Katleman is currently offline David KatlemanFriend
Messages: 1
Registered: November 2014
Junior Member
We started using JDK8 (actually 8u5) and started running into this problem.

Hudson 3.2.1, running on Solaris 10.

Any job that is killed on the master runs into this message

FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection
at hudson.util.ProcessTree$Unix.get(ProcessTree.java:494)
at hudson.util.ProcessTree.killAll(ProcessTree.java:135)
at hudson.Proc$LocalProc.destroy(Proc.java:284)
at hudson.Proc$LocalProc.join(Proc.java:257)
at hudson.Launcher$ProcStarter.join(Launcher.java:273)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:79)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:54)
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)


If we switch back to JDK 7u, don't see the problem.
Re: Hudson exception after successful build [message #1477728 is a reply to message #1473636] Tue, 18 November 2014 04:28 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 470
Registered: August 2011
Location: Fremont, CA USA
Senior Member
We are yet to certify Hudson to run with out glitch using JDK 8. java.lang.NoclassDefFoundError suggests hudson.util.ProcessTree may be using some JDK internal classes which are gone in JDK 8. We will look in to this.

Winston Prakash
Eclipse Hudson team
Previous Topic:"Build when Maven dependencies have been updated" uses transitive dependencies?
Next Topic:Hudson with HTTPS
Goto Forum:
  


Current Time: Sat Mar 07 00:22:17 GMT 2015

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

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