java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Unable to load component class org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor

Hi,

When trying to analyze files with Sonarlint, I get the following error

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Unable to load component class org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor
  • Windows version build (22000.434)
  • VSCode version 1.64.2
  • SonarLint version 3.3.0

VScode workspace settings

{
    "sonarlint.connectedMode.project": {
        "projectKey": "projectKey",
    },
    "sonarlint.output.showAnalyzerLogs": true,
    "typescript.tsdk": "node_modules\\typescript\\lib",
}

VScode user settings

{
    "editor.fontFamily": "Iosevka Term Slab, Consolas, 'Courier New', monospace",
    "editor.fontSize": 18,
    "editor.fontWeight": 500,
    "editor.lineHeight": 36,
    "editor.fontLigatures": true,
    "editor.renderWhitespace": "all",
    "terminal.integrated.fontFamily": "Iosevka Term Slab, Consolas, 'Courier New', monospace",
    "terminal.integrated.fontSize": 18,
    "workbench.colorTheme": "GitHub Light",
    "workbench.iconTheme": "vscode-icons",
    "json.maxItemsComputed": 20000,
    "sonarlint.ls.javaHome": "C:\\Program Files\\Java\\jdk-17.0.2",
    "sonarlint.connectedMode.connections.sonarqube": [
        {
            "serverUrl": "mycompany.server.url",
            "token": "ff1122",
        }
    ],
    "sonarlint.output.showAnalyzerLogs": true,
    "sonarlint.output.showVerboseLogs": true
}

VScode SonarLint plugin output

Executing C:\Program Files\Java\jdk-17.0.2\bin\java -jar c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\server\sonarlint-ls.jar 52663 -analyzers c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarjava.jar c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarjs.jar c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarphp.jar c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarpython.jar c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarhtml.jar c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarxml.jar -extraAnalyzers c:\Users\mason\.vscode\extensions\sonarsource.sonarlint-vscode-3.3.0\analyzers\sonarsecrets.jar
[stdout] Binding to 52663
Child process connected on port 52663
[Info  - 13:24:36.989] Started security hotspot handler on port 64120
Initializing file:///c%3A/Users/mason/Documents/ef-front-clientcard on branch feature/EFP-4104
[Debug - 13:24:37.026] Looking for node in the PATH
[Debug - 13:24:37.030] Execute command 'C:\Windows\System32\where.exe $PATH:node.exe'...
[Debug - 13:24:37.052] Enabling notifications for project 'ef-bms-clientcard' on connection '<default>'
[Debug - 13:24:37.054] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<default>,projectKey=ef-bms-clientcard,testFilePattern=]
[Debug - 13:24:37.085] Command 'C:\Windows\System32\where.exe $PATH:node.exe' exited with 0
stdout: C:\Program Files\nodejs\node.exe
[Debug - 13:24:37.085] Found node at C:\Program Files\nodejs\node.exe
[Debug - 13:24:37.085] Checking node version...
[Debug - 13:24:37.086] Execute command 'C:\Program Files\nodejs\node.exe -v'...
[Debug - 13:24:37.106] Command 'C:\Program Files\nodejs\node.exe -v' exited with 0
stdout: v12.8.1
[Debug - 13:24:37.106] Detected node version: 12.8.1
[Warn  - 13:24:37.193] Plugin 'bcsbankjavacustom' embeds dependencies. This will be deprecated soon. Plugin should be updated.
[Warn  - 13:24:37.266] Plugin 'secrets' embeds dependencies. This will be deprecated soon. Plugin should be updated.
[Debug - 13:24:37.345] Loaded 12 plugins
[Debug - 13:24:37.346]   * License for SonarLint 8.4.2.36762 (license)
[Debug - 13:24:37.346]   * Python Code Quality and Security 2.13.0.7236 (python)
[Debug - 13:24:37.346]   * Java Code Quality and Security 6.5.1.22586 (java)
[Debug - 13:24:37.346]   * SonarHTML 3.2.0.2082 (web)
[Debug - 13:24:37.346]   * SonarXML 2.0.1.2020 (xml)
[Debug - 13:24:37.346]   * PHP Code Quality and Security 3.5.0.5655 (php)
[Debug - 13:24:37.346]   * SonarTS 2.1.0.4359 (typescript)
[Debug - 13:24:37.346]   * BCSBANKMS Custom Rules 1.0.0-SNAPSHOT (bcsbankjavacustom)
[Debug - 13:24:37.346]   * SonarApex 1.7.0.883 (sonarapex)
[Debug - 13:24:37.347]   * Sonar Secrets Plugin for SonarQube 1.1.0.36766 (secrets)
[Debug - 13:24:37.347]   * SonarJS 6.2.1.12157 (javascript)
[Debug - 13:24:37.347]   * SonarPLSQL 3.4.1.2576 (plsql)
[Debug - 13:24:38.411] Creating container for module 'file:///c:/Users/mason/Documents/ef-front-clientcard'
[Debug - 13:24:38.415] SonarLint engine started for connection '<default>'
[Debug - 13:24:40.727] Resolved binding ProjectBinding[idePathPrefix=,projectKey=ef-bms-clientcard,sqPathPrefix=] for folder c:\Users\mason\Documents\ef-front-clientcard
[Debug - 13:24:41.063] GET 200 https://sonarqube.gitlab.bcs.ru/api/project_branches/list?project=ef-bms-clientcard | response time=334ms
[Debug - 13:24:46.887] Synchronizing storage
[Debug - 13:24:47.063] GET 200 https://sonarqube.gitlab.bcs.ru/api/plugins/installed | response time=112ms
[Info  - 13:24:47.066] Downloaded plugin list in 115ms
[Debug - 13:24:47.067] [SYNC] Code analyzer 'bcsbankjavacustom' is up-to-date. Skip downloading it.
[Debug - 13:24:47.067] [SYNC] Code analyzer 'csharp' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.067] [SYNC] Code analyzer 'cobol' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.067] [SYNC] Code analyzer 'dependencycheck' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.067] [SYNC] Code analyzer 'findbugs' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'scmgit' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'groovy' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'jacoco' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'java' is up-to-date. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'license' is up-to-date. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'php' is up-to-date. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'python' is up-to-date. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'rpg' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'ReSharperCLT' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'abap' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'sonarapex' is up-to-date. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'cpp' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'cssfamily' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.068] [SYNC] Code analyzer 'flex' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'go' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'web' is up-to-date. Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'javascript' is up-to-date. Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'kotlin' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'pli' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'plsql' is up-to-date. Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'ruby' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'sonarscala' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'swift' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'typescript' is up-to-date. Skip downloading it.
[Debug - 13:24:47.069] [SYNC] Code analyzer 'tsql' is disabled in SonarLint (language not enabled). Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'vb' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'xml' is up-to-date. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'scmsvn' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'vbnet' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'security' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'securitycsharpfrontend' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'securityjavafrontend' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'securityphpfrontend' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'securitypythonfrontend' does not support SonarLint. Skip downloading it.
[Debug - 13:24:47.070] [SYNC] Code analyzer 'yaml' does not support SonarLint. Skip downloading it.
[Info  - 13:24:47.072] [SYNC] Synchronizing 'ef-bms-clientcard'
[Debug - 13:24:47.143] GET 200 https://sonarqube.gitlab.bcs.ru/api/settings/values.protobuf?component=ef-bms-clientcard | response time=65ms
[Info  - 13:24:47.154] Downloaded settings in 76ms
[Debug - 13:24:47.247] GET 200 https://sonarqube.gitlab.bcs.ru/api/qualityprofiles/search.protobuf?project=ef-bms-clientcard | response time=92ms
[Debug - 13:24:47.250] Downloaded project quality profiles in 95ms
[Info  - 13:24:47.252] [SYNC] Fetching rule set for 'apex'
[Debug - 13:24:47.329] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AXGanXh5Sf3LgZrn-IJ0&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=76ms
[Info  - 13:24:47.343] [SYNC] Fetching rule set for 'java'
[Debug - 13:24:47.516] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AV_3CaTJVPLo9hr60tSp&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=173ms
[Info  - 13:24:47.527] [SYNC] Fetching rule set for 'js'
[Debug - 13:24:47.600] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AV_3CalXVPLo9hr60th1&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=73ms
[Info  - 13:24:47.601] [SYNC] Fetching rule set for 'php'
[Debug - 13:24:47.698] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AV_3CabfVPLo9hr60ta8&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=97ms
[Info  - 13:24:47.700] [SYNC] Fetching rule set for 'plsql'
[Debug - 13:24:47.778] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AXGanXjbSf3LgZrn-IMh&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=77ms
[Info  - 13:24:47.780] [SYNC] Fetching rule set for 'py'
[Debug - 13:24:47.857] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AV_3Can6VPLo9hr60tjX&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=76ms
[Info  - 13:24:47.859] [SYNC] Fetching rule set for 'ts'
[Debug - 13:24:47.929] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AWHB_CEUt3nGiceJodVM&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=70ms
[Info  - 13:24:47.930] [SYNC] Fetching rule set for 'web'
[Debug - 13:24:47.991] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AV_3CaWEVPLo9hr60tXf&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=60ms
[Info  - 13:24:47.992] [SYNC] Fetching rule set for 'xml'
[Debug - 13:24:48.052] GET 200 https://sonarqube.gitlab.bcs.ru/api/rules/search.protobuf?qprofile=AV_3CaYtVPLo9hr60tZs&activation=true&f=templateKey,actives&types=CODE_SMELL,BUG,VULNERABILITY&ps=500&p=1 | response time=59ms
[Debug - 13:24:48.057] Storing project data in C:\Users\mason\.sonarlint\storage\3c64656661756c743e\projects\65662d626d732d636c69656e7463617264\analyzer_config.pb
[Debug - 13:25:12.103] Queuing analysis of file 'file:///c:/Users/mason/Documents/ef-front-clientcard/src/index.ts'
[Debug - 13:25:12.195] Cached SCM ignore status for file 'file:///c:/Users/mason/Documents/ef-front-clientcard/src/index.ts'
[Debug - 13:25:12.202] Server excluded sources: 
[Debug - 13:25:12.202]   **/client-qualifications-service/src/main/resources/db/migration/V13__reject_link_criteria.sql
[Debug - 13:25:12.202]   **/pom.xml
[Debug - 13:25:12.202]   **/resources/**/*
[Debug - 13:25:12.202] Server excluded tests: 
[Debug - 13:25:12.202]   **/resources/**/*
[Info  - 13:25:12.204] Analyzing file 'file:///c:/Users/mason/Documents/ef-front-clientcard/src/index.ts'...
[Debug - 13:25:12.206] Analysis triggered on 'file:///c:/Users/mason/Documents/ef-front-clientcard/src/index.ts' with configuration:
[
  projectKey: ef-bms-clientcard
  baseDir: c:\Users\mason\Documents\ef-front-clientcard
  extraProperties: {}
  moduleKey: file:///c:/Users/mason/Documents/ef-front-clientcard
  inputFiles: [
    file:///c:/Users/mason/Documents/ef-front-clientcard/src/index.ts (UTF-8) [ts]
  ]
]

[Debug - 13:25:12.213]   * java: 'AV_3CaTJVPLo9hr60tSp' (388 active rules)
[Debug - 13:25:12.213] Rule common-java:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.214] Rule javasecurity:S5167 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.215] Rule javasecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.215] Rule javasecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.215] Rule javasecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.215] Rule javasecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.215]   * web: 'AV_3CaWEVPLo9hr60tXf' (28 active rules)
[Debug - 13:25:12.215]   * xml: 'AV_3CaYtVPLo9hr60tZs' (4 active rules)
[Debug - 13:25:12.215]   * js: 'AV_3CalXVPLo9hr60th1' (85 active rules)
[Debug - 13:25:12.216]   * php: 'AV_3CabfVPLo9hr60ta8' (104 active rules)
[Debug - 13:25:12.216] Rule phpsecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5335 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5167 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.216] Rule phpsecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217] Rule common-php:DuplicatedBlocks is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217] Rule phpsecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217] Rule phpsecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217]   * py: 'AV_3Can6VPLo9hr60tjX' (123 active rules)
[Debug - 13:25:12.217] Rule pythonsecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217] Rule pythonsecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217] Rule pythonsecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.217] Rule pythonsecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5167 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218] Rule pythonsecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 13:25:12.218]   * apex: 'AXGanXh5Sf3LgZrn-IJ0' (38 active rules)
[Debug - 13:25:12.218]   * plsql: 'AXGanXjbSf3LgZrn-IMh' (130 active rules)
[Debug - 13:25:12.219]   * ts: 'AWHB_CEUt3nGiceJodVM' (66 active rules)
[Debug - 13:25:12.255] Start analysis
[Info  - 13:25:12.263] Index files
[Debug - 13:25:12.264] Language of file 'file:///c:/Users/mason/Documents/ef-front-clientcard/src/index.ts' is set to 'TypeScript'
[Info  - 13:25:12.268] 1 file indexed
[Error - 13:25:12.404] Analysis failed.
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Unable to load component class org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.analyze(ConnectedSonarLintEngineImpl.java:250)
	at org.sonarsource.sonarlint.ls.AnalysisManager.lambda$analyzeConnected$15(AnalysisManager.java:506)
	at org.sonarsource.sonarlint.ls.AnalysisManager.analyzeWithTiming(AnalysisManager.java:531)
	at org.sonarsource.sonarlint.ls.AnalysisManager.analyzeConnected(AnalysisManager.java:506)
	at org.sonarsource.sonarlint.ls.AnalysisManager.analyze(AnalysisManager.java:345)
	at org.sonarsource.sonarlint.ls.AnalysisManager.lambda$analyzeAsync$4(AnalysisManager.java:292)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:57)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:678)
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer.getComponentByType(ComponentContainer.java:249)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer.startComponents(ComponentContainer.java:119)
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer.execute(ComponentContainer.java:104)
	at org.sonarsource.sonarlint.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:71)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:58)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:32)
	at org.sonarsource.sonarlint.core.analysis.AnalysisEngine$AsyncCommand.execute(AnalysisEngine.java:152)
	at org.sonarsource.sonarlint.core.analysis.AnalysisEngine.executeQueuedCommands(AnalysisEngine.java:70)
	... 1 more
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.plugins.javascript.eslint.JavaScriptEslintBasedSensor
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:57)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:334)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.parameters.CollectionComponentParameter.access$100(CollectionComponentParameter.java:49)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance(CollectionComponentParameter.java:139)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:141)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:55)
	... 11 more
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.plugins.javascript.JavaScriptSensor
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:57)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:55)
	... 27 more
Caused by: java.lang.ExceptionInInitializerError
	at com.sonar.sslr.api.typed.ActionParser.<init>(ActionParser.java:59)
	at org.sonar.javascript.parser.JavaScriptParser.<init>(JavaScriptParser.java:33)
	at org.sonar.javascript.parser.JavaScriptParserBuilder.createParser(JavaScriptParserBuilder.java:31)
	at org.sonar.plugins.javascript.JavaScriptSensor.<init>(JavaScriptSensor.java:115)
	at org.sonar.plugins.javascript.JavaScriptSensor.<init>(JavaScriptSensor.java:85)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
	at org.sonarsource.sonarlint.shaded.org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
	at org.sonarsource.sonarlint.core.plugin.commons.pico.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:55)
	... 41 more
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @65fc008f
	at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)
	at net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)
	at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)
	at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)
	at net.sf.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at net.sf.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
	at net.sf.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
	at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)
	at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)
	at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:174)
	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:153)
	at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:73)
	... 61 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @65fc008f
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
	at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
	at net.sf.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
	at net.sf.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:52)
	at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)
	at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
	at net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)
	... 73 more

[Info  - 13:25:12.404] Found 0 issues
1 Like

Hello @www.rudnev.web,

What is the SonarQube version ? Could you try to change sonarlint.ls.javaHome to point to a JDK 11 installation ?

1 Like

Sonar Version 8.4.2 (build 36762)

I changed the jdk version to 11.0.13 and everything worked. Thank you very much!
P.s. It would be nice to update the official documentation on configuring SonarLint

JDK 11.0.13 - Java Archive Downloads - Java SE 11 | Oracle Россия и СНГ

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.