Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors occurred during analysis using v3.5 #114

Closed
olaoluphilip opened this issue Jun 8, 2017 · 10 comments
Closed

Errors occurred during analysis using v3.5 #114

olaoluphilip opened this issue Jun 8, 2017 · 10 comments
Labels

Comments

@olaoluphilip
Copy link

olaoluphilip commented Jun 8, 2017

error	08-Jun-2017 14:55:08	The following errors occurred during analysis:
error	08-Jun-2017 14:55:08	  ValueRangeAnalysis failed for static com.test.test.indextest.Indexer.myClass.main([Ljava/lang/String;)V
error	08-Jun-2017 14:55:08	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: Accessing TOP or BOTTOM frame!
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:243)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.engine.bcel.ValueRangeAnalysisFactory$Context.extractValue(ValueRangeAnalysisFactory.java:506)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.engine.bcel.ValueRangeAnalysisFactory$Context.extractTwoArgCondition(ValueRangeAnalysisFactory.java:539)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.engine.bcel.ValueRangeAnalysisFactory$Context.extractCondition(ValueRangeAnalysisFactory.java:417)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.engine.bcel.ValueRangeAnalysisFactory.analyze(ValueRangeAnalysisFactory.java:675)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.engine.bcel.ValueRangeAnalysisFactory.analyze(ValueRangeAnalysisFactory.java:90)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.analyzeMethod(AnalysisCache.java:369)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getMethodAnalysis(AnalysisCache.java:322)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.RedundantConditions.visitClassContext(RedundantConditions.java:67)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
error	08-Jun-2017 14:55:08	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
error	08-Jun-2017 14:55:08	      At java.lang.Thread.run(Thread.java:745)
error	08-Jun-2017 14:55:08	  Error looking up nonnull parameters for invoked method
error	08-Jun-2017 14:55:08	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: not enough values on stack: access=0, avail=0
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.Frame.getStackLocation(Frame.java:266)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.deref.UnconditionalValueDerefAnalysis.checkUnconditionalDerefDatabase(UnconditionalValueDerefAnalysis.java:420)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.deref.UnconditionalValueDerefAnalysis.checkAllNonNullParams(UnconditionalValueDerefAnalysis.java:533)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueFrameModelingVisitor.handleInvoke(IsNullValueFrameModelingVisitor.java:183)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueFrameModelingVisitor.visitINVOKEVIRTUAL(IsNullValueFrameModelingVisitor.java:518)
error	08-Jun-2017 14:55:08	      At org.apache.bcel.generic.INVOKEVIRTUAL.accept(INVOKEVIRTUAL.java:89)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.AbstractFrameModelingVisitor.analyzeInstruction(AbstractFrameModelingVisitor.java:84)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueFrameModelingVisitor.analyzeInstruction(IsNullValueFrameModelingVisitor.java:105)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transferInstruction(IsNullValueAnalysis.java:338)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transferInstruction(IsNullValueAnalysis.java:72)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.AbstractDataflowAnalysis.transfer(AbstractDataflowAnalysis.java:135)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transfer(IsNullValueAnalysis.java:282)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transfer(IsNullValueAnalysis.java:72)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.AbstractDataflowAnalysis.getFactAtLocation(AbstractDataflowAnalysis.java:84)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.Dataflow.getFactAtLocation(Dataflow.java:501)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.LoadOfKnownNullValue.analyzeMethod(LoadOfKnownNullValue.java:99)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.LoadOfKnownNullValue.visitClassContext(LoadOfKnownNullValue.java:62)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
error	08-Jun-2017 14:55:08	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
error	08-Jun-2017 14:55:08	      At java.lang.Thread.run(Thread.java:745)
error	08-Jun-2017 14:55:08	  Error looking up nonnull parameters for invoked method
error	08-Jun-2017 14:55:08	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: not enough values on stack: access=0, avail=0
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.Frame.getStackLocation(Frame.java:266)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.deref.UnconditionalValueDerefAnalysis.checkUnconditionalDerefDatabase(UnconditionalValueDerefAnalysis.java:420)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.deref.UnconditionalValueDerefAnalysis.checkAllNonNullParams(UnconditionalValueDerefAnalysis.java:533)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueFrameModelingVisitor.handleInvoke(IsNullValueFrameModelingVisitor.java:183)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueFrameModelingVisitor.visitINVOKEVIRTUAL(IsNullValueFrameModelingVisitor.java:518)
error	08-Jun-2017 14:55:08	      At org.apache.bcel.generic.INVOKEVIRTUAL.accept(INVOKEVIRTUAL.java:89)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.AbstractFrameModelingVisitor.analyzeInstruction(AbstractFrameModelingVisitor.java:84)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueFrameModelingVisitor.analyzeInstruction(IsNullValueFrameModelingVisitor.java:105)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transferInstruction(IsNullValueAnalysis.java:338)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transferInstruction(IsNullValueAnalysis.java:72)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.AbstractDataflowAnalysis.transfer(AbstractDataflowAnalysis.java:135)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transfer(IsNullValueAnalysis.java:282)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.npe.IsNullValueAnalysis.transfer(IsNullValueAnalysis.java:72)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.AbstractDataflowAnalysis.getFactAtLocation(AbstractDataflowAnalysis.java:84)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.Dataflow.getFactAtLocation(Dataflow.java:501)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.LoadOfKnownNullValue.analyzeMethod(LoadOfKnownNullValue.java:129)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.LoadOfKnownNullValue.visitClassContext(LoadOfKnownNullValue.java:62)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
error	08-Jun-2017 14:55:08	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
error	08-Jun-2017 14:55:08	      At java.lang.Thread.run(Thread.java:745)
error	08-Jun-2017 14:55:08	  Error analyzing public static transient void main(String[] args)
error	08-Jun-2017 14:55:08	    throws Exceptions: java.lang.Exception (class: com.test.test.indextest.Indexer.myClass)
error	08-Jun-2017 14:55:08	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: Accessing TOP or BOTTOM frame!
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:243)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.FindUselessObjects$UselessValuesContext.initObservedValues(FindUselessObjects.java:144)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.FindUselessObjects.analyzeMethod(FindUselessObjects.java:470)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.detect.FindUselessObjects.visitClassContext(FindUselessObjects.java:460)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
error	08-Jun-2017 14:55:08	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
error	08-Jun-2017 14:55:08	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
error	08-Jun-2017 14:55:08	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
error	08-Jun-2017 14:55:08	      At java.lang.Thread.run(Thread.java:745)
error	08-Jun-2017 14:55:08	The following classes needed for analysis were missing:
error	08-Jun-2017 14:55:08	  apply
error	08-Jun-2017 14:55:08	  test
error	08-Jun-2017 14:55:08	  applyAsLong
error	08-Jun-2017 14:55:08	  accept
error	08-Jun-2017 14:55:08	  get
error	08-Jun-2017 14:55:08	  run
error	08-Jun-2017 14:55:08	  getValue
error	08-Jun-2017 14:55:08	  extractData
error	08-Jun-2017 14:55:08	  compare
error	08-Jun-2017 14:55:08	  process
error	08-Jun-2017 14:55:08	  applyAsInt
error	08-Jun-2017 14:55:08	  rows
error	08-Jun-2017 14:55:08	  row
error	08-Jun-2017 14:55:08	  getAsInt
error	08-Jun-2017 14:55:08	  execute
error	08-Jun-2017 14:55:08	
@h3xstream
Copy link
Member

h3xstream commented Jun 8, 2017

Few things needed for investigation:

  • Does the scan complete ?
  • com.test.test.indextest.Indexer.myClass can you provide the code to reproduce? (Actually this is needed to reproduce)
  • Scan the same code with FindBugs-3.0.1, the previous stable release (http://findbugs.sourceforge.net/downloads.html)

@olaoluphilip
Copy link
Author

olaoluphilip commented Jun 9, 2017

Thanks for your response

Does the scan complete

Yes

com.test.test.indextest.Indexer.myClass can you provide the code to reproduce? (Actually this is needed to reproduce)

Its about 500 lines of code and proprietary

Scan the same code with FindBugs-3.0.1, the previous stable release (http://findbugs.sourceforge.net/downloads.html)

Will do this and post result

I also get some other errors common to other projects, but the scan also completes (find below)

08-Jun-2017 18:46:17	[INFO] Findbugs output report: /data/bamboo-agent93-home/xml-data/build-dir/SM-SUPPORTTASK-SMCLI/target/sonar/findbugs-result.xml
08-Jun-2017 18:46:44	The following errors occurred during analysis:
08-Jun-2017 18:46:44	  Error generating derefs for static com.test.test.indextest.Indexer.myClass.getTerminalSubDirsWithFilesRecursively(Ljava/io/File;Ljava/util/List;)V
08-Jun-2017 18:46:44	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: can't get position -1 of stack
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:250)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Hierarchy.resolveMethodCallTargets(Hierarchy.java:743)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.DerefFinder.getAnalysis(DerefFinder.java:141)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:50)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:31)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.analyzeMethod(AnalysisCache.java:369)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getMethodAnalysis(AnalysisCache.java:322)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getMethodAnalysis(ClassContext.java:1005)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getUsagesRequiringNonNullValues(ClassContext.java:325)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.foundGuaranteedNullDeref(FindNullDeref.java:1510)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.reportBugs(NullDerefAndRedundantComparisonFinder.java:361)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.examineNullValues(NullDerefAndRedundantComparisonFinder.java:266)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.execute(NullDerefAndRedundantComparisonFinder.java:164)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.analyzeMethod(FindNullDeref.java:278)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext(FindNullDeref.java:209)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283) 
08-Jun-2017 18:46:44	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
08-Jun-2017 18:46:44	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
08-Jun-2017 18:46:44	      At java.lang.Thread.run(Thread.java:745)
08-Jun-2017 18:46:44	  Error generating derefs for com.test.test.indextest.Indexer.myClass.unzipAndMergeFilesInDirToIndex(Ljava/io/File;)Lgnu/trove/map/TObjectIntMap;
 08-Jun-2017 18:46:44	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: can't get position -1 of stack
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:250)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Hierarchy.resolveMethodCallTargets(Hierarchy.java:743)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.DerefFinder.getAnalysis(DerefFinder.java:141)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:50)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:31)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.analyzeMethod(AnalysisCache.java:369)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getMethodAnalysis(AnalysisCache.java:322)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getMethodAnalysis(ClassContext.java:1005)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getUsagesRequiringNonNullValues(ClassContext.java:325)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.foundGuaranteedNullDeref(FindNullDeref.java:1510)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.reportBugs(NullDerefAndRedundantComparisonFinder.java:361)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.examineNullValues(NullDerefAndRedundantComparisonFinder.java:266)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.execute(NullDerefAndRedundantComparisonFinder.java:164)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.analyzeMethod(FindNullDeref.java:278)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext(FindNullDeref.java:209)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
08-Jun-2017 18:46:44	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
08-Jun-2017 18:46:44	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
08-Jun-2017 18:46:44	      At java.lang.Thread.run(Thread.java:745)
08-Jun-2017 18:46:44	  Error generating derefs for com.test.test.indextest.Indexer.MissingJdSuggestionsTask.processSectionSubDir(Ljava/io/File;Ljava/util/Set;Ljava/lang/String;Ljava/lang/String;)V
08-Jun-2017 18:46:44	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: can't get position -1 of stack
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:250)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Hierarchy.resolveMethodCallTargets(Hierarchy.java:743)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.DerefFinder.getAnalysis(DerefFinder.java:141)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:50)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:31)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.analyzeMethod(AnalysisCache.java:369)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getMethodAnalysis(AnalysisCache.java:322)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getMethodAnalysis(ClassContext.java:1005)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getUsagesRequiringNonNullValues(ClassContext.java:325)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.foundGuaranteedNullDeref(FindNullDeref.java:1510)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.reportBugs(NullDerefAndRedundantComparisonFinder.java:361)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.examineNullValues(NullDerefAndRedundantComparisonFinder.java:266)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.execute(NullDerefAndRedundantComparisonFinder.java:164)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.analyzeMethod(FindNullDeref.java:278)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext(FindNullDeref.java:209)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
08-Jun-2017 18:46:44	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
08-Jun-2017 18:46:44	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
08-Jun-2017 18:46:44	      At java.lang.Thread.run(Thread.java:745)
08-Jun-2017 18:46:44	  Error generating derefs for com.test.test.indextest.Indexer.myClass.MissingJdSuggestionsTask.getSubdirsRecursivelyy(Ljava/io/File;)Ljava/util/List;
08-Jun-2017 18:46:44	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: can't get position -1 of stack
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:250)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Hierarchy.resolveMethodCallTargets(Hierarchy.java:743)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.DerefFinder.getAnalysis(DerefFinder.java:141)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:50)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.engine.bcel.UsagesRequiringNonNullValuesFactory.analyze(UsagesRequiringNonNullValuesFactory.java:31)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.analyzeMethod(AnalysisCache.java:369)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getMethodAnalysis(AnalysisCache.java:322)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getMethodAnalysis(ClassContext.java:1005)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.ClassContext.getUsagesRequiringNonNullValues(ClassContext.java:325)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.foundGuaranteedNullDeref(FindNullDeref.java:1510)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.reportBugs(NullDerefAndRedundantComparisonFinder.java:361)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.examineNullValues(NullDerefAndRedundantComparisonFinder.java:266)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder.execute(NullDerefAndRedundantComparisonFinder.java:164)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.analyzeMethod(FindNullDeref.java:278)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindNullDeref.visitClassContext(FindNullDeref.java:209)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
08-Jun-2017 18:46:44	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
08-Jun-2017 18:46:44	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
08-Jun-2017 18:46:44	      At java.lang.Thread.run(Thread.java:745)
08-Jun-2017 18:46:44	  Error analyzing public static void main(String[] args) (class: com.test.test.indextest.Indexer.AutomatonQualityChecker)
08-Jun-2017 18:46:44	    edu.umd.cs.findbugs.ba.DataflowAnalysisException: Accessing TOP or BOTTOM frame!
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.ba.Frame.getStackValue(Frame.java:243)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindUselessObjects$UselessValuesContext.initObservedValues(FindUselessObjects.java:144)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindUselessObjects.analyzeMethod(FindUselessObjects.java:470)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.detect.FindUselessObjects.visitClassContext(FindUselessObjects.java:460)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1089)
08-Jun-2017 18:46:44	      At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:283)
08-Jun-2017 18:46:44	      At org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:216)
08-Jun-2017 18:46:44	      At java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
08-Jun-2017 18:46:44	      At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
08-Jun-2017 18:46:44	      At java.lang.Thread.run(Thread.java:745)
08-Jun-2017 18:46:44	The following classes needed for analysis were missing:
08-Jun-2017 18:46:44	  accept
08-Jun-2017 18:46:44	  test
08-Jun-2017 18:46:44	  apply
08-Jun-2017 18:46:44	  execute
08-Jun-2017 18:46:44	  getString
08-Jun-2017 18:46:44	  mapRow
08-Jun-2017 18:46:44	  createPreparedStatement
08-Jun-2017 18:46:44	  extractData
08-Jun-2017 18:46:44	  call
08-Jun-2017 18:46:44	  get

@h3xstream
Copy link
Member

@olaoluphilip Thanks for the update.

To test "FindBugs-3.0.1" simply scan the same project with previous version of the plugin 3.4 (if you have not already)

@h3xstream
Copy link
Member

I did a couple of test with Java8 functional samples but could not reproduce this error state.
I was thinking about functional concepts because applyAsLong, mapRow and apply were used.

Since, you can't share the code, you will need to do a bit more work : identify the bogus code and anonymize it. If you are afraid about leaking the code (even once anonymized), you can contact me at h@cked.in.

@h3xstream h3xstream removed the blocker label Jun 11, 2017
@h3xstream
Copy link
Member

@olaoluphilip Without code to reproduce the issue, it will be close. Please take a moment to extract the appropriate code sample.

@h3xstream
Copy link
Member

Code received .. Trying to reproduce.

@olaoluphilip
Copy link
Author

Also a quick addition. I did this analysis using Sonarqube v6.3

@h3xstream
Copy link
Member

I did not reproduce the bug yet. The release is still happening because it is not a blocker. This seems to affect specific Java 8 code structure. Sonar-FindBugs will be update when Spotbugs newer release will fix it.

TLDR: Still trying to reproduce. It will not stop the release.

@geekbeast
Copy link

In case its helpful-- I hit this on macOS High Sierra, Java 10, Gradle 4.8.1, Spotbugs-Plugin 1.6.2, IntelliJ 2017.3 but it resolved itself automatically on the next run without any changes.

It could be some sort of race condition or conflict with the IDEA (IntelliJ with gradle auto-import is pretty aggressive).

@gtoison
Copy link
Contributor

gtoison commented Apr 25, 2022

This issue seems to be stale, please feel free to open a new one or to comment here if needed

@gtoison gtoison closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants