java.lang.NoSuchMethodError: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository;

Jenkins JIRA | tchule | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    A NoSuchMethodError is thrown during the build. I'm using an ANT task, the ANT task is running well (when I desactivate the plugin, the result file is generated). I'm using Hudson 1.277 on Tomcat 5.5 on Debian. The plugin installation seems correct. Maybe I'm missing a setenv of something ... ------------------------------------------- findbugs: [findbugs] Executing findbugs from ant task [findbugs] Running FindBugs... [findbugs] Warnings generated: 18 [findbugs] Output saved to ./test_result/findbugs_result.xml BUILD SUCCESSFUL Total time: 18 seconds Enregistrement des r├ęsultats des tests [FINDBUGS] Collecting findbugs analysis files... FATAL: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository; java.lang.NoSuchMethodError: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository; at edu.umd.cs.findbugs.ba.AnalysisContext.<clinit>(AnalysisContext.java:118) at edu.umd.cs.findbugs.BugInstance.<init>(BugInstance.java:152) at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler .java:184) 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:244) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:222) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.j ava:130) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.j ava:68) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:79) at hudson.plugins.findbugs.util.FilesParser.parseFile(FilesParser.java:147) at hudson.plugins.findbugs.util.FilesParser.parseFiles(FilesParser.java:126) at hudson.plugins.findbugs.util.FilesParser.invoke(FilesParser.java:82) at hudson.plugins.findbugs.util.FilesParser.invoke(FilesParser.java:23) at hudson.FilePath.act(FilePath.java:389) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:89) at hudson.plugins.findbugs.util.HealthAwarePublisher.perform(HealthAwarePublisher.j ava:179) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :322) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :310) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:295) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | tchule
    java.lang.NoSuchMethodError: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository;
  2. 0

    A NoSuchMethodError is thrown during the build. I'm using an ANT task, the ANT task is running well (when I desactivate the plugin, the result file is generated). I'm using Hudson 1.277 on Tomcat 5.5 on Debian. The plugin installation seems correct. Maybe I'm missing a setenv of something ... ------------------------------------------- findbugs: [findbugs] Executing findbugs from ant task [findbugs] Running FindBugs... [findbugs] Warnings generated: 18 [findbugs] Output saved to ./test_result/findbugs_result.xml BUILD SUCCESSFUL Total time: 18 seconds Enregistrement des r├ęsultats des tests [FINDBUGS] Collecting findbugs analysis files... FATAL: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository; java.lang.NoSuchMethodError: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository; at edu.umd.cs.findbugs.ba.AnalysisContext.<clinit>(AnalysisContext.java:118) at edu.umd.cs.findbugs.BugInstance.<init>(BugInstance.java:152) at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler .java:184) 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:244) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:222) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.j ava:130) at hudson.plugins.findbugs.parser.NativeFindBugsParser.parse(NativeFindBugsParser.j ava:68) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:79) at hudson.plugins.findbugs.util.FilesParser.parseFile(FilesParser.java:147) at hudson.plugins.findbugs.util.FilesParser.parseFiles(FilesParser.java:126) at hudson.plugins.findbugs.util.FilesParser.invoke(FilesParser.java:82) at hudson.plugins.findbugs.util.FilesParser.invoke(FilesParser.java:23) at hudson.FilePath.act(FilePath.java:389) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:89) at hudson.plugins.findbugs.util.HealthAwarePublisher.perform(HealthAwarePublisher.j ava:179) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :322) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java :310) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:295) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | tchule
    java.lang.NoSuchMethodError: org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository;
  3. 0

    getting exception while running findbugs

    findbugs | 7 years ago | sushilk
    java.lang.NoClassDefFoundError: edu.umd.cs.findbugs.ba.AnalysisContext (initialization failure)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.bcel.Repository.getRepository()Lorg/apache/bcel/util/Repository;

      at edu.umd.cs.findbugs.ba.AnalysisContext.<clinit>()
    2. edu.umd.cs
      AnalysisContext.<clinit>
      1. edu.umd.cs.findbugs.ba.AnalysisContext.<clinit>(AnalysisContext.java:118)
      1 frame
    3. jOpenDocument
      BugInstance.<init>
      1. edu.umd.cs.findbugs.BugInstance.<init>(BugInstance.java:152)
      1 frame