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

findbugs native parser does not work on remote machines

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • findbugs-plugin
    • None
    • Platform: All, OS: All

    Description

      findbugs native parser does not work on remote machines due to class loader
      problems.

      Publishing Javadoc
      Recording test results
      Collecting pmd analysis files...
      No warnings have been found.
      Collecting findbugs analysis files...
      FATAL: remote file operation failed
      hudson.util.IOException2: remote file operation failed
      at hudson.FilePath.act(FilePath.java:308)
      at
      hudson.plugins.findbugs.FindBugsPublisher.parseAllWorkspaceFiles(FindBugsPublisher.java:147)
      at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:85)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:302)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:290)
      at hudson.model.Build$RunnerImpl.post2(Build.java:135)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:275)
      at hudson.model.Run.run(Run.java:767)
      at hudson.model.Build.run(Build.java:102)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:71)
      Caused by: java.io.IOException: Remote call failed
      at hudson.remoting.Channel.call(Channel.java:399)
      at hudson.FilePath.act(FilePath.java:305)
      ... 10 more
      Caused by: java.lang.VerifyError: Cannot inherit from final class
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
      at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:53)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      at java.lang.Class.getDeclaredMethod(Class.java:1935)
      at
      edu.umd.cs.findbugs.DetectorFactory$ReflectionDetectorCreator.<init>(DetectorFactory.java:51)
      at edu.umd.cs.findbugs.DetectorFactory.<init>(DetectorFactory.java:130)
      at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:241)
      at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:96)
      at
      edu.umd.cs.findbugs.DetectorFactoryCollection$1.run(DetectorFactoryCollection.java:279)
      at
      edu.umd.cs.findbugs.DetectorFactoryCollection$1.run(DetectorFactoryCollection.java:278)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(DetectorFactoryCollection.java:275)
      at
      edu.umd.cs.findbugs.DetectorFactoryCollection.ensureLoaded(DetectorFactoryCollection.java:219)
      at
      edu.umd.cs.findbugs.DetectorFactoryCollection.instance(DetectorFactoryCollection.java:102)
      at edu.umd.cs.findbugs.I18N.lookupBugPattern(I18N.java:92)
      at edu.umd.cs.findbugs.BugInstance.<init>(BugInstance.java:144)
      at
      edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:183)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at
      org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
      Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
      Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:232)
      at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:205)
      at
      hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:61)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.parseFile(FindBugsCollector.java:133)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.invoke(FindBugsCollector.java:94)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.invoke(FindBugsCollector.java:28)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1095)
      at hudson.remoting.UserRequest.perform(UserRequest.java:69)
      at hudson.remoting.UserRequest.perform(UserRequest.java:23)
      at hudson.remoting.Request$2.run(Request.java:200)
      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:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        Issue Links

          Activity

            drulli Ulli Hafner added a comment -

            should be fixed with issue 1991.

            drulli Ulli Hafner added a comment - should be fixed with issue 1991.

            People

              drulli Ulli Hafner
              drulli Ulli Hafner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: