Fail to execute scan on c/c++-code - IllegalStateException

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this
    Hi,
    We are trying to scan c-code with sonarqube (developer edition). We recieve the following error messages everytime we try to analyse our code:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 8.547s
INFO: Final Memory: 16M/57M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Failed to index files
        at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.indexFiles(ProjectFileIndexer.java:204)
        at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.index(ProjectFileIndexer.java:159)
        at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.indexModulesRecursively(ProjectFileIndexer.java:138)
        at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.index(ProjectFileIndexer.java:108)
        at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:352)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        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(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        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:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.nio.file.AccessDeniedException: C:\Users\fef50146\Anwendungsdaten
        at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
        at java.base/sun.nio.fs.WindowsDirectoryStream.<init>(Unknown Source)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newDirectoryStream(Unknown Source)
        at java.base/java.nio.file.Files.newDirectoryStream(Unknown Source)
        at java.base/java.nio.file.FileTreeWalker.visit(Unknown Source)
        at java.base/java.nio.file.FileTreeWalker.next(Unknown Source)
        at java.base/java.nio.file.Files.walkFileTree(Unknown Source)
        at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.indexDirectory(ProjectFileIndexer.java:211)
        at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.indexFiles(ProjectFileIndexer.java:197)
        ... 23 more
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

The directory “C:\Users\fef50146\Anwendungsdaten” doesn’t exist. It is actually called “C:\Users\fef50146\AppData”.
So far we went trough existing topics to find a solution for our problem without success.

Please let me know, how to fix this.

[
SonarQube Version 9.5.0.56709
Scanner Version 4.7.0.2747
No Plugins installed
]

Thanks,
jo

Hi @Jojo_Hollweck ,

Welcome to Sonar Community :sonar:

Can you rerun your scan analysis with debug logs enabled (add -X to the sonar-scanner command) and attach the logs here? I will need a bit more contextual information from the logs to assist you.

Hi Joe ,
here are the debug logs:

C:\Users\fef50146\Documents\Aufgabe1>sonar-scanner.bat -D"sonar.projectKey=Test1" -D"sonar.sources=." -D"sonar.cfamily.build-wrapper-output=bw-output" -D"sonar.host.url=http://localhost:9000" -D"sonar.login=sqp_8010676d821c4eb7932d5eb18f5260c01c7aaef8" -X
15:08:27.377 INFO: Scanner configuration file: C:\Sonarcube\Scanner\sonar-scanner-4.7.0.2747-windows\bin\..\conf\sonar-scanner.properties
15:08:27.392 INFO: Project root configuration file: NONE
15:08:27.424 INFO: SonarScanner 4.7.0.2747
15:08:27.424 INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
15:08:27.424 INFO: Windows 10 10.0 amd64
15:08:27.689 DEBUG: keyStore is :
15:08:27.689 DEBUG: keyStore type is : pkcs12
15:08:27.689 DEBUG: keyStore provider is :
15:08:27.689 DEBUG: init keystore
15:08:27.689 DEBUG: init keymanager of type SunX509
15:08:28.049 DEBUG: Create: C:\Users\fef50146\.sonar\cache
15:08:28.049 INFO: User cache: C:\Users\fef50146\.sonar\cache
15:08:28.049 DEBUG: Create: C:\Users\fef50146\.sonar\cache\_tmp
15:08:28.049 DEBUG: Extract sonar-scanner-api-batch in temp...
15:08:28.064 DEBUG: Get bootstrap index...
15:08:28.064 DEBUG: Download: http://localhost:9000/batch/index
15:08:28.142 DEBUG: Get bootstrap completed
15:08:28.158 DEBUG: Create isolated classloader...
15:08:28.158 DEBUG: Start temp cleaning...
15:08:28.174 DEBUG: Temp cleaning done
15:08:28.174 INFO: Scanner configuration file: C:\Sonarcube\Scanner\sonar-scanner-4.7.0.2747-windows\bin\..\conf\sonar-scanner.properties
15:08:28.174 INFO: Project root configuration file: NONE
15:08:28.174 DEBUG: Execution getVersion
15:08:28.221 INFO: Analyzing on SonarQube server 9.5.0.56709
15:08:28.221 INFO: Default locale: "de_DE", source code encoding: "windows-1252" (analysis is platform dependent)
15:08:28.221 DEBUG: Work directory: C:\Users\fef50146\Documents\Aufgabe1\.scannerwork
15:08:28.221 DEBUG: Execution execute
15:08:28.908 DEBUG: Developer 9.5.0.56709
15:08:29.345 INFO: Load global settings
15:08:29.439 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf | time=94ms
15:08:29.486 INFO: Load global settings (done) | time=141ms
15:08:29.486 INFO: Server id: 147B411E-AYJE7FSh6b2LRrdkrIMM
15:08:29.502 INFO: User cache: C:\Users\fef50146\.sonar\cache
15:08:29.502 INFO: Load/download plugins
15:08:29.502 INFO: Load plugins index
15:08:29.533 DEBUG: GET 200 http://localhost:9000/api/plugins/installed | time=31ms
15:08:29.595 INFO: Load plugins index (done) | time=93ms
15:08:29.939 INFO: Load/download plugins (done) | time=437ms
15:08:30.174 DEBUG: Plugins:
15:08:30.174 DEBUG:   * IaC Code Quality and Security 1.7.0.2012 (iac)
15:08:30.174 DEBUG:   * PL/SQL Code Quality and Security 3.7.0.4372 (plsql)
15:08:30.174 DEBUG:   * Scala Code Quality and Security 1.9.0.3429 (sonarscala)
15:08:30.189 DEBUG:   * C# Code Quality and Security 8.40.0.48530 (csharp)
15:08:30.189 DEBUG:   * Vulnerability Analysis 9.5.1.16463 (security)
15:08:30.189 DEBUG:   * Java Code Quality and Security 7.12.0.29739 (java)
15:08:30.189 DEBUG:   * HTML Code Quality and Security 3.6.0.3106 (web)
15:08:30.189 DEBUG:   * Flex Code Quality and Security 2.7.0.2865 (flex)
15:08:30.189 DEBUG:   * XML Code Quality and Security 2.5.0.3376 (xml)
15:08:30.189 DEBUG:   * Text file Code Quality and Security 1.1.0.282 (text)
15:08:30.189 DEBUG:   * VB.NET Code Quality and Security 8.40.0.48530 (vbnet)
15:08:30.189 DEBUG:   * Swift Code Quality and Security 4.6.0.5406 (swift)
15:08:30.189 DEBUG:   * CFamily Code Quality and Security 6.34.0.48468 (cpp)
15:08:30.189 DEBUG:   * Python Code Quality and Security 3.13.0.9611 (python)
15:08:30.189 DEBUG:   * Dataflow Bug Detection 1.2.2.1720 (dbd)
15:08:30.189 DEBUG:   * Go Code Quality and Security 1.9.0.3429 (go)
15:08:30.189 DEBUG:   * JaCoCo 1.1.1.1157 (jacoco)
15:08:30.189 DEBUG:   * Kotlin Code Quality and Security 2.9.0.1147 (kotlin)
15:08:30.189 DEBUG:   * Dataflow Bug Detection Rules for Java 1.2.2.1720 (dbdjavafrontend)
15:08:30.189 DEBUG:   * T-SQL Code Quality and Security 1.6.0.4844 (tsql)
15:08:30.189 DEBUG:   * JavaScript/TypeScript/CSS Code Quality and Security 9.3.0.18033 (javascript)
15:08:30.189 DEBUG:   * Ruby Code Quality and Security 1.9.0.3429 (ruby)
15:08:30.189 DEBUG:   * Vulnerability Rules for C# 9.5.1.16463 (securitycsharpfrontend)
15:08:30.205 DEBUG:   * Vulnerability Rules for Java 9.5.1.16463 (securityjavafrontend)
15:08:30.205 DEBUG:   * Vulnerability Rules for JS 9.5.1.16463 (securityjsfrontend)
15:08:30.205 DEBUG:   * Vulnerability Rules for Python 9.5.1.16463 (securitypythonfrontend)
15:08:30.205 DEBUG:   * PHP Code Quality and Security 3.23.1.8766 (php)
15:08:30.205 DEBUG:   * ABAP Code Quality and Security 3.10.0.3628 (abap)
15:08:30.205 DEBUG:   * Configuration detection fot Code Quality and Security 1.2.0.267 (config)
15:08:30.205 DEBUG:   * Vulnerability Rules for PHP 9.5.1.16463 (securityphpfrontend)
15:08:30.330 INFO: Loaded core extensions: developer-scanner
15:08:30.345 DEBUG: Installed core extension: developer-scanner
15:08:31.142 INFO: Process project properties
15:08:31.158 INFO: Process project properties (done) | time=16ms
15:08:31.158 INFO: Execute project builders
15:08:31.158 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
15:08:31.158 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
15:08:31.158 INFO: Execute project builders (done) | time=0ms
15:08:31.174 INFO: Project key: Test1
15:08:31.174 INFO: Base dir: C:\Users\fef50146\Documents\Aufgabe1
15:08:31.174 INFO: Working dir: C:\Users\fef50146\Documents\Aufgabe1\.scannerwork
15:08:31.174 DEBUG: Project global encoding: windows-1252, default locale: de_DE
15:08:31.189 INFO: Load project settings for component key: 'Test1'
15:08:31.220 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf?component=Test1 | time=31ms
15:08:31.236 INFO: Load project settings for component key: 'Test1' (done) | time=47ms
15:08:31.439 INFO: Load project branches
15:08:31.470 DEBUG: GET 200 http://localhost:9000/api/project_branches/list?project=Test1 | time=31ms
15:08:31.502 INFO: Load project branches (done) | time=63ms
15:08:31.502 INFO: Load project pull requests
15:08:31.517 DEBUG: GET 200 http://localhost:9000/api/project_pull_requests/list?project=Test1 | time=15ms
15:08:31.517 INFO: Load project pull requests (done) | time=15ms
15:08:31.533 INFO: Load branch configuration
15:08:31.533 INFO: Load branch configuration (done) | time=0ms
15:08:31.549 DEBUG: Creating module hierarchy
15:08:31.549 DEBUG:   Init module 'Test1'
15:08:31.564 DEBUG:     Base dir: C:\Users\fef50146\Documents\Aufgabe1
15:08:31.564 DEBUG:     Working dir: C:\Users\fef50146\Documents\Aufgabe1\.scannerwork
15:08:31.564 DEBUG:     Module global encoding: windows-1252, default locale: de_DE
15:08:31.611 DEBUG: Available languages:
15:08:31.627 DEBUG:   * Terraform => "terraform"
15:08:31.627 DEBUG:   * CloudFormation => "cloudformation"
15:08:31.627 DEBUG:   * PL/SQL => "plsql"
15:08:31.627 DEBUG:   * Scala => "scala"
15:08:31.627 DEBUG:   * C# => "cs"
15:08:31.627 DEBUG:   * Java => "java"
15:08:31.627 DEBUG:   * HTML => "web"
15:08:31.627 DEBUG:   * JSP => "jsp"
15:08:31.627 DEBUG:   * Flex => "flex"
15:08:31.627 DEBUG:   * XML => "xml"
15:08:31.627 DEBUG:   * Text => "text"
15:08:31.627 DEBUG:   * VB.NET => "vbnet"
15:08:31.627 DEBUG:   * Swift => "swift"
15:08:31.627 DEBUG:   * C => "c"
15:08:31.642 DEBUG:   * C++ => "cpp"
15:08:31.642 DEBUG:   * Objective-C => "objc"
15:08:31.642 DEBUG:   * Python => "py"
15:08:31.642 DEBUG:   * Go => "go"
15:08:31.642 DEBUG:   * Kotlin => "kotlin"
15:08:31.658 DEBUG:   * T-SQL => "tsql"
15:08:31.658 DEBUG:   * JavaScript => "js"
15:08:31.658 DEBUG:   * TypeScript => "ts"
15:08:31.658 DEBUG:   * CSS => "css"
15:08:31.658 DEBUG:   * Ruby => "ruby"
15:08:31.658 DEBUG:   * PHP => "php"
15:08:31.658 DEBUG:   * ABAP => "abap"
15:08:31.658 DEBUG:   * YAML => "yaml"
15:08:31.658 DEBUG:   * JSON => "json"
15:08:31.689 DEBUG: SCM Step is disabled by configuration
15:08:31.736 INFO: Load quality profiles
15:08:31.939 DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?project=Test1 | time=187ms
15:08:32.158 INFO: Load quality profiles (done) | time=422ms
15:08:32.174 INFO: Load active rules
15:08:32.408 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Y286b2LRrdkrSHH&ps=500&p=1 | time=219ms
15:08:32.611 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Y_A6b2LRrdkrSIl&ps=500&p=1 | time=62ms
15:08:32.658 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7ZEn6b2LRrdkrSJF&ps=500&p=1 | time=31ms
15:08:32.986 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7ZF16b2LRrdkrSPz&ps=500&p=1 | time=328ms
15:08:33.455 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7ZPm6b2LRrdkrSYx&ps=500&p=1 | time=281ms
15:08:33.861 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7ZYJ6b2LRrdkrSf8&ps=500&p=1 | time=359ms
15:08:34.560 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Zh66b2LRrdkrSyB&ps=500&p=1 | time=667ms
15:08:34.718 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Zs56b2LRrdkrS6v&ps=500&p=1 | time=87ms
15:08:34.799 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Z5m6b2LRrdkrS9-&ps=500&p=1 | time=73ms
15:08:34.861 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Zzv6b2LRrdkrS7_&ps=500&p=1 | time=62ms
15:08:34.877 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Z-u6b2LRrdkrS-v&ps=500&p=1 | time=16ms
15:08:34.908 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7Z--6b2LRrdkrS-z&ps=500&p=1 | time=31ms
15:08:35.158 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7aEV6b2LRrdkrTCs&ps=500&p=1 | time=250ms
15:08:35.267 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7aTO6b2LRrdkrTFX&ps=500&p=1 | time=62ms
15:08:35.392 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7abC6b2LRrdkrTIB&ps=500&p=1 | time=125ms
15:08:35.455 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7aaz6b2LRrdkrTFz&ps=500&p=1 | time=47ms
15:08:35.986 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7a5U6b2LRrdkrTV9&ps=500&p=1 | time=531ms
15:08:36.674 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7bEj6b2LRrdkrTi8&ps=500&p=1 | time=454ms
15:08:37.111 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7bU66b2LRrdkrTrN&ps=500&p=1 | time=62ms
15:08:37.236 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7bOj6b2LRrdkrTo-&ps=500&p=1 | time=125ms
15:08:37.377 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7bbf6b2LRrdkrTth&ps=500&p=1 | time=141ms
15:08:37.499 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7bi06b2LRrdkrTvg&ps=500&p=1 | time=88ms
15:08:38.016 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7bwA6b2LRrdkrT4r&ps=500&p=1 | time=510ms
15:08:38.225 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7b2m6b2LRrdkrUCz&ps=500&p=1 | time=194ms
15:08:38.631 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7cKX6b2LRrdkrUJ5&ps=500&p=1 | time=306ms
15:08:38.877 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7cP_6b2LRrdkrUNA&ps=500&p=1 | time=123ms
15:08:39.102 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7cfn6b2LRrdkrUeQ&ps=500&p=1 | time=178ms
15:08:39.458 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYJE7cYC6b2LRrdkrUUe&ps=500&p=1 | time=356ms
15:08:39.512 INFO: Load active rules (done) | time=7338ms
15:08:39.540 INFO: Load analysis cache
15:08:39.550 DEBUG: GET 404 http://localhost:9000/api/analysis_cache/get?project=Test1 | time=0ms
15:08:39.566 INFO: Load analysis cache (404) | time=26ms
15:08:39.767 INFO: Load project repositories
15:08:39.788 DEBUG: GET 200 http://localhost:9000/batch/project.protobuf?key=Test1 | time=9ms
15:08:39.798 INFO: Load project repositories (done) | time=31ms
15:08:39.852 DEBUG: Declared extensions of language Terraform were converted to sonar.lang.patterns.terraform : **/*.tf
15:08:39.856 DEBUG: Declared extensions of language CloudFormation were converted to sonar.lang.patterns.cloudformation :
15:08:39.857 DEBUG: Declared extensions of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.pks,**/*.pkb
15:08:39.859 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
15:08:39.860 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
15:08:39.861 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
15:08:39.865 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig
15:08:39.867 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
15:08:39.868 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
15:08:39.869 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
15:08:39.871 DEBUG: Declared extensions of language Text were converted to sonar.lang.patterns.text : **/*.sonarshouldnotexistextension
15:08:39.872 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
15:08:39.873 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift
15:08:39.874 DEBUG: Declared extensions of language C were converted to sonar.lang.patterns.c : **/*.c,**/*.h
15:08:39.875 DEBUG: Declared extensions of language C++ were converted to sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
15:08:39.877 DEBUG: Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : **/*.m
15:08:39.878 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
15:08:39.878 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
15:08:39.885 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
15:08:39.889 DEBUG: Declared extensions of language T-SQL were converted to sonar.lang.patterns.tsql : **/*.tsql
15:08:39.892 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.mjs,**/*.vue
15:08:39.899 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
15:08:39.900 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
15:08:39.901 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
15:08:39.903 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
15:08:39.908 DEBUG: Declared extensions of language ABAP were converted to sonar.lang.patterns.abap : **/*.abap,**/*.ab4,**/*.flow,**/*.asprog
15:08:39.909 DEBUG: Declared extensions of language YAML were converted to sonar.lang.patterns.yaml : **/*.yaml,**/*.yml
15:08:39.911 DEBUG: Declared extensions of language JSON were converted to sonar.lang.patterns.json : **/*.json
15:08:39.923 DEBUG: Will ignore generated code
15:08:39.925 DEBUG: Will ignore generated code
15:08:39.925 INFO: Indexing files...
15:08:39.940 INFO: Project configuration:
15:08:39.955 DEBUG: '.vs\Aufgabe1\v17\Browse.VC.db' indexed with no language
15:08:39.986 DEBUG: '.vs\ProjectSettings.json' indexed with language 'json'
15:08:39.986 DEBUG: '.vs\slnx.sqlite' indexed with no language
15:08:40.002 DEBUG: '.vs\VSWorkspaceState.json' indexed with language 'json'
15:08:40.002 DEBUG: 'Aufgabe1.cpp' indexed with language 'cpp'
15:08:40.017 DEBUG: 'build_wrapper_output_directory/build-wrapper-dump.json' excluded by org.sonar.plugins.config.json.JsonFileFilter
15:08:40.017 DEBUG: 'build_wrapper_output_directory\build-wrapper.log' indexed with no language
15:08:40.017 DEBUG: 'bw-output/build-wrapper-dump.json' excluded by org.sonar.plugins.config.json.JsonFileFilter
15:08:40.017 DEBUG: 'bw-output\build-wrapper.log' indexed with no language
15:08:40.033 DEBUG: 'sonar-project.properties.txt' indexed with no language
15:08:40.033 DEBUG: 'sonar-project.properties.txt.bak' indexed with no language
15:08:40.102 INFO: 9 files indexed
15:08:40.119 INFO: Quality profile for cpp: Sonar way
15:08:40.130 INFO: Quality profile for json: Sonar way
15:08:40.131 INFO: ------------- Run sensors on module Test1
15:08:40.439 INFO: Load metrics repository
15:08:40.471 DEBUG: GET 200 http://localhost:9000/api/metrics/search?ps=500&p=1 | time=16ms
15:08:40.486 INFO: Load metrics repository (done) | time=47ms
15:08:42.424 DEBUG: Loading C:\Users\fef50146\AppData\Local\Temp\sonarsource-cfamily-jni3464974101045518212.dll
15:08:44.408 DEBUG: Adding rules for repository 'jssecurity', language: JAVASCRIPT, [class com.sonar.security.frontend.js.rules.DomOpenRedirectCheck, class com.sonar.security.frontend.js.rules.DomXssCheck, class com.sonar.security.frontend.js.rules.DynamicCodeExecutionCheck, class com.sonar.security.frontend.js.rules.FilePathInjectionCheck, class com.sonar.security.frontend.js.rules.HttpRedirectionCheck, class com.sonar.security.frontend.js.rules.NoSQLInjectionCheck, class com.sonar.security.frontend.js.rules.OSArgumentConstructionCheck, class com.sonar.security.frontend.js.rules.OSArgumentInjectionCheck, class com.sonar.security.frontend.js.rules.OSCommandInjectionCheck, class com.sonar.security.frontend.js.rules.ReflectedXssCheck, class com.sonar.security.frontend.js.rules.RegularExpressionDoSCheck, class com.sonar.security.frontend.js.rules.ServerSideRequestCheck, class com.sonar.security.frontend.js.rules.SQLInjectionCheck, class com.sonar.security.frontend.js.rules.ZipSlipCheck, class com.sonar.security.frontend.js.rules.SessionFixationCheck] from com.sonar.security.frontend.js.F
15:08:44.424 DEBUG: Adding rules for repository 'tssecurity', language: TYPESCRIPT, [class com.sonar.security.frontend.js.rules.DomOpenRedirectCheck, class com.sonar.security.frontend.js.rules.DomXssCheck, class com.sonar.security.frontend.js.rules.DynamicCodeExecutionCheck, class com.sonar.security.frontend.js.rules.FilePathInjectionCheck, class com.sonar.security.frontend.js.rules.HttpRedirectionCheck, class com.sonar.security.frontend.js.rules.NoSQLInjectionCheck, class com.sonar.security.frontend.js.rules.OSArgumentConstructionCheck, class com.sonar.security.frontend.js.rules.OSArgumentInjectionCheck, class com.sonar.security.frontend.js.rules.OSCommandInjectionCheck, class com.sonar.security.frontend.js.rules.ReflectedXssCheck, class com.sonar.security.frontend.js.rules.RegularExpressionDoSCheck, class com.sonar.security.frontend.js.rules.ServerSideRequestCheck, class com.sonar.security.frontend.js.rules.SQLInjectionCheck, class com.sonar.security.frontend.js.rules.ZipSlipCheck, class com.sonar.security.frontend.js.rules.SessionFixationCheck] from com.sonar.security.frontend.js.B
15:08:45.439 DEBUG: 'JavaSensor' skipped because there is no related file in current project
15:08:45.439 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
15:08:45.439 DEBUG: 'IaC Terraform Sensor' skipped because there is no related file in current project
15:08:45.439 DEBUG: 'PL/SQL Sensor' skipped because there is no related file in current project
15:08:45.439 DEBUG: 'Scala Sensor' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Scoverage sensor for Scala coverage' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Import of Scalastyle issues' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Import of Scapegoat issues' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Import of Checkstyle issues' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
15:08:45.455 DEBUG: 'Import of SpotBugs issues' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Removed properties sensor' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Flex' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
15:08:45.455 DEBUG: 'XML Sensor' skipped because there is no related file in current project
15:08:45.471 DEBUG: 'Swift Code Quality and Security' skipped because there is no related file in current project
15:08:45.471 DEBUG: 'Import of SwiftLint issues' skipped because there is no related file in current project
15:08:45.471 DEBUG: 'gcov' skipped because one of the required properties is missing
15:08:45.471 DEBUG: 'llvm-cov' skipped because one of the required properties is missing
15:08:45.471 DEBUG: 'cppunit' skipped because one of the required properties is missing
15:08:45.471 DEBUG: 'VisualStudioCoverage' skipped because one of the required properties is missing
15:08:45.471 DEBUG: 'bullseye' skipped because one of the required properties is missing
15:08:45.486 DEBUG: 'Python Sensor' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'PythonXUnitSensor' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Import of Pylint issues' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Import of Bandit issues' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Import of Flake8 issues' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Code Quality and Security for Go' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Go Cover sensor for Go coverage' skipped because one of the required properties is missing
15:08:45.486 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
15:08:45.486 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
15:08:45.502 DEBUG: 'Import of GolangCI-Lint issues' skipped because there is no related file in current project
15:08:45.502 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'KotlinSurefireSensor' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
15:08:45.517 DEBUG: 'Import of ktlint issues' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'T-SQL Sensor' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'JavaScript analysis' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'TypeScript analysis' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'JavaScript/TypeScript Coverage' skipped because there is no related file in current project
15:08:45.517 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
15:08:45.517 DEBUG: 'Import of TSLint issues' skipped because one of the required properties is missing
15:08:45.533 DEBUG: 'CSS Metrics' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Import of RuboCop issues' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Python HTML templates processing' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'PHP sensor' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Import of PHPStan issues' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'Import of Psalm issues' skipped because there is no related file in current project
15:08:45.533 DEBUG: 'AbapSquidSensor' skipped because there is no related file in current project
15:08:45.549 DEBUG: 'Generic Test Executions Report' skipped because one of the required properties is missing

15:08:45.549 DEBUG: Sensors : IaC CloudFormation Sensor -> C# Project Type Information -> C# Analysis Log -> C# Properties -> HTML -> Text Sensor -> VB.NET Project Type Information -> VB.NET Analysis Log -> VB.NET Properties -> JaCoCo XML Report Importer -> CSS Rules -> ThymeLeaf template sensor -> Serverless configuration file sensor -> AWS SAM template file sensor -> CFamily -> javabugs -> JavaSecuritySensor -> CSharpSecuritySensor -> PhpSecuritySensor -> PythonSecuritySensor -> JsSecuritySensor
15:08:45.549 INFO: Sensor IaC CloudFormation Sensor [iac]
15:08:45.573 DEBUG: '.vs/VSWorkspaceState.json' generated metadata with charset 'windows-1252'
15:08:45.582 DEBUG: '.vs/ProjectSettings.json' generated metadata with charset 'windows-1252'
15:08:45.585 INFO: 0 source files to be analyzed
15:08:45.631 INFO: 0/0 source files have been analyzed
15:08:45.632 INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=83ms
15:08:45.633 INFO: Sensor C# Project Type Information [csharp]
15:08:45.635 INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms
15:08:45.636 INFO: Sensor C# Analysis Log [csharp]
15:08:45.665 DEBUG: Project 'Test1': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
15:08:45.669 INFO: Sensor C# Analysis Log [csharp] (done) | time=33ms
15:08:45.669 INFO: Sensor C# Properties [csharp]
15:08:45.670 DEBUG: Project 'Test1': Property missing: 'sonar.cs.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
15:08:45.672 DEBUG: Project 'Test1': No Roslyn issues reports have been found.
15:08:45.673 INFO: Sensor C# Properties [csharp] (done) | time=4ms
15:08:45.678 INFO: Sensor HTML [web]
15:08:45.686 INFO: Sensor HTML [web] (done) | time=7ms
15:08:45.687 INFO: Sensor Text Sensor [text]
15:08:45.695 DEBUG: 'Aufgabe1.cpp' generated metadata with charset 'windows-1252'
15:08:45.763 INFO: 3 source files to be analyzed
15:08:45.764 INFO: 3/3 source files have been analyzed
15:08:45.765 INFO: Sensor Text Sensor [text] (done) | time=79ms
15:08:45.766 INFO: Sensor VB.NET Project Type Information [vbnet]
15:08:45.777 INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=11ms
15:08:45.779 INFO: Sensor VB.NET Analysis Log [vbnet]
15:08:45.812 DEBUG: Project 'Test1': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
15:08:45.814 INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=35ms
15:08:45.815 INFO: Sensor VB.NET Properties [vbnet]
15:08:45.815 DEBUG: Project 'Test1': Property missing: 'sonar.vbnet.analyzer.projectOutPaths'. No protobuf files will be loaded for this project.
15:08:45.816 DEBUG: Project 'Test1': No Roslyn issues reports have been found.
15:08:45.817 INFO: Sensor VB.NET Properties [vbnet] (done) | time=2ms
15:08:45.818 INFO: Sensor JaCoCo XML Report Importer [jacoco]
15:08:45.821 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
15:08:45.823 INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
15:08:45.823 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=5ms
15:08:45.824 INFO: Sensor CSS Rules [javascript]
15:08:45.825 INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
15:08:45.825 INFO: Sensor CSS Rules [javascript] (done) | time=1ms
15:08:45.826 INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
15:08:45.828 INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=2ms
15:08:45.828 INFO: Sensor Serverless configuration file sensor [security]
15:08:45.830 INFO: 0 Serverless function entries were found in the project
15:08:45.841 INFO: 0 Serverless function handlers were kept as entrypoints
15:08:45.842 INFO: Sensor Serverless configuration file sensor [security] (done) | time=14ms
15:08:45.842 INFO: Sensor AWS SAM template file sensor [security]
15:08:45.843 DEBUG: 0 SAM template configuration files were found in the project. 0 SAM function entries were found in total. 0 were kept as potential entrypoints.
15:08:45.844 INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms
15:08:45.845 INFO: Sensor CFamily [cpp]
15:08:45.847 INFO: CFamily plugin version: 6.34.0.48468
15:08:45.848 INFO: Using build-wrapper output: C:\Users\fef50146\Documents\Aufgabe1\bw-output\build-wrapper-dump.json
15:08:45.857 INFO: Available processors: 2
15:08:45.882 INFO: Using 2 threads for analysis.
15:08:45.885 DEBUG: Unpacking analyzer to: C:\Users\fef50146\Documents\Aufgabe1\.scannerwork\.sonartmp\11158071931059778577
15:08:50.023 DEBUG: Not enough content in 'Aufgabe1.cpp' to have CPD blocks, it will not be part of the duplication detection
15:08:50.360 INFO: Found empty cache on server
15:08:50.440 INFO: PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
15:08:50.486 INFO: SE: 0 out of 0
15:08:50.508 INFO: Z3 refutation rate: 0 out of 0
15:08:50.510 INFO: Subprocess(es) done in 101ms
15:08:50.512 INFO: Cache: 0/0 hits, 123 bytes
15:08:50.514 INFO: 0 compilation units analyzed
15:08:50.706 INFO: ------------------------------------------------------------------------
15:08:50.774 INFO: EXECUTION FAILURE
15:08:50.865 INFO: ------------------------------------------------------------------------
15:08:50.947 INFO: Total time: 23.600s
15:08:51.095 INFO: Final Memory: 28M/97M
15:08:51.189 INFO: ------------------------------------------------------------------------
15:08:51.248 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
  * you are using the latest version of the build-wrapper and the CFamily analyzer
  * your compiler is supported
  * you are wrapping your build correctly
  * you are wrapping a full/clean build
  * if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
        at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:439)
        at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:203)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
        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.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:81)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:392)
        at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:388)
        at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:357)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        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(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        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:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)

I took also a look at the build wrapper and it looks like something went wrong there:

C:\Users\fef50146\Documents\Aufgabe1>build-wrapper-win-x86-64.exe --out-dir bw-output C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe /t:Rebuild /nodeReuse:false
Microsoft (R)-Build-Engine, Version 17.0.0+c9eb9dd64 für .NET Framework
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

MSBUILD : error MSB1003: Geben Sie eine Projekt- oder Projektmappendatei an. Das aktuelle Arbeitsverzeichnis enthält keine Projekt- oder Projektmappendatei.

Hi @Jojo_Hollweck ,

Good, you found the problem!

Is there a .vcxproj file in the C:\Users\fef50146\Documents\Aufgabe1 directory?

Try adding the project file to your build command MSBuild.exe, which may be missing that reference. For example:

C:\Users\fef50146\Documents\Aufgabe1>build-wrapper-win-x86-64.exe --out-dir bw-output C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe here-my-project-file.vcxproj /t:Rebuild /nodeReuse:false

We have several sample projects that you can use for referencing, especially MSBuild projects like this one. See here for more: SonarSource sample C and C++ projects with SonarCloud or SonarQube analysis configured · GitHub