Jenkins在Windows 2008 Server上抛出了一个hudson.util.IOException2

时间:2014-06-03 00:13:54

标签: git jenkins classnotfoundexception

Jenkins在Windows 2008 Server上抛出了一个hudson.util.IOException2。看起来它无法从GIT中提取Web驱动程序代码存储库,并且此作业的Jenkins Workspace目录为空。

詹金斯版本:Jenkins ver。 1.530 Windows上的JRE:1.7.0.60

解决方案尝试:禁用从站并重新启动它.JRE版本在主站和从站上不匹配,但我有其他机器有JRE不匹配,并且这些从站上的作业仍然正常运行。

            Entire Stack trace: 
            ----------
                       Using strategy: Default
                       hudson.util.IOException2: remote file operation failed: c:\Jenkins\workspace\Dirty_Smoke_Test_IE at hudson.remoting.Channel@668df1c3:nybqaapp2
                        at hudson.FilePath.act(FilePath.java:905)
                        at hudson.FilePath.act(FilePath.java:882)
                at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:948)
                at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1114)
                at hudson.model.AbstractProject.checkout(AbstractProject.java:1408)
                at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:657)
                at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
                at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
                at hudson.model.Run.execute(Run.java:1603)
                at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
                at hudson.model.ResourceController.execute(ResourceController.java:88)
                at hudson.model.Executor.run(Executor.java:246)
            Caused by: java.io.IOException: Remote call on nybqaapp2 failed
                at hudson.remoting.Channel.call(Channel.java:723)
                at hudson.FilePath.act(FilePath.java:898)
                ... 11 more
            Caused by: java.lang.LinkageError: Failed to load hudson.plugins.git.GitSCM
                at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:305)
                at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:231)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at java.lang.Class.getDeclaredFields0(Native Method)
                at java.lang.Class.privateGetDeclaredFields(Unknown Source)
                at java.lang.Class.getDeclaredField(Unknown Source)
                at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
                at java.io.ObjectStreamClass.access$700(Unknown Source)
                at java.io.ObjectStreamClass$2.run(Unknown Source)
                at java.io.ObjectStreamClass$2.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.io.ObjectStreamClass.<init>(Unknown Source)
                at java.io.ObjectStreamClass.lookup(Unknown Source)
                at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
                at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
                at java.io.ObjectInputStream.readClassDesc(Unknown Source)
                at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
                at java.io.ObjectInputStream.readObject0(Unknown Source)
                at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
                at java.io.ObjectInputStream.readSerialData(Unknown Source)
                at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
                at java.io.ObjectInputStream.readObject0(Unknown Source)
                at java.io.ObjectInputStream.readObject(Unknown Source)
                at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
                at hudson.remoting.UserRequest.perform(UserRequest.java:98)
                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.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:63)
                at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.NoClassDefFoundError: hudson/plugins/git/GitSCMBackwardCompatibility
                at java.lang.ClassLoader.defineClass1(Native Method)
                at java.lang.ClassLoader.defineClass(Unknown Source)
                at java.lang.ClassLoader.defineClass(Unknown Source)
                at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:301)
                ... 33 more
            Caused by: java.lang.ClassNotFoundException: hudson.plugins.git.GitSCMBackwardCompatibility
                at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
                at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
                at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
                at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:721)
                at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:763)
                at sun.reflect.GeneratedMethodAccessor1450.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:601)
                at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
                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:334)
                at java.util.concurrent.FutureTask.run(FutureTask.java:166)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                at java.lang.Thread.run(Thread.java:722)

1 个答案:

答案 0 :(得分:0)

进入类似的问题,

这里是我如何解决问题,禁用奴隶没有工作,删除工作区,断开奴隶和开始工作(我不记得,如果我手动启用奴隶或它自动发生)。它开始工作了。