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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via findbugs by leo_forge
, 1 year ago
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
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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.