SonarQube无法分析文件 - JSP中的Unsuppored Tag

时间:2016-04-25 17:08:03

标签: sonarqube

我正在运行声纳:声纳来分析我的代码库并针对一些jsp页面点击以下异常。我们在声纳5.1.2。

我们有自定义标签,所以想知道我是否有办法链接我们自己的标签或摆脱这个exceino? mvn作业仍然可以成功运行,但不确定在jsp页面上对这些异常的分析有多准确。

[ERROR] [15:50:44.120] Cannot analyze file /xxx/xxx/xxx/Common.jsp
java.lang.NullPointerException: null
    at org.sonar.plugins.web.checks.sonar.UnsupportedTagsInHtml5Check.isUnsupportedTag(UnsupportedTagsInHtml5Check.java:81) ~[na:na]
    at org.sonar.plugins.web.checks.sonar.UnsupportedTagsInHtml5Check.startElement(UnsupportedTagsInHtml5Check.java:75) ~[na:na]
    at org.sonar.plugins.web.visitor.HtmlAstScanner.scanElementTag(HtmlAstScanner.java:118) ~[na:na]
    at org.sonar.plugins.web.visitor.HtmlAstScanner.scanElement(HtmlAstScanner.java:97) ~[na:na]
    at org.sonar.plugins.web.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:81) ~[na:na]
    at org.sonar.plugins.web.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:60) ~[na:na]
    at org.sonar.plugins.web.core.WebSensor.analyse(WebSensor.java:95) ~[na:na]
    at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:59) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:51) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.phases.DatabaseModePhaseExecutor.execute(DatabaseModePhaseExecutor.java:120) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:264) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:235) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:230) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:228) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:220) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:135) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:158) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67) [sonar-batch-maven-compat-5.1.2.jar:na]
    at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48) [sonar-runner-batch1679801380261302841.jar:na]

0 个答案:

没有答案