org.sonar.runner.RunnerException

org.sonar.api.utils.SonarException: Can not execute Findbugs

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web14

  • via GitHub by jbdundas
    , 1 year ago
    org.sonar.api.utils.SonarException: Can not execute Findbugs
  • via GitHub by jbdundas
    , 9 months ago
    org.sonar.api.utils.SonarException: Can not execute Findbugs
  • via Stack Overflow by user1720124
    , 1 year ago
    org.sonar.api.utils.SonarException: Can not execute Findbugs
  • Stack trace

    • org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Can not execute Findbugs at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) Caused by: org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Can not execute Findbugs at org.sonar.runner.Runner.delegateExecution(Runner.java:288) at org.sonar.runner.Runner.execute(Runner.java:151) at org.sonar.ant.SonarTask.launchAnalysis(SonarTask.java:93) at org.sonar.ant.SonarTask.execute(SonarTask.java:75) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) ... 10 more Caused by: org.sonar.api.utils.SonarException: Can not execute Findbugs at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:134) at org.sonar.plugins.findbugs.FindbugsSensor.analyse(FindbugsSensor.java:62) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) at org.sonar.batch.phases.Phases.execute(Phases.java:91) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:129) at org.sonar.batch.bootstrap.Module.start(Module.java:68) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:147) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:136) at org.sonar.batch.bootstrap.Module.start(Module.java:68) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:83) at org.sonar.batch.bootstrap.Module.start(Module.java:68) at org.sonar.batch.Batch.execute(Batch.java:106) at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69) at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.sonar.runner.Runner.delegateExecution(Runner.java:285) ... 18 more Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Error: missing bug code for keySECPR at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) at java.util.concurrent.FutureTask.get(FutureTask.java:91) at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:128) ... 36 more Caused by: java.lang.IllegalArgumentException: Error: missing bug code for keySECPR at edu.umd.cs.findbugs.DetectorFactoryCollection.getBugCode(DetectorFactoryCollection.java:562) at edu.umd.cs.findbugs.SortedBugCollection.writeBugCodes(SortedBugCollection.java:676) at edu.umd.cs.findbugs.SortedBugCollection.writeEpilogue(SortedBugCollection.java:579) at edu.umd.cs.findbugs.SortedBugCollection.writeXML(SortedBugCollection.java:558) at edu.umd.cs.findbugs.SortedBugCollection.writeXML(SortedBugCollection.java:475) at edu.umd.cs.findbugs.XMLBugReporter.finish(XMLBugReporter.java:46) at edu.umd.cs.findbugs.DelegatingBugReporter.finish(DelegatingBugReporter.java:81) at edu.umd.cs.findbugs.DelegatingBugReporter.finish(DelegatingBugReporter.java:81) at edu.umd.cs.findbugs.DelegatingBugReporter.finish(DelegatingBugReporter.java:81) at edu.umd.cs.findbugs.DelegatingBugReporter.finish(DelegatingBugReporter.java:81) at edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1239) at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:279) at org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:164) 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:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.