java.lang.IllegalArgumentException: URI is not absolute ASP .NET CORE 6

SonarScanner for MSBuild 5.13
SonarQube Version 10 and 9.9

Any solution for this ? I already use the latest SonarQube and SonarScanner for .dot net


INFO: Importing 1 Roslyn report
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:01.681s
INFO: Final Memory: 15M/60M
ERROR: Error during SonarScanner execution
INFO: ------------------------------------------------------------------------
java.lang.IllegalArgumentException: URI is not absolute
        at java.base/java.io.File.<init>(File.java:418)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.uriToAbsolutePath(SarifParser10.java:225)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocation(SarifParser10.java:175)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleResultFileElement(SarifParser10.java:146)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocationsElement(SarifParser10.java:138)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssue(SarifParser10.java:107)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssues(SarifParser10.java:95)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:65)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:39)
        at org.sonarsource.dotnet.shared.plugins.RoslynDataImporter.importRoslynReports(RoslynDataImporter.java:54)
        at org.sonarsource.dotnet.shared.plugins.DotNetSensor.executeInternal(DotNetSensor.java:105)
        at org.sonarsource.dotnet.shared.plugins.DotNetSensor.execute(DotNetSensor.java:73)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:388)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:384)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:353)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
        at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
The SonarScanner did not complete successfully
06:45:55.104  Post-processing failed. Exit code: 1

Hi,

Welcome to the community!

Can you share the full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann

Hi Ann,

May I know where I can get the full analysis log? Thank you.

Jhe

Hi Jhe,

You posted the tail-end of your analysis log in your first post. I just want the whole thing.

 
Ann

hi this is the whole analysis from pre-processing


SonarScanner for MSBuild 5.13
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
15:04:38.565  Updating build integration targets...
15:04:39.358  Fetching analysis configuration settings...
15:04:39.993  Provisioning analyzer assemblies for cs...
15:04:39.995  Installing required Roslyn analyzers...
15:04:39.997  Processing plugin: csharp version 8.9.0.19135
15:04:40.054  Processing plugin: vbnet version 8.9.0.19135
15:04:40.278  Provisioning analyzer assemblies for vbnet...
15:04:40.279  Installing required Roslyn analyzers...
15:04:40.28  Processing plugin: csharp version 8.9.0.19135
15:04:40.282  Processing plugin: vbnet version 8.9.0.19135
15:04:40.295  Incremental PR analysis is available starting with SonarQube 9.9 or later.
15:04:40.296  Cache data is empty. A full analysis will be performed.
15:04:40.318  Pre-processing succeeded.


SonarScanner for MSBuild 5.13
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
Calling the SonarScanner CLI...
INFO: Scanner configuration file: C:\dotNet Core5.0\sonar-scanner-4.8.0.2856\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\dotNet Core5.0\.sonarqube\out\sonar-project.properties
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.17 Oracle Corporation (64-bit)
INFO: Windows 11 10.0 amd64
INFO: User cache: C:\Users\jraytana\.sonar\cache
INFO: Analyzing on SonarQube server 8.4.0
INFO: Default locale: "en_PH", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=400ms
INFO: Server id: FB4B1083-AXKoKDWpGJsMk_p8691o
INFO: User cache: C:\Users\jraytana\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=70ms
INFO: Load/download plugins (done) | time=170ms
INFO: Process project properties
INFO: Process project properties (done) | time=131ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=34ms
INFO: Project key: TimeKeepingAdmin.Web
INFO: Base dir: C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin
INFO: Working dir: C:\dotNet Core5.0\.sonarqube\out\.sonar
INFO: Load project settings for component key: 'TimeKeepingAdmin.Web'
INFO: Load project settings for component key: 'TimeKeepingAdmin.Web' (done) | time=68ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=73ms
INFO: Load active rules
INFO: Load active rules (done) | time=1342ms
WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
INFO: Indexing files...
INFO: Project configuration:
INFO: Indexing files of module 'TimeKeepingAdmin'
INFO:   Base dir: C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin
INFO:   Source paths: Common/BaseController.cs, Common/Enum.cs, Common/PaginatedReq...
INFO: Load project repositories
INFO: Load project repositories (done) | time=73ms
INFO: Indexing files of module 'TimeKeepingAdmin.Web'
INFO:   Base dir: C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin
INFO: 3901 files indexed
INFO: Quality profile for cs: Sonar way
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module TimeKeepingAdmin
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=56ms
WARNING: WARNING: An illegal reflective access operation has occurred
WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/jraytana/.sonar/cache/52f5340dd05620cd162e2b9a45a57124/sonar-javascript-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: WARNING: All illegal access operations will be denied in a future release
INFO: Sensor SonarCSS Metrics [cssfamily]
INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=1205ms
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: 90 source files to be analyzed
INFO: 90/90 source files have been analyzed
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=11259ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=19ms
INFO: Sensor JavaScript analysis [javascript]
INFO: 30 source files to be analyzed
INFO: 30/30 source files have been analyzed
INFO: Sensor SonarJS [javascript]
INFO: 30 source files to be analyzed
INFO: 19/30 files analyzed, current file: wwwroot/js/jsx.js
INFO: Sensor SonarJS [javascript] (done) | time=15044ms
INFO: 30/30 source files have been analyzed
INFO: Sensor JavaScript analysis [javascript] (done) | time=30674ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=2ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=10ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=354ms
INFO: ------------- Run sensors on module TimeKeepingAdmin.Web
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=0ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=1ms
INFO: Sensor C# [csharp]
INFO: Importing results from 5 proto files in 'C:\dotNet Core5.0\.sonarqube\out\0\output-cs'
INFO: Importing 1 Roslyn report
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 55.268s
INFO: Final Memory: 15M/64M
ERROR: Error during SonarScanner execution
INFO: ------------------------------------------------------------------------
java.lang.IllegalArgumentException: URI is not absolute
        at java.base/java.io.File.<init>(File.java:418)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.uriToAbsolutePath(SarifParser10.java:225)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocation(SarifParser10.java:175)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleResultFileElement(SarifParser10.java:146)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocationsElement(SarifParser10.java:138)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssue(SarifParser10.java:107)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssues(SarifParser10.java:95)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:65)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:39)
        at org.sonarsource.dotnet.shared.plugins.RoslynDataImporter.importRoslynReports(RoslynDataImporter.java:54)
        at org.sonarsource.dotnet.shared.plugins.DotNetSensor.executeInternal(DotNetSensor.java:105)
        at org.sonarsource.dotnet.shared.plugins.DotNetSensor.execute(DotNetSensor.java:73)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:388)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:384)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:353)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
        at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
The SonarScanner did not complete successfully
15:06:24.587  Post-processing failed. Exit code: 1

Hi,

Your analysis log shows that you’re on SonarQube version 8.4. That’s way out of date. You need to upgrade and see if this is still reproducible. Your upgrade path is:

8.4 → 8.9.10 → 9.9 → 10.0 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
HTH,
Ann

Error still persists. Am I doing right on upgrade
I downloaded the 9.9 LTS


 C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)>dotnet SonarScanner.MSBuild.dll begin /k:"TimeKeepingAdmin.Web" /d:sonar.host.url="https://sonarqube.equicom.com" /d:sonar.login="****"
SonarScanner for MSBuild 5.13
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
20:21:44.532  Updating build integration targets...
20:21:44.975  Fetching analysis configuration settings...
20:21:45.362  Provisioning analyzer assemblies for cs...
20:21:45.364  Installing required Roslyn analyzers...
20:21:45.365  Processing plugin: csharp version 8.9.0.19135
20:21:45.422  Processing plugin: vbnet version 8.9.0.19135
20:21:45.579  Provisioning analyzer assemblies for vbnet...
20:21:45.58  Installing required Roslyn analyzers...
20:21:45.581  Processing plugin: csharp version 8.9.0.19135
20:21:45.582  Processing plugin: vbnet version 8.9.0.19135
20:21:45.589  Incremental PR analysis is available starting with SonarQube 9.9 or later.
20:21:45.59  Cache data is empty. A full analysis will be performed.
20:21:45.61  Pre-processing succeeded.

C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)>dotnet build "C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin.sln"

C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)>dotnet SonarScanner.MSBuild.dll end /d:sonar.login="********"
SonarScanner for MSBuild 5.13
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
Calling the SonarScanner CLI...
INFO: Scanner configuration file: C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)\sonar-scanner-4.8.0.2856\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)\.sonarqube\out\sonar-project.properties
INFO: SonarScanner 4.8.0.2856
INFO: Java 11.0.17 Oracle Corporation (64-bit)
INFO: Windows 11 10.0 amd64
INFO: User cache: C:\Users\jraytana\.sonar\cache
INFO: Analyzing on SonarQube server 8.4.0
INFO: Default locale: "en_PH", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=382ms
INFO: Server id: FB4B1083-AXKoKDWpGJsMk_p8691o
INFO: User cache: C:\Users\jraytana\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=72ms
INFO: Load/download plugins (done) | time=190ms
INFO: Process project properties
INFO: Process project properties (done) | time=162ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=38ms
INFO: Project key: TimeKeepingAdmin.Web
INFO: Base dir: C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin
INFO: Working dir: C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)\.sonarqube\out\.sonar
INFO: Load project settings for component key: 'TimeKeepingAdmin.Web'
INFO: Load project settings for component key: 'TimeKeepingAdmin.Web' (done) | time=43ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=71ms
INFO: Load active rules
INFO: Load active rules (done) | time=995ms
WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
INFO: Indexing files...
INFO: Project configuration:
INFO: Indexing files of module 'TimeKeepingAdmin'
INFO:   Base dir: C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin
INFO:   Source paths: Common/BaseController.cs, Common/Enum.cs, Common/PaginatedReq...
INFO: Load project repositories
INFO: Load project repositories (done) | time=46ms
INFO: Indexing files of module 'TimeKeepingAdmin.Web'
INFO:   Base dir: C:\ECS Project\Time Keeping Admin\Updated\TimeKeepingAdmin
INFO: 3901 files indexed
INFO: Quality profile for cs: Sonar way
INFO: Quality profile for css: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for web: Sonar way
INFO: ------------- Run sensors on module TimeKeepingAdmin
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=56ms
WARNING: WARNING: An illegal reflective access operation has occurred
WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/jraytana/.sonar/cache/52f5340dd05620cd162e2b9a45a57124/sonar-javascript-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: WARNING: All illegal access operations will be denied in a future release
INFO: Sensor SonarCSS Metrics [cssfamily]
INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=1383ms
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: 90 source files to be analyzed
INFO: 90/90 source files have been analyzed
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=14281ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=11ms
INFO: Sensor JavaScript analysis [javascript]
INFO: 30 source files to be analyzed
INFO: 30/30 source files have been analyzed
INFO: Sensor SonarJS [javascript]
INFO: 30 source files to be analyzed
INFO: 19/30 files analyzed, current file: wwwroot/js/jsx.js
INFO: Sensor SonarJS [javascript] (done) | time=17839ms
INFO: Sensor JavaScript analysis [javascript] (done) | time=37235ms
INFO: Sensor C# Properties [csharp]
INFO: 30/30 source files have been analyzed
INFO: Sensor C# Properties [csharp] (done) | time=3ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=11ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=419ms
INFO: ------------- Run sensors on module TimeKeepingAdmin.Web
INFO: Sensor SonarCSS Rules [cssfamily]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
INFO: Sensor C# [csharp]
INFO: Importing results from 5 proto files in 'C:\Users\jraytana\Downloads\sonar-scanner-msbuild-5.13.0.66756-net5.0 (2)\.sonarqube\out\0\output-cs'
INFO: Importing 1 Roslyn report
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:07.106s
INFO: Final Memory: 15M/64M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalArgumentException: URI is not absolute
        at java.base/java.io.File.<init>(File.java:418)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.uriToAbsolutePath(SarifParser10.java:225)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocation(SarifParser10.java:175)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleResultFileElement(SarifParser10.java:146)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocationsElement(SarifParser10.java:138)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssue(SarifParser10.java:107)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssues(SarifParser10.java:95)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:65)
        at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:39)
        at org.sonarsource.dotnet.shared.plugins.RoslynDataImporter.importRoslynReports(RoslynDataImporter.java:54)
        at org.sonarsource.dotnet.shared.plugins.DotNetSensor.executeInternal(DotNetSensor.java:105)
        at org.sonarsource.dotnet.shared.plugins.DotNetSensor.execute(DotNetSensor.java:73)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:388)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:384)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:353)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
        at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
The SonarScanner did not complete successfully
20:23:22.567  Post-processing failed. Exit code: 1

Hi,

You may have downloaded 9.9 LTS, but you don’t appear to be running it.

 
Ann

Can you give the instruction how will I use the 9.9

I download it in https://docs.sonarqube.org/9.9/analyzing-source-code/scanners/sonarscanner-for-dotnet/

Hi,

Take a look at the Upgrade Guide.

 
Ann

I am getting same error for one of .NET CORE 6 project.
We are using

  • Community Edition
  • Version 8.6 (build 39681)
  • LGPL v3

From the above communication, not sure if this issue is fixed with old or new version of sonarqube. Please suggest.
Here is the error log at my end.


ERROR: Error during SonarScanner execution
java.lang.IllegalArgumentException: URI is not absolute
	at java.base/java.io.File.<init>(File.java:418)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.uriToAbsolutePath(SarifParser10.java:225)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocation(SarifParser10.java:175)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleResultFileElement(SarifParser10.java:146)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocationsElement(SarifParser10.java:138)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssue(SarifParser10.java:107)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssues(SarifParser10.java:95)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:65)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:39)
	at org.sonarsource.dotnet.shared.plugins.RoslynDataImporter.importRoslynReports(RoslynDataImporter.java:54)
	at org.sonarsource.dotnet.shared.plugins.DotNetSensor.executeInternal(DotNetSensor.java:111)
	at org.sonarsource.dotnet.shared.plugins.DotNetSensor.execute(DotNetSensor.java:71)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
	at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:49)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:361)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR: 
The SonarScanner did not complete successfully
16:04:49.067  Post-processing failed. Exit code: 1

Hi @rajnish.sharma,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.6 → 8.9.10 → 9.9.2 → 10.2.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us in a brand new thread.

 
Ann