Sonar Findbugs没有跑

时间:2012-10-19 08:59:40

标签: sonarqube

我已经安装了声纳并从我的父文件夹执行声纳 - 跑步者,但我得到以下错误,有没有人知道该怎么办?

Exception in thread "main" 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.runner.Main.execute(Main.java:84)
    at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.sonar.api.utils.SonarException: Can not execute Findbugs
    at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:126)
    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:93)
    at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
    at org.sonar.batch.bootstrap.Module.start(Module.java:83)
    at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:131)
    at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:121)
    at org.sonar.batch.bootstrap.Module.start(Module.java:83)
    at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:121)
    at org.sonar.batch.bootstrap.Module.start(Module.java:83)
    at org.sonar.batch.Batch.execute(Batch.java:104)
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
    ... 3 more
Caused by: java.io.IOException: File '/home/bldarea/example/dev/archive/.sonar/findbugs-result.xml' cannot be written to
    at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:228)
    at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:95)
    ... 21 more

1 个答案:

答案 0 :(得分:0)

消息很明确:'findbugs-result.xml'临时文件无法写入磁盘上的文件'/home/bldarea/example/dev/archive/.sonar'。

所以你必须知道为什么这个文件不能写在那里。这可能与此文件夹上的用户权限或用户配额相关联...