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

Findbugs 2.8 plugin intermittently throws exception when parsing new findbugsXML.xml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      At the end of a build using the Findbugs 2.8 Hudson plugin to parse the new
      findbugsXML.xml file, the plugin throws: java.lang.VerifyError: Cannot inherit
      from final class.

      This error does not occur when parsing the old findbugs.xml file.

      The error causes the build to fail and prevents all other plugins and trend
      analysis from running at the end of the build.

      [FINDBUGS] Collecting findbugs analysis files...
      [FINDBUGS] Activating up-to-date parser (maven-findbugs-plugin >= 1.2 or ant).
      FATAL: Cannot inherit from final class
      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.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      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.PlainFindBugsParser.parse(PlainFindBugsParser.java:56)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.parseFile(FindBugsCollector.java:145)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.invoke(FindBugsCollector.java:100)
      at
      hudson.plugins.findbugs.parser.FindBugsCollector.invoke(FindBugsCollector.java:28)
      at hudson.FilePath.act(FilePath.java:315)
      at
      hudson.plugins.findbugs.FindBugsPublisher.parseAllWorkspaceFiles(FindBugsPublisher.java:104)
      at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:76)
      at
      hudson.plugins.findbugs.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:109)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:309)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:297)
      at hudson.model.Build$RunnerImpl.post2(Build.java:118)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:282)
      at hudson.model.Run.run(Run.java:796)
      at hudson.model.Build.run(Build.java:85)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:85)

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Could you please specify if you are using the m2/freestyle option (or slaves
          configuration).

          Show
          drulli Ulli Hafner added a comment - Could you please specify if you are using the m2/freestyle option (or slaves configuration).
          Hide
          jjv jjv added a comment -

          This is with a freestyle job, and is not a slave.

          Show
          jjv jjv added a comment - This is with a freestyle job, and is not a slave.
          Hide
          rolfposer rolfposer added a comment -

          I'm also experiencing this issue and issue 1992, so I do think they are related
          somehow. I'm using the latest findbugs plugin and am using findbugs 1.3.4 (also
          tried 1.3.2) in ant to generate the findbugs report. It's a freestyle (ant) job.
          I'm using JDK 1.5.0_15 on Fedora 9 with JBOSS 4.2.3GA. Let me know if you need
          more information.

          Show
          rolfposer rolfposer added a comment - I'm also experiencing this issue and issue 1992, so I do think they are related somehow. I'm using the latest findbugs plugin and am using findbugs 1.3.4 (also tried 1.3.2) in ant to generate the findbugs report. It's a freestyle (ant) job. I'm using JDK 1.5.0_15 on Fedora 9 with JBOSS 4.2.3GA. Let me know if you need more information.
          Hide
          drulli Ulli Hafner added a comment -

          Will be fixed altogether with Issue 1992.

          Show
          drulli Ulli Hafner added a comment - Will be fixed altogether with Issue 1992.
          Hide
          drulli Ulli Hafner added a comment -

          Should be fixed with the new message parser (see issue 1992).

          Show
          drulli Ulli Hafner added a comment - Should be fixed with the new message parser (see issue 1992).
          Hide
          drulli Ulli Hafner added a comment -

          A preview is available at:
          http://hudson.ramfelt.se/job/Hudson%20plugins/org.jvnet.hudson.plugins$findbugs/

          Would be cool if you could verify this before I make a release.

          Show
          drulli Ulli Hafner added a comment - A preview is available at: http://hudson.ramfelt.se/job/Hudson%20plugins/org.jvnet.hudson.plugins$findbugs/ Would be cool if you could verify this before I make a release.
          Hide
          rolfposer rolfposer added a comment -

          Ulli:

          Thanks for the update - I did test it (ran it twice), and the good news is that
          it seems to not choke on findbugs.xml anymore during the ant build process when
          it tries to read in the results...

          The bad news is that I still get "core bug patterns not found" from issue #1992.

          Let me know if there is anything else I can try.

          Show
          rolfposer rolfposer added a comment - Ulli: Thanks for the update - I did test it (ran it twice), and the good news is that it seems to not choke on findbugs.xml anymore during the ant build process when it tries to read in the results... The bad news is that I still get "core bug patterns not found" from issue #1992. Let me know if there is anything else I can try.
          Hide
          drulli Ulli Hafner added a comment -

          Could you please attach the xml file generated from findbugs and one build
          result from my plugin (findbugs-warnings.xml in a build folder).

          Is there at least the description of the bug pattern shown (the text after the
          bold message)?

          Show
          drulli Ulli Hafner added a comment - Could you please attach the xml file generated from findbugs and one build result from my plugin (findbugs-warnings.xml in a build folder). Is there at least the description of the bug pattern shown (the text after the bold message)?

            People

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

              Dates

              Created:
              Updated:
              Resolved: