无法初始化类com.h3xstream.findsecbugs.taintanalysis.TaintMethodSummary

时间:2016-07-07 01:34:49

标签: java android android-studio findbugs find-sec-bugs

我正在使用FindBugs-IDEA 1.0.0和FindBugs 3.0.1。我的Android工作室版本是2.1.2。

我只使用FindBugs分析1个单独的Java文件(片段),如果重要的话

完整的堆栈跟踪:

java.lang.NoClassDefFoundError: Could not initialize class com.h3xstream.findsecbugs.taintanalysis.TaintMethodSummary
    at com.h3xstream.findsecbugs.taintanalysis.TaintMethodSummaryMap.putFromLine(TaintMethodSummaryMap.java:67)
    at com.h3xstream.findsecbugs.taintanalysis.TaintMethodSummaryMap.load(TaintMethodSummaryMap.java:47)
    at com.h3xstream.findsecbugs.taintanalysis.TaintDataflowEngine.loadMethodSummaries(TaintDataflowEngine.java:82)
    at com.h3xstream.findsecbugs.taintanalysis.TaintDataflowEngine.<init>(TaintDataflowEngine.java:73)
    at com.h3xstream.findsecbugs.taintanalysis.EngineRegistrar.registerAnalysisEngines(EngineRegistrar.java:32)
    at edu.umd.cs.findbugs.FindBugs2.registerPluginAnalysisEngines(FindBugs2.java:633)
    at edu.umd.cs.findbugs.FindBugs2.createAnalysisCache(FindBugs2.java:594)
    at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:211)
    at org.twodividedbyzero.idea.findbugs.core.FindBugsStarter.executeImpl(FindBugsStarter.java:354)
    at org.twodividedbyzero.idea.findbugs.core.FindBugsStarter.asyncStartImpl(FindBugsStarter.java:245)
    at org.twodividedbyzero.idea.findbugs.core.FindBugsStarter.asyncStart(FindBugsStarter.java:218)
    at org.twodividedbyzero.idea.findbugs.core.FindBugsStarter.access$300(FindBugsStarter.java:74)
    at org.twodividedbyzero.idea.findbugs.core.FindBugsStarter$3.run(FindBugsStarter.java:202)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)

1 个答案:

答案 0 :(得分:0)

要测试一件事:

可以在其他设置 &gt; FindBugs-IDEA

中配置FindBugs插件

如果您不断收到错误,可以open an issue on GitHub