SonarQube analyzer fails : Start pointer [line=1, lineOffset=0] should be before end pointer [line=1, lineOffset=0]

539 views
Skip to first unread message

simo...@gmail.com

unread,
Mar 16, 2017, 5:45:20 AM3/16/17
to SonarQube
Hi Guys

C# Analyzer fails on TC 9.1, the log attached,

c# Analyzer Scanner version 1.20.1.1275
SonarQube 6.2.zip
Sonar-scanner-2.8 zip

Any ideas would be appreciated!
Thanks
Simon

[14:44:48][Step 3/3] Starting SQR in E:\TeamCity\BuildAgent3\plugins\sonar-plugin-agent\sonar-qube-runner\bin\sonar-runner.bat
[14:44:48][Step 3/3] -Dproject.home=.
[14:44:48][Step 3/3] -Dsonar.host.url=http://sd-5361-9d1a.nam.nsroot.net:9000
[14:44:48][Step 3/3] -Dsonar.jdbc.url=jdbc:h2:tcp://sd-5361-9d1a.nam.nsroot.net:9092/sonar
[14:44:48][Step 3/3] -Dsonar.projectKey=Volt.Core
[14:44:48][Step 3/3] -Dsonar.projectName=Volt Trunk
[14:44:48][Step 3/3] -Dsonar.projectVersion=2.17.4.9055
[14:44:48][Step 3/3] -Dsonar.sources=.
[14:44:48][Step 3/3] -Dsonar.tests=Volt.Core.Tests
[14:44:48][Step 3/3] -Dsonar.binaries=bin\Testing\Release
[14:44:48][Step 3/3] -Dsonar.java.binaries=bin\Testing\Release
[14:44:48][Step 3/3] -Dsonar.modules=Volt.Core
[14:44:48][Step 3/3] -X
[14:44:48][Step 3/3] -Dsonar.resharper.cs.reportPath=E:\TeamCity\BuildAgent3\temp\buildTmp\inspectReport.xml
[14:44:48][Step 3/3] -Dsonar.resharper.solutionFile=pathToSolutionFile
[14:44:48][Step 3/3] -Dsonar.dynamicAnalysis=reuseReports
[14:44:48][Step 3/3] -Dsonar.junit.reportsPath=E:\TeamCity\BuildAgent3\temp\buildTmp
[14:44:48][Step 3/3] Starting: E:\TeamCity\BuildAgent3\plugins\sonar-plugin-agent\sonar-qube-runner\bin\sonar-runner.bat -Dproject.home=. -Dsonar.host.url=http://sd-5361-9d1a.nam.nsroot.net:9000 -Dsonar.jdbc.url=jdbc:h2:tcp://sd-5361-9d1a.nam.nsroot.net:9092/sonar -Dsonar.projectKey=Volt.Core "-Dsonar.projectName=Volt Trunk" -Dsonar.projectVersion=2.17.4.9055 -Dsonar.sources=. -Dsonar.tests=Volt.Core.Tests -Dsonar.binaries=bin\Testing\Release -Dsonar.java.binaries=bin\Testing\Release -Dsonar.modules=Volt.Core -X -Dsonar.resharper.cs.reportPath=E:\TeamCity\BuildAgent3\temp\buildTmp\inspectReport.xml -Dsonar.resharper.solutionFile=pathToSolutionFile -Dsonar.dynamicAnalysis=reuseReports -Dsonar.junit.reportsPath=E:\TeamCity\BuildAgent3\temp\buildTmp
[14:44:48][Step 3/3] in directory: E:\TeamCity\BuildAgent3\work\VoltProject\trunk
[14:44:48][Step 3/3] E:\TeamCity\BuildAgent3\plugins\sonar-plugin-agent\sonar-qube-runner\bin\..
[14:44:48][Step 3/3] SonarQube Runner 2.4
[14:44:48][Step 3/3] Java 1.8.0_121 Oracle Corporation (32-bit)
[14:44:48][Step 3/3] Windows Server 2012 6.2 x86
[14:44:48][Step 3/3] INFO: Error stacktraces are turned on.
[14:44:48][Step 3/3] INFO: Runner configuration file: E:\TeamCity\BuildAgent3\plugins\sonar-plugin-agent\sonar-qube-runner\bin\..\conf\sonar-runner.properties
[14:44:48][Step 3/3] INFO: Project configuration file: NONE
[14:44:48][Step 3/3] INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
[14:44:48][Step 3/3] INFO: Work directory: E:\TeamCity\BuildAgent3\work\VoltProject\trunk\.\.sonar
[14:44:49][Step 3/3] INFO: SonarQube Server 6.2
[14:44:50][Step 3/3] 14:44:50.000 DEBUG - Publish global mode
[14:44:50][Step 3/3] 14:44:50.655 INFO - Load global repositories
[14:44:50][Step 3/3] 14:44:50.986 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/batch/global | time=324ms
[14:44:51][Step 3/3] 14:44:51.098 INFO - Load global repositories (done) | time=445ms
[14:44:51][Step 3/3] 14:44:51.123 WARN - Property 'sonar.jdbc.url' is not supported any more. It will be ignored. There is no longer any DB connection to the SQ database.
[14:44:51][Step 3/3] 14:44:51.127 INFO - User cache: C:\Windows\system32\config\systemprofile\.sonar\cache
[14:44:51][Step 3/3] 14:44:51.496 INFO - Load plugins index
[14:44:51][Step 3/3] 14:44:51.514 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/deploy/plugins/index.txt | time=17ms
[14:44:51][Step 3/3] 14:44:51.515 INFO - Load plugins index (done) | time=19ms
[14:44:51][Step 3/3] 14:44:51.516 DEBUG - Load plugins
[14:44:51][Step 3/3] 14:44:51.531 DEBUG - Load plugins (done) | time=15ms
[14:44:51][Step 3/3] 14:44:51.551 DEBUG - API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
[14:44:51][Step 3/3] 14:44:51.552 DEBUG - API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
[14:44:51][Step 3/3] 14:44:51.708 DEBUG - Plugins:
[14:44:51][Step 3/3] 14:44:51.708 DEBUG - * C# 5.5.1.522 (csharp)
[14:44:51][Step 3/3] 14:44:51.708 DEBUG - * Java 4.3.0.7717 (java)
[14:44:51][Step 3/3] 14:44:51.708 DEBUG - * SVN 1.3 (scmsvn)
[14:44:51][Step 3/3] 14:44:51.708 DEBUG - * Git 1.2 (scmgit)
[14:44:51][Step 3/3] 14:44:51.708 DEBUG - * JavaScript 2.18.0.3454 (javascript)
[14:44:52][Step 3/3] 14:44:52.330 INFO - Process project properties
[14:44:52][Step 3/3] 14:44:52.342 WARN - /!\ A multi-module project can't have source folders, so 'E:\TeamCity\BuildAgent3\work\VoltProject\trunk' won't be used for the analysis. If you want to analyse files of this folder, you should create another sub-module and move them inside it.
[14:44:52][Step 3/3] 14:44:52.342 DEBUG - Process project properties (done) | time=12ms
[14:44:52][Step 3/3] 14:44:52.475 INFO - Load project repositories
[14:44:52][Step 3/3] 14:44:52.641 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/batch/project.protobuf?key=Volt.Core | time=165ms
[14:44:52][Step 3/3] 14:44:52.765 INFO - Load project repositories (done) | time=290ms
[14:44:52][Step 3/3] 14:44:52.836 DEBUG - Available languages:
[14:44:52][Step 3/3] 14:44:52.837 DEBUG - * C# => "cs"
[14:44:52][Step 3/3] 14:44:52.837 DEBUG - * Java => "java"
[14:44:52][Step 3/3] 14:44:52.837 DEBUG - * JavaScript => "js"
[14:44:52][Step 3/3] 14:44:52.841 INFO - Load quality profiles
[14:44:52][Step 3/3] 14:44:52.926 INFO - Load quality profiles (done) | time=85ms
[14:44:52][Step 3/3] 14:44:52.932 INFO - Load active rules
[14:44:53][Step 3/3] 14:44:53.216 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-82028&p=1&ps=500 | time=282ms
[14:44:53][Step 3/3] 14:44:53.679 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-sonar-way-40477&p=1&ps=500 | time=400ms
[14:44:53][Step 3/3] 14:44:53.804 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=js-sonar-way-52312&p=1&ps=500 | time=88ms
[14:44:53][Step 3/3] 14:44:53.838 INFO - Load active rules (done) | time=906ms
[14:44:53][Step 3/3] 14:44:53.908 WARN - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
[14:44:53][Step 3/3] 14:44:53.908 INFO - Publish mode
[14:44:53][Step 3/3] 14:44:53.908 DEBUG - Start recursive analysis of project modules
[14:44:53][Step 3/3] 14:44:53.911 INFO - ------------- Scan Volt.Core
[14:44:54][Step 3/3] 14:44:54.092 INFO - Load server rules
[14:44:54][Step 3/3] 14:44:54.464 DEBUG - GET 200 http://sd-5361-9d1a.nam.nsroot.net:9000/api/rules/list.protobuf | time=371ms
[14:44:54][Step 3/3] 14:44:54.503 INFO - Load server rules (done) | time=411ms
[14:44:54][Step 3/3] 14:44:54.627 DEBUG - Initializers : GenericCoverageSensor
[14:44:54][Step 3/3] 14:44:54.627 INFO - Initializer GenericCoverageSensor
[14:44:54][Step 3/3] 14:44:54.628 INFO - Initializer GenericCoverageSensor (done) | time=0ms
[14:44:54][Step 3/3] 14:44:54.628 INFO - Base dir: E:\TeamCity\BuildAgent3\work\VoltProject\trunk\Volt.Core
[14:44:54][Step 3/3] 14:44:54.628 INFO - Working dir: E:\TeamCity\BuildAgent3\work\VoltProject\trunk\.sonar\Volt.Core_Volt.Core
[14:44:54][Step 3/3] 14:44:54.628 INFO - Source paths: .
[14:44:54][Step 3/3] 14:44:54.628 INFO - Source encoding: windows-1252, default locale: en_US
[14:44:54][Step 3/3] 14:44:54.629 INFO - Index files
[14:44:54][Step 3/3] 14:44:54.644 DEBUG - Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
[14:44:54][Step 3/3] 14:44:54.645 DEBUG - Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
[14:44:54][Step 3/3] 14:44:54.645 DEBUG - Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js

.......

[14:50:16][Step 3/3] 14:50:16.352 INFO - 1418/1420 files analyzed, starting to analyze: E:\TeamCity\BuildAgent3\work\VoltProject\trunk\Volt.Core\Utilities\ZipUnzip.cs
[14:50:16][Step 3/3] 14:50:16.426 INFO - 1419/1420 files analyzed, starting to analyze: E:\TeamCity\BuildAgent3\work\VoltProject\trunk\Volt.Core\Web References\FoxStaticDataWebService\Reference.cs
[14:50:17][Step 3/3] 14:50:17.055 INFO - Importing analysis results from E:\TeamCity\BuildAgent3\work\VoltProject\trunk\.sonar\Volt.Core_Volt.Core\output-cs
[14:50:18][Step 3/3] INFO: ------------------------------------------------------------------------
[14:50:18][Step 3/3] INFO: EXECUTION FAILURE
[14:50:18][Step 3/3] INFO: ------------------------------------------------------------------------
[14:50:18][Step 3/3] Total time: 5:29.788s
[14:50:18][Step 3/3] Final Memory: 5M/107M
[14:50:18][Step 3/3] ERROR: Error during Sonar runner execution
[14:50:18][Step 3/3] INFO: ------------------------------------------------------------------------
[14:50:18][Step 3/3] org.sonar.runner.impl.RunnerException: Unable to execute Sonar
[14:50:18][Step 3/3] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
[14:50:18][Step 3/3] at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
[14:50:18][Step 3/3] at java.security.AccessController.doPrivileged(Native Method)
[14:50:18][Step 3/3] at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
[14:50:18][Step 3/3] at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
[14:50:18][Step 3/3] at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
[14:50:18][Step 3/3] at org.sonar.runner.api.Runner.execute(Runner.java:100)
[14:50:18][Step 3/3] at org.sonar.runner.Main.executeTask(Main.java:70)
[14:50:18][Step 3/3] at org.sonar.runner.Main.execute(Main.java:59)
[14:50:18][Step 3/3] at org.sonar.runner.Main.main(Main.java:53)
[14:50:18][Step 3/3] Caused by: java.lang.IllegalArgumentException: Start pointer [line=1, lineOffset=0] should be before end pointer [line=1, lineOffset=0]
[14:50:18][Step 3/3] at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
[14:50:18][Step 3/3] at org.sonar.api.batch.fs.internal.DefaultInputFile.newRangeValidPointers(DefaultInputFile.java:254)
[14:50:18][Step 3/3] at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:238)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.SensorContextUtils.toTextRange(SensorContextUtils.java:41)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.protobuf.IssuesImporter.consumeFor(IssuesImporter.java:52)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.protobuf.IssuesImporter.consumeFor(IssuesImporter.java:33)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.protobuf.ProtobufImporter.consume(ProtobufImporter.java:49)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.protobuf.RawProtobufImporter.accept(RawProtobufImporter.java:43)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.AbstractSensor.parseProtobuf(AbstractSensor.java:95)
[14:50:18][Step 3/3] at org.sonarsource.dotnet.shared.plugins.AbstractSensor.importResults(AbstractSensor.java:85)
[14:50:18][Step 3/3] at org.sonar.plugins.csharp.CSharpSensor.executeInternal(CSharpSensor.java:111)
[14:50:18][Step 3/3] at org.sonar.plugins.csharp.CSharpSensor.execute(CSharpSensor.java:82)
[14:50:18][Step 3/3] at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
[14:50:18][Step 3/3] at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:57)
[14:50:18][Step 3/3] at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:49)
[14:50:18][Step 3/3] at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
[14:50:18][Step 3/3] at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)
[14:50:18][Step 3/3] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[14:50:18][Step 3/3] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[14:50:18][Step 3/3] at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)
[14:50:18][Step 3/3] at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)
[14:50:18][Step 3/3] at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:240)
[14:50:18][Step 3/3] at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)
[14:50:18][Step 3/3] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[14:50:18][Step 3/3] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[14:50:18][Step 3/3] at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
[14:50:18][Step 3/3] at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
[14:50:18][Step 3/3] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
[14:50:18][Step 3/3] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
[14:50:18][Step 3/3] at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
[14:50:18][Step 3/3] at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
[14:50:18][Step 3/3] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:76)
[14:50:18][Step 3/3] at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
[14:50:18][Step 3/3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[14:50:18][Step 3/3] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[14:50:18][Step 3/3] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[14:50:18][Step 3/3] at java.lang.reflect.Method.invoke(Method.java:498)
[14:50:18][Step 3/3] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
[14:50:18][Step 3/3] ... 9 more
[14:50:18][Step 3/3] Process exited with code 1
[14:50:18][Step 3/3] Step Sonar Qube (SonarQube Runner) failed

Amaury Leve

unread,
Apr 19, 2017, 5:04:57 AM4/19/17
to simo...@gmail.com, SonarQube
Hi Simon,

Sorry for this late answer.

If you are able to update the version of SonarC#, could you do it and tell us if you are still experiencing the issue? If you can't change the version of SonarC#, could you manually check that all your source files are encoded using UTF-8?

Cheers,
DotNet Team

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/1920ee2f-9dcf-4755-8ed5-d4d116b65971%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Amaury LEVÉ | SonarSource

Software Developer - .Net Team

http://sonarsource.com


Are you using SonarLint in your IDE? 
Reply all
Reply to author
Forward
0 new messages