Transcient error on slave: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer

2,173 views
Skip to first unread message

Jerome Lacoste

unread,
Sep 5, 2012, 4:21:44 AM9/5/12
to jenkins...@googlegroups.com
For the record, I encountered the following exception on a slave on Amazon ec2 (Windows 2008 R2 64bits).

Restarting the Jenkins service solved it.


hudson.util.IOException2: remote file operation failed: c:\jenkins\workspace\Project-1.x-win32_wix at hudson.remoting.Channel@1325e8eb:ec2-windows-01
at hudson.FilePath.act(FilePath.java:838)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1502)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: java.io.IOException: Remote call on ec2-windows-01 failed
at hudson.remoting.Channel.call(Channel.java:672)
at hudson.FilePath.act(FilePath.java:831)
... 10 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer
at hudson.Launcher$LocalLauncher.<init>(Launcher.java:691)
at hudson.plugins.git.GitAPI.<init>(GitAPI.java:65)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1072)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:60)
at java.lang.Thread.run(Unknown Source)
Archiving artifacts

MrSAMA

unread,
Jul 16, 2013, 11:30:58 AM7/16/13
to jenkins...@googlegroups.com
I tried restarting the Jenkins service, but doesn't work, we are using
Jenkins 1.474 (Linux enviroment) for both Master and Slave.

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not initialize class jenkins.model.Jenkins$MasterComputer
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: Could not initialize class
jenkins.model.Jenkins$MasterComputer
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.FilePath.copyTo(FilePath.java:1594)
at hudson.FilePath.copyTo(FilePath.java:1568)
at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:231)
at
hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:108)
at hudson.maven.Maven2Builder.postModule(Maven2Builder.java:127)
at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:327)
at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:285)
at
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at hudson.maven.agent.Main.launch(Main.java:185)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Jul 15 17:20:00 EDT 2013
[INFO] Final Memory: 21M/567M
[INFO]
------------------------------------------------------------------------
channel stopped
Finished: FAILURE



--
View this message in context: http://jenkins-ci.361315.n4.nabble.com/Transcient-error-on-slave-java-lang-NoClassDefFoundError-Could-not-initialize-class-jenkins-model-Jer-tp4639213p4673147.html
Sent from the Jenkins users mailing list archive at Nabble.com.

jothibas...@verizon.com

unread,
Dec 13, 2017, 8:43:09 AM12/13/17
to Jenkins Users
we are getting the same issue, it is resolved once we restarted the slave service in the unix client.

but i want to understand what is the root cause for this problem, because in my case it is failing the git clone operations it self.
Reply all
Reply to author
Forward
0 new messages