org.apache.bcel.classfile.ClassFormatException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Cannot scan my Project
    via findbugs by 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) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    No Bugmate found.