java.lang.VerifyError: Cannot inherit from final class

Jenkins JIRA | jjv | 8 years ago
  1. 0

    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)

    Jenkins JIRA | 8 years ago | jjv
    java.lang.VerifyError: Cannot inherit from final class
  2. 0

    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)

    Jenkins JIRA | 8 years ago | jjv
    java.lang.VerifyError: Cannot inherit from final class
  3. 0

    FindBugs / Bugs / #534 VerifyError when running on JDK 5

    sourceforge.net | 1 year ago
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-5134] findbugs plugin - error (report) - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.lang.VerifyError: Cannot inherit from final class
  6. 0

    findbugs: [findbugs] Executing findbugs from ant task [findbugs] Running FindBugs... [findbugs] The following classes needed for analysis were missing: .... [findbugs] org.junit.Test [findbugs] Warnings generated: 2 [findbugs] Missing classes: 25 [findbugs] Calculating exit code... [findbugs] Setting 'missing class' flag (2) [findbugs] Setting 'bugs found' flag (1) [findbugs] Exit code set to: 3 [findbugs] Java Result: 3 [findbugs] Classes needed for analysis were missing [findbugs] Output saved to findbugs.xml then [WARNINGS] Parsing warnings in console log... [WARNINGS] Found 55 annotations (0 new, 0 high, 55 normal, 0 low) [WARNINGS] Not changing build status, since no threshold has been exceeded [TASKS] Scanning workspace files for tasks... [TASKS] Found 0 annotations (0 new, 0 high, 0 normal, 0 low) [TASKS] Not changing build status, since no threshold has been exceeded [FINDBUGS] Collecting findbugs analysis files... 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:632) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at java.lang.ClassLoader.loadClass(ClassLoader.java:264) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2444) at java.lang.Class.getDeclaredMethod(Class.java:1952) at edu.umd.cs.findbugs.DetectorFactory$ReflectionDetectorCreator.<init>(DetectorFactory.java:54) at edu.umd.cs.findbugs.DetectorFactory.<init>(DetectorFactory.java:135) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:329) at edu.umd.cs.findbugs.PluginLoader.getPlugin(PluginLoader.java:135) at edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugin(DetectorFactoryCollection.java:448) at edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(DetectorFactoryCollection.java:333) at edu.umd.cs.findbugs.DetectorFactoryCollection.ensureLoaded(DetectorFactoryCollection.java:296) at edu.umd.cs.findbugs.DetectorFactoryCollection.instance(DetectorFactoryCollection.java:116) at edu.umd.cs.findbugs.I18N.lookupBugPattern(I18N.java:92) at edu.umd.cs.findbugs.BugInstance.<init>(BugInstance.java:159) at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:202) 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:286) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:263) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:129) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.java:69) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:74) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:152) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:131) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:87) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:28) at hudson.FilePath.act(FilePath.java:676) at hudson.FilePath.act(FilePath.java:660) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:104) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:140) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:583) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:551) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535) at hudson.model.Run.run(Run.java:1202) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) Page generated: Dec 21, 2009 9:51:58 PMHudson ver. 1.338

    Jenkins JIRA | 7 years ago | larsgo
    java.lang.VerifyError: Cannot inherit from final class

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.VerifyError

      Cannot inherit from final class

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      Class.getDeclaredMethod
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      4. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      5. java.net.URLClassLoader.access$000(URLClassLoader.java:56)
      6. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      9. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      10. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      11. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      12. java.lang.Class.getDeclaredMethods0(Native Method)
      13. java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      14. java.lang.Class.getDeclaredMethod(Class.java:1935)
      14 frames