声纳扫描仪称该文件缺少当前文件

时间:2016-09-16 00:15:27

标签: sonarqube

  

Sonar 5.6

     

Java插件4.2

当我运行Sonar扫描仪时,分析显示libsetuid-linux-1.0.2.so缺失。但文件肯定存在。我可以确切地看到它想要的文件存在于文件系统中。这是证明和例外:

  

ls -ltr   /home/dir/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty.toolchain.setuid/libsetuid-linux/1.0.2/fdd9c0360aea4b4333b4e0b82ff9506a5a73fa5b/libsetuid-linux-1.0.2.so

给出:

  

-rw-r - r-- 1用户组17735 9月6日16:10 /home/dir/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty.toolchain.setuid/libsetuid -linux / 1.0.2 / fdd9c0360aea4b4333b4e0b82ff9506a5a73fa5b / libsetuid-linux-1.0.2.so

例外:

Caused by: java.lang.IllegalStateException: No files nor directories matching '/home/dir/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty.toolchain.setuid/libsetuid-linux/1.0.2/fdd9c0360aea4b4333b4e0b82ff9506a5a73fa5b/libsetuid-linux-1.0.2.so'
        at org.sonar.java.AbstractJavaClasspath.getFilesFromProperty(AbstractJavaClasspath.java:90)
        at org.sonar.java.JavaClasspath.init(JavaClasspath.java:50)
        at org.sonar.java.AbstractJavaClasspath.getElements(AbstractJavaClasspath.java:258)
        at org.sonar.java.SonarComponents.getJavaClasspath(SonarComponents.java:122)
        at org.sonar.java.JavaSquid.<init>(JavaSquid.java:78)
        at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:86)
        at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57)
        at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
        at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
        at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
        at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
        at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
        at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy57.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240)
        at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
        at org.sonarqube.gradle.SonarQubeTask.run(SonarQubeTask.java:84)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:621)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:604)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

1 个答案:

答案 0 :(得分:1)

事实证明,这是Java插件4.2中的一个已知问题。它应该在2016年9月16日4.3发布时修复:

AWS Forums