Jenkins错误-对xxxxxxxx的远程调用失败

lnvxswe2  于 12个月前  发布在  Jenkins
关注(0)|答案(2)|浏览(130)
FATAL: Remote call on Harris MacBook Pro failed
java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection
    at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647)
    at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668)
    at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589)
    at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:996)
    at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:987)
    at hudson.remoting.UserRequest.perform(UserRequest.java:153)
    at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    at hudson.remoting.Request$2.run(Request.java:336)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:844)
    at ......remote call to Harris MacBook Pro(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
    at hudson.remoting.Channel.call(Channel.java:830)
Caused: java.io.IOException: Remote call on Harris MacBook Pro failed
    at hudson.remoting.Channel.call(Channel.java:838)
    at hudson.Launcher$RemoteLauncher.kill(Launcher.java:984)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:496)
    at hudson.model.Run.execute(Run.java:1735)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:405)

字符串
我不明白这个问题。有人能帮助我吗?我的工作做得很好,但之后我收到了这个问题

iyfamqjs

iyfamqjs1#

检查Java版本,如this ticket
在运行Java 1.9(build 9_181)的Mac OS X High Sierra(10.13.1)上看到同样的事情:

$ java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

字符串
每当shell用于执行其他进程时,就会发生这种情况,例如fastlane用于构建iOS应用程序,这反过来又调用了xcode。
我将Java降级到1.8u144,并能够构建。
Java 9与Jenkins的兼容性在JENKINS-40689中遵循。

enxuqcxy

enxuqcxy2#

我最近也遇到了同样的问题。但在我的情况下,我看到这只发生在特定的Slave中。我只重新启动了Slave,它就被修复了:

$ sudo reboot

字符串

相关问题