Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 85
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 messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
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
Re: Hudson exception after successful build [message #1727621 is a reply to message #1477728] Thu, 24 March 2016 13:43 Go to previous messageGo to next message
Andreas Sewe is currently offline Andreas SeweFriend
Messages: 111
Registered: June 2013
Senior Member
Quote:
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.


Any luck with this? We (Eclipse Code Recommenders) are facing this issue with our Eclipse supplied HIPP instance (running Hudson 3.2.2).

Is there a Bugzilla issue I can follow?
Re: Hudson exception after successful build [message #1809148 is a reply to message #1727621] Wed, 10 July 2019 08:30 Go to previous message
Randy Bonnette is currently offline Randy BonnetteFriend
Messages: 6
Registered: May 2019
Junior Member
Quote:

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 essays classes which are gone in JDK 8. We will look in to this.


I had the similar issue after installing Delivery Pipeline 1.0.1 . It was a java.lang.LinkageError (bug reported on Jenkins).

[Updated on: Wed, 10 July 2019 08:31]

Report message to a moderator

Previous Topic:ClassNotFoundException on Hudson 3.3.3 using Maven 3.1.1
Next Topic:unable to install hudson with weblogic12.2.1.2
Goto Forum:
  


Current Time: Fri Oct 04 22:20:59 GMT 2024

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

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

Back to the top