Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18405

Findbugs plugin unable to run on slaves with 1.519

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core, (1)
      findbugs-plugin
    • None
    • Ubuntu Linux 12.04 LTS (both master and ssh-slave) on x64 hardware
      Jenkins 1.519

      After upgrading to 1.519 the findbugs plugin was no longer able to perform analysis on the result file.
      I reverted back to 1.518 and it worked again.

      It's an ant based job. Cleaning the slave completely had no effect.

      14:13:08 [FINDBUGS] Collecting findbugs analysis files...
      14:13:15 ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception
      14:13:15 hudson.util.IOException2: remote file operation failed: /home/builder/workspace/SCS at hudson.remoting.Channel@9b62a7e:mposerv10
      14:13:15 	at hudson.FilePath.act(FilePath.java:901)
      14:13:15 	at hudson.FilePath.act(FilePath.java:878)
      14:13:15 	at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:161)
      14:13:15 	at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:146)
      14:13:15 	at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:331)
      14:13:15 	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      14:13:15 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      14:13:15 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      14:13:15 	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      14:13:15 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      14:13:15 	at hudson.model.Run.execute(Run.java:1618)
      14:13:15 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      14:13:15 	at hudson.model.ResourceController.execute(ResourceController.java:88)
      14:13:15 	at hudson.model.Executor.run(Executor.java:242)
      14:13:15 Caused by: java.io.IOException: Remote call on mposerv10 failed
      14:13:15 	at hudson.remoting.Channel.call(Channel.java:731)
      14:13:15 	at hudson.FilePath.act(FilePath.java:894)
      14:13:15 	... 13 more
      14:13:15 Caused by: java.lang.IncompatibleClassChangeError: Implementing class
      14:13:15 	at java.lang.ClassLoader.defineClass1(Native Method)
      14:13:15 	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
      14:13:15 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      14:13:15 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
      14:13:15 	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
      14:13:15 	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
      14:13:15 	at java.security.AccessController.doPrivileged(Native Method)
      14:13:15 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      14:13:15 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      14:13:15 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      14:13:15 	at java.lang.ClassLoader.defineClass1(Native Method)
      14:13:15 	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
      14:13:15 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      14:13:15 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
      14:13:15 	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
      14:13:15 	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
      14:13:15 	at java.security.AccessController.doPrivileged(Native Method)
      14:13:15 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      14:13:15 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      14:13:15 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      14:13:15 	at java.lang.ClassLoader.defineClass1(Native Method)
      14:13:15 	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
      14:13:15 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      14:13:15 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
      14:13:15 	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
      14:13:15 	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
      14:13:15 	at java.security.AccessController.doPrivileged(Native Method)
      14:13:15 	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      14:13:15 	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      14:13:15 	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      14:13:15 	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:705)
      14:13:15 	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:759)
      14:13:15 	at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      14:13:15 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      14:13:15 	at java.lang.reflect.Method.invoke(Method.java:616)
      14:13:15 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:282)
      14:13:15 	at hudson.remoting.Request$2.run(Request.java:326)
      14:13:15 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      14:13:15 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      14:13:15 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      14:13:15 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      14:13:15 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      14:13:15 	at java.lang.Thread.run(Thread.java:679)
      

          [JENKINS-18405] Findbugs plugin unable to run on slaves with 1.519

          Bob Tiernay added a comment -

          Same issue on Debian Squeeze with maven based build. Fixed by downgrading to 1.518 as well.

          Bob Tiernay added a comment - Same issue on Debian Squeeze with maven based build. Fixed by downgrading to 1.518 as well.

          I have the same problem.

          Sergey Grigoriev added a comment - I have the same problem.

          Shreyas Dube added a comment - - edited

          Me too.

          Update 0: Well, rolling back to 1.518 didn't fix it either. Must be a Monday thing.

          [FINDBUGS] Collecting findbugs analysis files...
          
          ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception
          hudson.util.IOException2: remote file operation failed: /work/jenkins/workspace/portal-9.2.0 at hudson.remoting.Channel@48696003:macbookPro
          	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:1601)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:241)
          Caused by: java.io.IOException: Remote call on macbookPro failed
          	at hudson.remoting.Channel.call(Channel.java:681)
          	at hudson.FilePath.act(FilePath.java:894)
          	... 13 more
          Caused by: java.lang.ExceptionInInitializerError
          	at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:360)
          	at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72)
          	at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55)
          	at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:189)
          	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 hudson.remoting.Engine$1$1.run(Engine.java:61)
          	at java.lang.Thread.run(Thread.java:722)
          Caused by: java.lang.IllegalArgumentException: Unknown url shema: file:/var/folders/rf/t8zfs01j1p18rsl7pqwlr348000zw2/T/jenkins-remoting1866538122575224852/FindBugs.class
          	at edu.umd.cs.findbugs.PluginLoader.computeCoreUrl(PluginLoader.java:403)
          	at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:350)
          	at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1419)
          	at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1373)
          	at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:156)
          	... 24 more
          

          Update 1: Scratch Update 0. I fixed it by getting the new slave.jar and restarting the slave. I still see issues with 1.519.

          Shreyas Dube added a comment - - edited Me too. Update 0: Well, rolling back to 1.518 didn't fix it either. Must be a Monday thing. [FINDBUGS] Collecting findbugs analysis files... ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: /work/jenkins/workspace/portal-9.2.0 at hudson.remoting.Channel@48696003:macbookPro 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:1601) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Caused by: java.io.IOException: Remote call on macbookPro failed at hudson.remoting.Channel.call(Channel.java:681) at hudson.FilePath.act(FilePath.java:894) ... 13 more Caused by: java.lang.ExceptionInInitializerError at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:360) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:189) 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 hudson.remoting.Engine$1$1.run(Engine.java:61) at java.lang. Thread .run( Thread .java:722) Caused by: java.lang.IllegalArgumentException: Unknown url shema: file:/ var /folders/rf/t8zfs01j1p18rsl7pqwlr348000zw2/T/jenkins-remoting1866538122575224852/FindBugs.class at edu.umd.cs.findbugs.PluginLoader.computeCoreUrl(PluginLoader.java:403) at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:350) at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1419) at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1373) at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:156) ... 24 more Update 1: Scratch Update 0. I fixed it by getting the new slave.jar and restarting the slave. I still see issues with 1.519.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/remoting/RemoteClassLoader.java
          http://jenkins-ci.org/commit/remoting/b2836fc11916ef05e2513e74cefdefd225eff534
          Log:
          JENKINS-18405 added diagnosis

          We'd like to know which class is failng to load.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/remoting/RemoteClassLoader.java http://jenkins-ci.org/commit/remoting/b2836fc11916ef05e2513e74cefdefd225eff534 Log: JENKINS-18405 added diagnosis We'd like to know which class is failng to load.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/remoting/ResourceImageDirect.java
          http://jenkins-ci.org/commit/remoting/781ccaec2e26797bc8fa9e6c982a031988d381e0
          Log:
          JENKINS-18405

          This fixes the 'Unknown url shema' error in the FindBugs plugin.

          Before JENKINS-15120, we used to faithfully recreate the expected
          resource path in a temporary resource file. For some reasons, we lost
          that. This change brings it back by recreting the directory structure.

          Note that this change doesn't address
          "java.lang.IncompatibleClassChangeError: Implementing class" error
          reported also in JENKINS-18405. That is still under investigation.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/remoting/ResourceImageDirect.java http://jenkins-ci.org/commit/remoting/781ccaec2e26797bc8fa9e6c982a031988d381e0 Log: JENKINS-18405 This fixes the 'Unknown url shema' error in the FindBugs plugin. Before JENKINS-15120 , we used to faithfully recreate the expected resource path in a temporary resource file. For some reasons, we lost that. This change brings it back by recreting the directory structure. Note that this change doesn't address "java.lang.IncompatibleClassChangeError: Implementing class" error reported also in JENKINS-18405 . That is still under investigation.

          "java.lang.IncompatibleClassChangeError: Implementing class" is tracked in JENKINS-18394. Therefore commit 781ccaec resolves this issue.

          Kohsuke Kawaguchi added a comment - "java.lang.IncompatibleClassChangeError: Implementing class" is tracked in JENKINS-18394 . Therefore commit 781ccaec resolves this issue.

          The fix is targeted to 1.521.

          Kohsuke Kawaguchi added a comment - The fix is targeted to 1.521.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          pom.xml
          http://jenkins-ci.org/commit/jenkins/2ad427f6c3d187c5b330151b85e1a578e340cf2a
          Log:
          [FIXED JENKINS-18349 JENKINS-18405]

          Integrated the fix toward 1.521.

          Compare: https://github.com/jenkinsci/jenkins/compare/0b8917b34479...2ad427f6c3d1

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html pom.xml http://jenkins-ci.org/commit/jenkins/2ad427f6c3d187c5b330151b85e1a578e340cf2a Log: [FIXED JENKINS-18349 JENKINS-18405] Integrated the fix toward 1.521. Compare: https://github.com/jenkinsci/jenkins/compare/0b8917b34479...2ad427f6c3d1

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2663
          [FIXED JENKINS-18349 JENKINS-18405] (Revision 2ad427f6c3d187c5b330151b85e1a578e340cf2a)

          Result = SUCCESS
          kohsuke : 2ad427f6c3d187c5b330151b85e1a578e340cf2a
          Files :

          • pom.xml
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #2663 [FIXED JENKINS-18349 JENKINS-18405] (Revision 2ad427f6c3d187c5b330151b85e1a578e340cf2a) Result = SUCCESS kohsuke : 2ad427f6c3d187c5b330151b85e1a578e340cf2a Files : pom.xml changelog.html

          James Howe added a comment -

          This is still cited as an issue in 521, 522 and 523 on the changelog.

          James Howe added a comment - This is still cited as an issue in 521, 522 and 523 on the changelog.

            kohsuke Kohsuke Kawaguchi
            elmuerte Michiel Hendriks
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: