我正在用聲納Java的Java項目的聲納分析,以下配置:聲納掃描儀分析掛出上util.lang.ConcreteReceiverGuard
SonarQuber Servcer 5.6
Sonar-java 4.10.0.10260
SonarQube Scanner 3.0.3.778
Java 1.8.0_121 Oracle Corporation (64-bit)
當我開始這似乎是一個聲納分析工作,直到我得到了以下日誌,然後簡單地分析繼續運行下去(上一次徹夜長跑):
util.lang.ConcreteReceiverGuard reports a runtime deprecation: calling method "padl.kernel.impl.CodeLevelModel.create()" from class "it.unibz.sonarqube_plugin.ExampleSensor"
Please use the methods in "padl.generator.helper.ModelGenerator" to obtain code-level models.
我怎麼能看到什麼錯誤,以及如何解決它?
我應該注意的是:
- 幾個項目使用相同的服務器和相同的規則,它們具有相同的消息,但繼續分析。
- 即使我用調試標誌運行
sonar-scanner -X
,我也沒有收到更多消息。
如果需要完整的日誌分析的是在這裏(注意:當分析由詹金斯開始,這個問題似乎也張貼工作任務)的Sensor ExampleSensor
執行期間
INFO: Scanner configuration file: XXX\sonar-scanner.properties
INFO: Project root configuration file: XXX\sonar-project.properties
INFO: SonarQube Scanner 3.0.3.778
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows 7 6.1 amd64
INFO: User cache: XXX\.sonar\cache
INFO: Load global repositories
INFO: Load global repositories (done) | time=102ms
INFO: User cache: XXX\.sonar\cache
INFO: Load plugins index
INFO: Load plugins index (done) | time=6ms
INFO: SonarQube server 5.6
INFO: Default locale: "fr_FR", source code encoding: "UTF-8"
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=112ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=16ms
INFO: Load active rules
INFO: Load active rules (done) | time=153ms
INFO: Publish mode
INFO: ------------- Scan Pricing - Serveur
INFO: Load server rules
INFO: Load server rules (done) | time=84ms
INFO: Base dir: XXX\server
INFO: Working dir: XXX\server\.scannerwork
INFO: Source paths: src
INFO: Source encoding: UTF-8, default locale: fr_FR
INFO: Index files
INFO: Excluded sources:
INFO: src/main/js/node_modules/**
INFO: src/main/webapp/**
INFO: 584 files indexed
INFO: 230 files ignored because of inclusion/exclusion patterns
INFO: Quality profile for java: XXX Java
INFO: Sensor Lines Sensor
INFO: Sensor Lines Sensor (done) | time=77ms
INFO: Sensor JavaSquidSensor
INFO: Configured Java source version (sonar.java.source): 7
INFO: JavaClasspath initialization
INFO: JavaClasspath initialization (done) | time=6ms
INFO: JavaTestClasspath initialization
INFO: JavaTestClasspath initialization (done) | time=0ms
INFO: Java Main Files AST scan
INFO: 584 source files to be analyzed
INFO: 213/584 files analyzed, current file: XXX\XXX.java
INFO: 255/584 files analyzed, current file: XXX\XXX.java
INFO: 473/584 files analyzed, current file: XXX\XXX.java
INFO: Java Main Files AST scan (done) | time=35221ms
INFO: 584/584 source files have been analyzed
INFO: Java Test Files AST scan
INFO: 0 source files to be analyzed
INFO: Java Test Files AST scan (done) | time=0ms
INFO: 0/0 source files have been analyzed
INFO: Sensor JavaSquidSensor (done) | time=35823ms
INFO: Sensor ExampleSensor
INFO: BaseDir----->XXX\server
Analysing Test...
util.lang.ConcreteReceiverGuard reports a runtime deprecation: calling method "padl.kernel.impl.CodeLevelModel.create()" from class "it.unibz.sonarqube_plugin.ExampleSensor"
Please use the methods in "padl.generator.helper.ModelGenerator" to obtain code-level models.
您似乎在您的實例中有自定義插件。嘗試刪除它們(重新啓動服務器)並重新分析。 –