SonarQube扫描仪IllegalArgumentException

时间:2016-11-17 18:55:07

标签: .net sonarqube sonarqube-scan

运行SonarQube Scanner 2.2.0.24后,我收到了以下错误消息,但它根本没有帮助。我正在使用d:sonar.log.level=TRACE标志。

关于这个的任何提示?

  

\ SonarQube.Scanner.MSBuild.exe结束   1> d:\ tb \ logs \ sonar.end.log.20161711.txt 19:20:53.674错误:错误   在SonarQube Scanner执行期间java.lang.IllegalArgumentException:   开始指针[line = 3,lineOffset = 0]应该在结束指针之前   [line = 3,lineOffset = 0]           在org.sonar.api.internal.google.common.base.Preconditions.checkArgument   (Preconditions.java:145)           在org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointer   S(DefaultInputFile.java:254)           at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInpu)   tFile.java:238)           在org.sonarsource.dotnet.shared.plugins.AbstractSensor $ SarifParserCallb   ackImplementation.onIssue(AbstractSensor.java:144)           at org.sonarsource.dotnet.shared.sarif.SarifParser01And04.handleAnalysis   TargetElement(SarifParser01And04.java:109)           at org.sonarsource.dotnet.shared.sarif.SarifParser01And04.handleIssue(Sa   rifParser01And04.java:73)           at org.sonarsource.dotnet.shared.sarif.SarifParser01And04.handleIssues(S   arifParser01And04.java:55)           at org.sonarsource.dotnet.shared.sarif.SarifParser01And04.parse(SarifPar)   ser01And04.java:43)           在org.sonar.plugins.csharp.CSharpSensor.importRoslynReport(CSharpSensor)   的.java:183)           at org.sonar.plugins.csharp.CSharpSensor.executeInternal(CSharpSensor.ja   VA:118)           在org.sonar.plugins.csharp.CSharpSensor.execute(CSharpSensor.java:85)           在org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)

    at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecuto
     

r.java:57)           在org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java)   :49)           在org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseE)   xecutor.java:78)           在org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanCon)   tainer.java:184)           在org.sonar.core.platform.ComponentContainer.startComponents(ComponentC   ontainer.java:142)           在org.sonar.core.platform.ComponentContainer.execute(ComponentContainer   的.java:127)           在org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer   的.java:241)           在org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectSc   anContainer.java:236)           在org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectSc   anContainer.java:234)           在org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanC)   ontainer.java:226)           在org.sonar.core.platform.ComponentContainer.startComponents(ComponentC   ontainer.java:142)           在org.sonar.core.platform.ComponentContainer.execute(ComponentContainer   的.java:127)           在org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)           在org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:   86)           在org.sonar.core.platform.ComponentContainer.startComponents(ComponentC   ontainer.java:142)           在org.sonar.core.platform.ComponentContainer.execute(ComponentContainer   的.java:127)           在org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContain   er.java:115)           在org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:118)           在org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.exec   UTE(BatchIsolatedLauncher.java:62)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)           at java.lang.reflect.Method.invoke(Unknown Source)           在org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(Iso   latedLauncherProxy.java:60)           在com.sun.proxy。$ Proxy0.execute(未知来源)           在org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner)   的.java:233)           在org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScann)   er.java:151)           在org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)           在org.sonarsource.scanner.cli.Main.execute(Main.java:74)           在org.sonarsource.scanner.cli.Main.main(Main.java:61)19:20:53.674错误:19:20:53.674错误:重新运行SonarQube扫描仪   -X开关启用完整的调试日志记录。 SonarQube扫描仪做到了   未成功完成19:20:53.845后处理失败。出口   代码:1

0 个答案:

没有答案