-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 1.409, Linux Slaves - OS: Centos 5.3 & Ubuntu 10.10 (Slave Client 1.409)
-
Powered by SuggestiMate
When attempting to publish FindBugs report from a Linux slave, I am receiving the following exception:
[FINDBUGS] Collecting findbugs analysis files...
ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception
hudson.util.IOException2: remote file operation failed: /apps/hudson/workspace/MyFindBugsJob at hudson.remoting.Channel@93e684:my-linux-slave
at hudson.FilePath.act(FilePath.java:752)
at hudson.FilePath.act(FilePath.java:738)
at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:135)
at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:281)
at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:625)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:572)
at hudson.model.Run.run(Run.java:1386)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.io.IOException: Remote call on dev-linbuild01 failed
at hudson.remoting.Channel.call(Channel.java:652)
at hudson.FilePath.act(FilePath.java:745)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class edu.umd.cs.findbugs.SortedBugCollection
at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242)
at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196)
at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133)
at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93)
at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:197)
at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:176)
at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:126)
at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:29)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1956)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:270)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
- is duplicated by
-
JENKINS-18394 IncompatibleClassChangeError after upgrade to 1.519
-
- Resolved
-
- is related to
-
JENKINS-9815 Findbugs can not publish reports on Weblogic 10.3.0
-
- Resolved
-
[JENKINS-9676] Cannot publish FindBugs reports from remote node
Is Jenkins deployed in a container? (Maybe this is related to JENKINS-9815)
Jenkins is deployed in a Tomcat 6 container. I have been able to get a small project (less than 10,000 lines of code) to run FindBugs on a slave and report back to the master. My larger projects (greater than 20,000 lines of code) fail to report back.
After upgrading to 1.418, I'm getting the same error. Strangely, reverting to 1.417 solves it, which is strange, since this issue is older than that...
[FINDBUGS] Collecting findbugs analysis files... ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: /buildserver/workspace/TRUNK_VOYAGEINFO at hudson.remoting.Channel@49d8fe:buildagent094 at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:160) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:310) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:639) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:617) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:586) at hudson.model.Run.run(Run.java:1400) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: java.io.IOException: Remote call on buildagent094 failed at hudson.remoting.Channel.call(Channel.java:672) at hudson.FilePath.act(FilePath.java:747) ... 13 more Caused by: java.lang.ClassNotFoundException: Failed to deserialize the Callable object. Perhaps you needed to implement DelegatingCallable? at hudson.remoting.UserRequest.perform(UserRequest.java:100) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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 hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: hudson.plugins.findbugs.parser.FindBugsParser at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at hudson.remoting.ObjectInputStreamEx.resolveClass(ObjectInputStreamEx.java:50) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.UserRequest.deserialize(UserRequest.java:178) at hudson.remoting.UserRequest.perform(UserRequest.java:98) ... 9 more
Can you please check if your slave.jar is up to date? Typically the latter error is caused by an outdated slave.jar.
Is this bug still present? Quite a while ago I upgraded to the new findbugs version 2.0.0. Maybe this version handles fixes that bug.
The issue is still present.
Jenkins: 1.520
FindBugs Plug-in: 4.48
Static Analysis Collector Plug-in: 1.35
We are using Findbugs 2.0.
Everything is fine if the job runs on the master, but fails on the slave.
Both master and slave are windows machines. Jenkins itself uses the default winstone container. Slave.jar is up to date.
[FINDBUGS] Collecting findbugs analysis files... ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: c:\jenkins_home\workspace\CursorGUI at hudson.remoting.Channel@1489c411:VM-BUILDOS at hudson.FilePath.act(FilePath.java:901) at hudson.FilePath.act(FilePath.java:878) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:161) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:146) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:331) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1618) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) Caused by: java.io.IOException: Remote call on VM-BUILDOS failed at hudson.remoting.Channel.call(Channel.java:731) at hudson.FilePath.act(FilePath.java:894) ... 13 more Caused by: java.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:705) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:759) at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:282) 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:662)
Just to add more data to the bug. I am seeing this with an Jenkins server on Linux and the build slave is also running Linux. The Junit and Cobertura publishers are also installed and they have no problem publishing the results.
Jenkins ver. 1.519
Jenkins is running with the Jenkins standard Winstone container
findbugs plugin for Jenkins 4.48
findbugs-2.0.2
Ant 1.9.1
Stack trace:
[FINDBUGS] Collecting findbugs analysis files...
ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception
hudson.util.IOException2: remote file operation failed: /home/jenkinsroot/workspace/findbugs-java at hudson.remoting.Channel@3a421096:linuxbuildslave
at hudson.FilePath.act(FilePath.java:901)
at hudson.FilePath.act(FilePath.java:878)
at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:161)
at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:146)
at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:331)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
at hudson.model.Run.execute(Run.java:1618)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:242)
Caused by: java.io.IOException: Remote call on linuxserver failed
at hudson.remoting.Channel.call(Channel.java:731)
at hudson.FilePath.act(FilePath.java:894)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class edu.umd.cs.findbugs.SortedBugCollection
at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:266)
at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:208)
at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:145)
at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:105)
at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:306)
at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:264)
at hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:215)
at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:184)
at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2388)
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: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)
Recording test results
Finished: FAILURE
I'm suddenly getting this as well. It started without any updates to Jenkins, the FindBugs plug-in, or FindBugs itself.
If re-opening issues is not the standard let me know, and I'll file a new issue.
Jenkins: 1.547
FindBugs Plug-in: 4.51
FindBugs: 2.5.3
[FINDBUGS] Collecting findbugs analysis files... ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception java.io.IOException: remote file operation failed: /home/hudson_slave/workspace/trunk at hudson.remoting.Channel@1e35fdf3:build-trunk.local at hudson.FilePath.act(FilePath.java:910) at hudson.FilePath.act(FilePath.java:887) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:161) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:144) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:333) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) at hudson.model.Run.execute(Run.java:1703) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: Remote call on build-trunk.local failed at hudson.remoting.Channel.call(Channel.java:731) at hudson.FilePath.act(FilePath.java:903) ... 13 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class edu.umd.cs.findbugs.SortedBugCollection at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:282) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:221) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:159) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:138) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:105) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:306) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:264) at hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:215) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:184) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2461) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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:662)
When I went to the project configuration page for the project in question the "LOADING" mask remained stuck over half of the options. I restarted the Jenkins server, launched another build, and it completed successfully without the error above.
@Ian: yes it would be better to create a new issue as the environment information does not match in your case.
1.547 is quite new, did it work in 1.547 and suddenly stopped? Or is the upgrade to Jenkins the reason? Does the problem disappear if you are using the LTS version? Is this a build on the slave?
@Ulli: It did work in 1.547, and then stopped. The build is on a slave. It went away with a server restart, and I cannot reproduce it again. As such I will not likely have a chance to try the LTS version. Feel free to resolve this issue. I will create new issues for such things in the future. Thanks!
Ok, then I'm closing this issue. Please create a new one if that happens again.
Hmm, seems that some classes are not transferred to the slave. Which version of the findbugs plug-in are you using?