reprogrammer/keshmesh — Issue #41: Keshmesh fails to report instances of VNA00J in inner classes
Author: reprogrammer
Created: 2011-11-07 23:44:54+00:00
State: open
Labels: VNA00J

When I ran Keshmesh on Cassandra with an entry point at `org.apache.cassandra.gms.Gossiper.start(int)`, Keshmesh threw the following exception while reporting an instance of VNA00J in `org.apache.cassandra.concurrent.RetryingScheduledThreadPoolExecutor.LoggingScheduledFuture.run()`.

!ENTRY edu.umd.cs.findbugs.plugin.eclipse 4 4 2011-11-07 17:43:47.551
!MESSAGE The following errors occurred during FindBugs analysis:
!SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2011-11-07 17:43:47.551
!MESSAGE Exception analyzing org.apache.cassandra.locator.AdaptiveLatencyTracker using detector edu.illinois.keshmesh.ui.findbugs.KeshmeshFindBugsDetector
!STACK 0
java.lang.NullPointerException
at edu.illinois.keshmesh.detector.util.AnalysisUtils.getPosition(AnalysisUtils.java:188)
at edu.illinois.keshmesh.detector.InstructionInfo.getPosition(InstructionInfo.java:44)
at edu.illinois.keshmesh.detector.VNA00JBugDetector.createBugInstances(VNA00JBugDetector.java:481)
at edu.illinois.keshmesh.detector.VNA00JBugDetector.performAnalysis(VNA00JBugDetector.java:94)
at edu.illinois.keshmesh.detector.Main.initAndPerformAnalysis(Main.java:42)
at edu.illinois.keshmesh.ui.findbugs.KeshmeshFindBugsDetector.visitClassContext(KeshmeshFindBugsDetector.java:84)
at edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:74)
at edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1140)
at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:281)
at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:306)
at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:214)
at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:265)
at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:101)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)