问题描述
官方文档推荐master 使用 jdk8,由于一顿瞎操作,将jdk版本升级到9。在slave使用jdk版本为8,在出发构建时发现,出现以下错误
1:16 [WS-CLEANUP] Done
11:11:16 The recommended git tool is: NONE
11:11:24 Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to android_work
11:11:24 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
11:11:24 at hudson.remoting.Request.call(Request.java:198)
11:11:24 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:289)
11:11:24 at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
11:11:24 at hudson.remoting.RemoteClassLoader.prefetchClassReference(RemoteClassLoader.java:303)
11:11:24 at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:214)
11:11:24 at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:184)
11:11:24 at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
11:11:24 at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
11:11:24 at com.thoughtworks.xstream.core.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:136)
11:11:24 at java.lang.Class.forName0(Native Method)
11:11:24 at java.lang.Class.forName(Class.java:348)
11:11:24 at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:1061)
11:11:24 at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:998)
11:11:24 at hudson.util.XStream2.setupConverters(XStream2.java:216)
11:11:24 at com.thoughtworks.xstream.XStream.<init>(XStream.java:548)
11:11:24 at com.thoughtworks.xstream.XStream.<init>(XStream.java:476)
11:11:24 at com.thoughtworks.xstream.XStream.<init>(XStream.java:450)
11:11:24 at com.thoughtworks.xstream.XStream.<init>(XStream.java:403)
11:11:24 at com.thoughtworks.xstream.XStream.<init>(XStream.java:377)
11:11:24 at hudson.util.XStream2.<init>(XStream2.java:113)
11:11:24 at hudson.ProxyConfiguration.<clinit>(ProxyConfiguration.java:392)
11:11:24 at java.lang.Class.forName0(Native Method)
11:11:24 at java.lang.Class.forName(Class.java:264)
11:11:24 at com.sun.proxy.$Proxy25.<clinit>(Unknown Source)
11:11:24 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
11:11:24 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
11:11:24 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
11:11:24 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
11:11:24 at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)
11:11:24 at hudson.remoting.RemoteInvocationHandler.wrap(RemoteInvocationHandler.java:169)
11:11:24 at hudson.remoting.Channel.export(Channel.java:813)
11:11:24 at hudson.remoting.Channel.export(Channel.java:776)
11:11:24 at org.jenkinsci.plugins.gitclient.LegacyCompatibleGitAPIImpl.writeReplace(LegacyCompatibleGitAPIImpl.java:204)
11:11:24 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:11:24 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
11:11:24 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:11:24 at java.lang.reflect.Method.invoke(Method.java:498)
11:11:24 at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1244)
11:11:24 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1136)
11:11:24 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
11:11:24 at hudson.remoting.UserRequest._serialize(UserRequest.java:263)
11:11:24 at hudson.remoting.UserRequest.serialize(UserRequest.java:272)
11:11:24 at hudson.remoting.UserRequest.perform(UserRequest.java:222)
11:11:24 at hudson.remoting.UserRequest.perform(UserRequest.java:54)
11:11:24 at hudson.remoting.Request$2.run(Request.java:375)
11:11:24 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
11:11:24 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
11:11:24 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
11:11:24 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
11:11:24 at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:118)
11:11:24 at java.lang.Thread.run(Thread.java:748)
解决方法
master 上jdk版本降级到官方推荐jdk8版本后,问题解决