org.apache.bcel.classfile.ClassFormatException: Invalid method signature: at org.apache.bcel.classfile.Utility.typeOfSignature\(Utility.java:981\) at org.apache.bcel.generic.Type.getType\(Type.java:169\) at org.apache.bcel.generic.Type.getReturnType\(Type.java:208\) at org.apache.bcel.generic.MethodGen.<init>\(MethodGen.java:164\) at edu.umd.cs.findbugs.ba.ClassContext$1.analyze\(ClassContext.java:501\) at edu.umd.cs.findbugs.ba.ClassContext$1.analyze\(ClassContext.java:489\) at edu.umd.cs.findbugs.ba.ClassContext$AnalysisFactory.getAnalysis\(ClassContext.java:251\) at edu.umd.cs.findbugs.ba.ClassContext$NoExceptionAnalysisFactory.getAnalysis\(ClassContext.java:302\) at edu.umd.cs.findbugs.ba.ClassContext.getMethodGen\(ClassContext.java:1135\) at edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext\(FindNullDeref.java:146\) at edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass\(DetectorToDetector2Adapter.java:64\) at edu.umd.cs.findbugs.FindBugs2.analyzeApplication\(FindBugs2.java:608\) at edu.umd.cs.findbugs.FindBugs2.execute\(FindBugs2.java:174\) at de.tobject.findbugs.builder.FindBugsWorker.work\(FindBugsWorker.java:169\) at de.tobject.findbugs.actions.FindBugsAction$1.run\(FindBugsAction.java:160\) at org.eclipse.core.internal.jobs.Worker.run\(Worker.java:58\) Logged In: YES user\_id=237459 The BCEL library throws a ClassFormatException. It is possible that FindBugs is passing bad values into the MethodGen constructor, but I tend to doubt it. Does this happen even after cleaning and rebuilding your project? Logged In: YES user\_id=703323 Clean and rebuild seems to work. At least it generates a .fbwarnings file. Nevertheless I find in the .log that exactly this file does is not found ??? java.io.FileNotFoundException: D:\E2L\workspace1\YLA\_Planer\\.fbwarnings at de.tobject.findbugs.FindbugsPlugin.readBugCollectionAndProject(FindbugsPlugin.java:505) at de.tobject.findbugs.FindbugsPlugin.getBugCollection(FindbugsPlugin.java:431) at de.tobject.findbugs.builder.FindBugsWorker.updateBugCollection(FindBugsWorker.java:198) at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:172) at de.tobject.findbugs.actions.FindBugsAction$1.run(FindBugsAction.java:160)

findbugs | leo_forge | 1 decade 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

    Cannot scan my Project

    findbugs | 1 decade ago | leo_forge
    org.apache.bcel.classfile.ClassFormatException: Invalid method signature: at org.apache.bcel.classfile.Utility.typeOfSignature\(Utility.java:981\) at org.apache.bcel.generic.Type.getType\(Type.java:169\) at org.apache.bcel.generic.Type.getReturnType\(Type.java:208\) at org.apache.bcel.generic.MethodGen.<init>\(MethodGen.java:164\) at edu.umd.cs.findbugs.ba.ClassContext$1.analyze\(ClassContext.java:501\) at edu.umd.cs.findbugs.ba.ClassContext$1.analyze\(ClassContext.java:489\) at edu.umd.cs.findbugs.ba.ClassContext$AnalysisFactory.getAnalysis\(ClassContext.java:251\) at edu.umd.cs.findbugs.ba.ClassContext$NoExceptionAnalysisFactory.getAnalysis\(ClassContext.java:302\) at edu.umd.cs.findbugs.ba.ClassContext.getMethodGen\(ClassContext.java:1135\) at edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext\(FindNullDeref.java:146\) at edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass\(DetectorToDetector2Adapter.java:64\) at edu.umd.cs.findbugs.FindBugs2.analyzeApplication\(FindBugs2.java:608\) at edu.umd.cs.findbugs.FindBugs2.execute\(FindBugs2.java:174\) at de.tobject.findbugs.builder.FindBugsWorker.work\(FindBugsWorker.java:169\) at de.tobject.findbugs.actions.FindBugsAction$1.run\(FindBugsAction.java:160\) at org.eclipse.core.internal.jobs.Worker.run\(Worker.java:58\) Logged In: YES user\_id=237459 The BCEL library throws a ClassFormatException. It is possible that FindBugs is passing bad values into the MethodGen constructor, but I tend to doubt it. Does this happen even after cleaning and rebuilding your project? Logged In: YES user\_id=703323 Clean and rebuild seems to work. At least it generates a .fbwarnings file. Nevertheless I find in the .log that exactly this file does is not found ??? java.io.FileNotFoundException: D:\E2L\workspace1\YLA\_Planer\\.fbwarnings at de.tobject.findbugs.FindbugsPlugin.readBugCollectionAndProject(FindbugsPlugin.java:505) at de.tobject.findbugs.FindbugsPlugin.getBugCollection(FindbugsPlugin.java:431) at de.tobject.findbugs.builder.FindBugsWorker.updateBugCollection(FindBugsWorker.java:198) at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:172) at de.tobject.findbugs.actions.FindBugsAction$1.run(FindBugsAction.java:160)

    Root Cause Analysis

    1. org.apache.bcel.classfile.ClassFormatException

      Invalid method signature: at org.apache.bcel.classfile.Utility.typeOfSignature\(Utility.java:981\) at org.apache.bcel.generic.Type.getType\(Type.java:169\) at org.apache.bcel.generic.Type.getReturnType\(Type.java:208\) at org.apache.bcel.generic.MethodGen.<init>\(MethodGen.java:164\) at edu.umd.cs.findbugs.ba.ClassContext$1.analyze\(ClassContext.java:501\) at edu.umd.cs.findbugs.ba.ClassContext$1.analyze\(ClassContext.java:489\) at edu.umd.cs.findbugs.ba.ClassContext$AnalysisFactory.getAnalysis\(ClassContext.java:251\) at edu.umd.cs.findbugs.ba.ClassContext$NoExceptionAnalysisFactory.getAnalysis\(ClassContext.java:302\) at edu.umd.cs.findbugs.ba.ClassContext.getMethodGen\(ClassContext.java:1135\) at edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext\(FindNullDeref.java:146\) at edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass\(DetectorToDetector2Adapter.java:64\) at edu.umd.cs.findbugs.FindBugs2.analyzeApplication\(FindBugs2.java:608\) at edu.umd.cs.findbugs.FindBugs2.execute\(FindBugs2.java:174\) at de.tobject.findbugs.builder.FindBugsWorker.work\(FindBugsWorker.java:169\) at de.tobject.findbugs.actions.FindBugsAction$1.run\(FindBugsAction.java:160\) at org.eclipse.core.internal.jobs.Worker.run\(Worker.java:58\) Logged In: YES user\_id=237459 The BCEL library throws a ClassFormatException. It is possible that FindBugs is passing bad values into the MethodGen constructor, but I tend to doubt it. Does this happen even after cleaning and rebuilding your project? Logged In: YES user\_id=703323 Clean and rebuild seems to work. At least it generates a .fbwarnings file. Nevertheless I find in the .log that exactly this file does is not found ??? java.io.FileNotFoundException: D:\E2L\workspace1\YLA\_Planer\\.fbwarnings at de.tobject.findbugs.FindbugsPlugin.readBugCollectionAndProject(FindbugsPlugin.java:505) at de.tobject.findbugs.FindbugsPlugin.getBugCollection(FindbugsPlugin.java:431) at de.tobject.findbugs.builder.FindBugsWorker.updateBugCollection(FindBugsWorker.java:198) at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:172) at de.tobject.findbugs.actions.FindBugsAction$1.run(FindBugsAction.java:160)

      at org.eclipse.core.internal.jobs.Worker.run()
    2. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
      1 frame