Had this problem when accidentally jenkins agent stared with java 16, changed JAVA_HOME var in agent config fram "latest" to jre8 ant problem gone.
On Thursday, February 11, 2021 at 12:06:18 PM UTC+2 amedee....@gmail.com wrote: > Jenkins version: 2.263.3 > Jenkins master: Linux > Jenkins node: Windows Server 2019 > Job: multibranch pipeline with Maven build steps > > Build fails with > > hudson.remoting.Channel$CallSiteStackTrace: Remote call to > aws-windows-eu-central-1 > at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800) > at > hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) > at hudson.remoting.Channel.call(Channel.java:1001) > at hudson.FilePath.act(FilePath.java:1157) > at hudson.FilePath.act(FilePath.java:1146) > at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:121) > at hudson.plugins.git.GitSCM.createClient(GitSCM.java:907) > at hudson.plugins.git.GitSCM.createClient(GitSCM.java:838) > at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1291) > at > org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125) > at > org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93) > at > org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80) > at > org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > java.lang.NoClassDefFoundError: Could not initialize class > com.sun.proxy.$Proxy9 > at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:490) > at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1022) > at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1008) > at > hudson.remoting.RemoteInvocationHandler.wrap(RemoteInvocationHandler.java:169) > at hudson.remoting.Channel.export(Channel.java:813) > at hudson.remoting.Channel.export(Channel.java:776) > at > org.jenkinsci.plugins.gitclient.LegacyCompatibleGitAPIImpl.writeReplace(LegacyCompatibleGitAPIImpl.java:204) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:566) > at > java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1235) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1137) > at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349) > at hudson.remoting.UserRequest._serialize(UserRequest.java:263) > at hudson.remoting.UserRequest.serialize(UserRequest.java:272) > at hudson.remoting.UserRequest.perform(UserRequest.java:222) > at hudson.remoting.UserRequest.perform(UserRequest.java:54) > at hudson.remoting.Request$2.run(Request.java:375) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73) > at java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.lang.Thread.run(Thread.java:834) > Caused: java.io.IOException: Remote call on aws-windows-eu-central-1 failed > at hudson.remoting.Channel.call(Channel.java:1007) > at hudson.FilePath.act(FilePath.java:1157) > at hudson.FilePath.act(FilePath.java:1146) > at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:121) > at hudson.plugins.git.GitSCM.createClient(GitSCM.java:907) > at hudson.plugins.git.GitSCM.createClient(GitSCM.java:838) > at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1291) > at > org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125) > at > org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93) > at > org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80) > at > org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > > > > And in the node log: > > SEVERE: Failed to load Jenkins.class > java.lang.NoClassDefFoundError: Could not initialize class > com.thoughtworks.xstream.core.util.CompositeClassLoader > at com.thoughtworks.xstream.XStream.<init>(XStream.java:411) > at com.thoughtworks.xstream.XStream.<init>(XStream.java:378) > at hudson.util.XStream2.<init>(XStream2.java:113) > at jenkins.model.Jenkins.<clinit>(Jenkins.java:5385) > at > jenkins.agents.AgentComputerUtil.getChannelToMaster(AgentComputerUtil.java:48) > at hudson.util.ProcessTree.get(ProcessTree.java:432) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1164) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1155) > at hudson.remoting.UserRequest.perform(UserRequest.java:211) > at hudson.remoting.UserRequest.perform(UserRequest.java:54) > at hudson.remoting.Request$2.run(Request.java:375) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > > Feb 11, 2021 9:36:50 AM hudson.remoting.UserRequest perform > WARNING: LinkageError while performing > UserRequest:hudson.Launcher$RemoteLauncher$KillTask@61519fef > java.lang.NoClassDefFoundError: Could not initialize class > com.thoughtworks.xstream.core.util.CompositeClassLoader > at com.thoughtworks.xstream.XStream.<init>(XStream.java:411) > at com.thoughtworks.xstream.XStream.<init>(XStream.java:378) > at hudson.util.XStream2.<init>(XStream2.java:113) > at jenkins.model.Jenkins.<clinit>(Jenkins.java:5385) > at > jenkins.agents.AgentComputerUtil.getChannelToMaster(AgentComputerUtil.java:48) > at hudson.util.ProcessTree.get(ProcessTree.java:432) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1164) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1155) > at hudson.remoting.UserRequest.perform(UserRequest.java:211) > at hudson.remoting.UserRequest.perform(UserRequest.java:54) > at hudson.remoting.Request$2.run(Request.java:375) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > > Feb 11, 2021 9:41:31 AM hudson.remoting.UserRequest perform > WARNING: LinkageError while performing > UserRequest:hudson.Launcher$RemoteLauncher$KillTask@74b21153 > java.lang.NoClassDefFoundError: Could not initialize class > jenkins.model.Jenkins > at > jenkins.agents.AgentComputerUtil.getChannelToMaster(AgentComputerUtil.java:48) > at hudson.util.ProcessTree.get(ProcessTree.java:432) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1164) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1155) > at hudson.remoting.UserRequest.perform(UserRequest.java:211) > at hudson.remoting.UserRequest.perform(UserRequest.java:54) > at hudson.remoting.Request$2.run(Request.java:375) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > > Feb 11, 2021 9:50:50 AM hudson.remoting.UserRequest perform > WARNING: LinkageError while performing > UserRequest:hudson.Launcher$RemoteLauncher$KillTask@2487c4e4 > java.lang.NoClassDefFoundError: Could not initialize class > jenkins.model.Jenkins > at > jenkins.agents.AgentComputerUtil.getChannelToMaster(AgentComputerUtil.java:48) > at hudson.util.ProcessTree.get(ProcessTree.java:432) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1164) > at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1155) > at hudson.remoting.UserRequest.perform(UserRequest.java:211) > at hudson.remoting.UserRequest.perform(UserRequest.java:54) > at hudson.remoting.Request$2.run(Request.java:375) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > > Any ideas? > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/90d8096a-f651-4e1f-9bc4-44fee0af4dcen%40googlegroups.com.