New install of SonarLint fails with ResponseErrorException InternalError

I’m a first-time SonarLint user, and can’t get it to work.

  • Operating system: Ubuntu 22.04
  • SonarLint plugin version: 10.4.0.82051
  • Programming language you’re coding in: Java
  • Is connected mode used: No

I have just upgraded Eclipse to 2024-06, and then installed SonarLint. On displaying any Java class, I get an internal error. This doesn’t appear to relate to the class itself. For example, I created a brand new class (in the default package, but the same thing happens with all of my code) like this:

public class Main
{
	
}

with the result being this displayed in the console:

Error during execution of SonarLint analysis
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:307)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.doRun(AnalyzeProjectJob.java:155)
	at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
	at org.sonarlint.eclipse.core.internal.utils.JobUtils.waitForFutureInJob(JobUtils.java:74)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:293)
	... 3 more
Caused by: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)

Can anybody suggest something that might help? I tried searching for this error, but couldn’t find anything that looks related.

I have several projects in Eclipse. All are very small and simple, apart from one that has about 800KLOC and references numerous external jar files. SonarLint is working on the small projects, and failing with the exception mentioned earlier in this topic on all Java files in the large project.

So it looks like there’s something specific to my main project that SonarLint doesn’t like. Anybody got any ideas what it might be to cause the exception I’m seeing?

3 posts were split to a new topic: Rule declared several times in Connected Mode (InternalError)

Hey @cueman, @sithmein,

please provide me with the full logs, as described in the documentation. Don’t enable the IDE-specific traces.

Best,
Tobias

and here are my logs:

Initializing SonarLint backend...
SonarLint Core Jar archive located at /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/../../../../.p2/pool/plugins/org.sonarlint.eclipse.sloop.linux.x64_10.4.0.82051/sloop/lib/sonarlint-core-10.3.2.78498.jar
Sloop located in /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/../../../../.p2/pool/plugins/org.sonarlint.eclipse.sloop.linux.x64_10.4.0.82051/sloop
Using Java installation of Eclipse
Using JRE from /home/paul/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_22.0.1.v20240426-1149/jre
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-java-plugin-8.0.1.36337.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-java-symbolic-execution-plugin-8.0.1.36337.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-javascript-plugin-10.14.0.26080.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-php-plugin-3.36.0.11813.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-python-plugin-4.19.0.15616.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-html-plugin-3.16.0.5274.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-xml-plugin-2.10.0.4108.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-text-plugin-2.12.1.2905.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-java-plugin-8.0.1.36337.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-java-symbolic-execution-plugin-8.0.1.36337.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-javascript-plugin-10.14.0.26080.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-php-plugin-3.36.0.11813.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-python-plugin-4.19.0.15616.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-html-plugin-3.16.0.5274.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-xml-plugin-2.10.0.4108.jar
  - /home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-text-plugin-2.12.1.2905.jar
Found JS/TS plugin: bundleentry://1007.fwk1065591709/plugins/sonar-javascript-plugin-10.14.0.26080.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-javascript-plugin-10.14.0.26080.jar
Found HTML plugin: bundleentry://1007.fwk1065591709/plugins/sonar-html-plugin-3.16.0.5274.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-html-plugin-3.16.0.5274.jar
Found XML plugin: bundleentry://1007.fwk1065591709/plugins/sonar-xml-plugin-2.10.0.4108.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-xml-plugin-2.10.0.4108.jar
Found Secrets detection plugin: bundleentry://1007.fwk1065591709/plugins/sonar-text-plugin-2.12.1.2905.jar
Plugin extracted to file:/home/paul/Apps/Programming/eclipse-jee-2024-06/eclipse/configuration/org.eclipse.osgi/1007/0/.cp/plugins/sonar-text-plugin-2.12.1.2905.jar
SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@58ce9668
Started embedded server on port 64120
Restoring previous local-only issue database from /home/paul/workspace/.sonarlint/storage/local_only_issue_backup.tar.gz
Starting local-only issue database from /home/paul/.sonarlint/xodus-local-only-issue-store9010436688757269642
Starting SonarLint for Eclipse 10.4.0.82051
Trigger: EDITOR_OPEN
Analysis cancelled due to the engines not yet being ready
Unexpected error occurred in scheduled task

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at org.sonarsource.sonarlint.core.fs.ClientFileSystemService.initializeFileSystem(ClientFileSystemService.java:116)
	at org.sonarsource.sonarlint.core.commons.SmartCancelableLoadingCache.lambda$newValueAndScheduleComputation$2(SmartCancelableLoadingCache.java:99)
	at org.sonarsource.sonarlint.core.commons.DebounceComputer.lambda$scheduleComputationAsync$0(DebounceComputer.java:83)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	... 3 common frames omitted

Synchronizing new configuration scopes: [file:/home/paul/workspace/Exprodo-markdown-docs, file:/home/paul/workspace/mobile-calpendo, file:/home/paul/workspace/Bracket_Indenter, file:/home/paul/workspace/messageViewer, file:/home/paul/workspace/ExprodoTestAutomation, file:/home/paul/workspace/Calpendo, file:/home/paul/workspace/bug/MyWebApp, file:/home/paul/workspace/Teleprompter, file:/home/paul/workspace/scoreboard, file:/home/paul/workspace/idserver, file:/home/paul/workspace/gignovarc, file:/home/paul/workspace/billiards, file:/home/paul/workspace/hellofx, file:/home/paul/workspace/ServerBuild, file:/home/paul/workspace/Countdown]
Looking for node in the PATH
Execute command '/usr/bin/which node'...
Command '/usr/bin/which node' exited with 0
stdout: /usr/local/bin/node
Found node at /usr/local/bin/node
Checking node version...
Execute command '/usr/local/bin/node -v'...
Command '/usr/local/bin/node -v' exited with 0
stdout: v20.14.0
Detected node version: 20.14.0
Auto-detected Node.js path set to: /usr/local/bin/node (version 20.14.0)
Loaded 8 plugins
  * Python Code Quality and Security 4.19.0.15616 (python)
  * Java Code Quality and Security 8.0.1.36337 (java)
  * HTML Code Quality and Security 3.16.0.5274 (web)
  * XML Code Quality and Security 2.10.0.4108 (xml)
  * PHP Code Quality and Security 3.36.0.11813 (php)
  * Text Code Quality and Security 2.12.1.2905 (text)
  * Java Advanced Code Quality Analyzer 8.0.1.36337 (javasymbolicexecution)
  * JavaScript/TypeScript/CSS Code Quality and Security 10.14.0.26080 (javascript)
Creating container for module 'file:/home/paul/workspace/Exprodo-markdown-docs'
Creating container for module 'file:/home/paul/workspace/mobile-calpendo'
Creating container for module 'file:/home/paul/workspace/Bracket_Indenter'
Creating container for module 'file:/home/paul/workspace/messageViewer'
Creating container for module 'file:/home/paul/workspace/ExprodoTestAutomation'
Creating container for module 'file:/home/paul/workspace/Calpendo'
Creating container for module 'file:/home/paul/workspace/bug/MyWebApp'
Creating container for module 'file:/home/paul/workspace/Teleprompter'
Creating container for module 'file:/home/paul/workspace/scoreboard'
Creating container for module 'file:/home/paul/workspace/idserver'
Creating container for module 'file:/home/paul/workspace/gignovarc'
Creating container for module 'file:/home/paul/workspace/billiards'
Creating container for module 'file:/home/paul/workspace/hellofx'
Creating container for module 'file:/home/paul/workspace/ServerBuild'
Creating container for module 'file:/home/paul/workspace/Countdown'
Project at 'Exprodo-markdown-docs' changed ready status for analysis to: true
Project at 'mobile-calpendo' changed ready status for analysis to: true
Project at 'Bracket_Indenter' changed ready status for analysis to: true
Project at 'messageViewer' changed ready status for analysis to: true
Project at 'ExprodoTestAutomation' changed ready status for analysis to: true
Project at 'Calpendo' changed ready status for analysis to: true
Project at 'issue9757' changed ready status for analysis to: true
Project at 'Teleprompter' changed ready status for analysis to: true
Project at 'scoreboard' changed ready status for analysis to: true
Project at 'idserver' changed ready status for analysis to: true
Project at 'gignovarc' changed ready status for analysis to: true
Project at 'billiards' changed ready status for analysis to: true
Project at 'hellofx' changed ready status for analysis to: true
Project at 'ServerBuild' changed ready status for analysis to: true
Project at 'Countdown' changed ready status for analysis to: true
Trigger: ANALYSIS_READY
Analysis started with the engines being ready
SonarLint analysis of project Calpendo (2 files processed)...
Extracting standalone rules metadata
Computing file exclusion for uri 'file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/exprodo/core/server/LicenceManager.java'
Unable to find client file for uri file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/exprodo/core/server/LicenceManager.java
Error during execution of SonarLint analysis
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:307)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.doRun(AnalyzeProjectJob.java:155)
	at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
	at org.sonarlint.eclipse.core.internal.utils.JobUtils.waitForFutureInJob(JobUtils.java:74)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:293)
	... 3 more
Caused by: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)

File content changed: /Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java
Error when handling notification

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at org.sonarsource.sonarlint.core.fs.ClientFileSystemService.initializeFileSystem(ClientFileSystemService.java:116)
	at org.sonarsource.sonarlint.core.commons.SmartCancelableLoadingCache.lambda$newValueAndScheduleComputation$2(SmartCancelableLoadingCache.java:99)
	at org.sonarsource.sonarlint.core.commons.DebounceComputer.lambda$scheduleComputationAsync$0(DebounceComputer.java:83)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	... 3 more

Trigger: EDITOR_CHANGE
Analysis started with the engines being ready
SonarLint processing file /Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java...
Computing file exclusion for uri 'file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java'
Error during execution of SonarLint analysis
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:307)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.doRun(AnalyzeProjectJob.java:155)
	at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
	at org.sonarlint.eclipse.core.internal.utils.JobUtils.waitForFutureInJob(JobUtils.java:74)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:293)
	... 3 more
Caused by: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)


This thread was split into Rule declared several times in Connected Mode (InternalError) because of the others user response.

I will continue here focussing on the issue @cueman is facing only.

Hi @cueman,

thanks for the logs. It looks like SonarLint wasn’t able to index the project properly in the first place (the first stack trace), and therefore, the analysis later failed.

May I ask you about the logs with the IDE-specific traces? Please be aware that these logs can be very big, you might have to change the buffer size of the Console itself. This can be done via the preferences/settings: Run/DebugConsoleLimit console output (uncheck).

In order to not create a huge log, may I ask you to close the IDE, open it and then open a file and wait for the errors to appear before exporting them? This will help me a lot and keep the focus on the actual log “flow” from the startup to the error.

Thank you in advance!

Best,
Tobias

I closed all open files and configured it to show IDE-specific traces with unlimited output in the console.

I can post the exact logs here if my summary is insufficient. What I see though is this…the output appears to be the same as above until this line:

Starting local-only issue database from /home/paul/.sonarlint/xodus-local-only-issue-store11148847430082896865

Then there are around 36,000 entries that all look the same:

[DefaultSonarLintProjectAdapter#files] Try get file of resource 'X/PROJECTNAME/PATH' -> 'X/PROJECTNAME/PATH' could not be adapted to 'org.sonarlint.eclipse.core.resource.ISonarLintFile'

where:

  • X is either L, F or P. L appears to be used when PATH references a file, F for a directory, and P for a project (PATH is empty)
  • PROJECTNAME is the name of one of my projects (the output cycles through all of the open projects)
  • PATH is the directory path from the project to either a file or directory

Some of these entries are followed by:

File 'PATH' excluded by 'JavaProjectConfiguratorExtension'

I have file exclusions in place to ignore some types of file, and some files below certain directories, like .git and build.

Immediately after the above, with no intervening output, it says this:

Unexpected error occurred in scheduled task

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
	at org.sonarsource.sonarlint.core.fs.ClientFileSystemService.initializeFileSystem(ClientFileSystemService.java:116)
	at org.sonarsource.sonarlint.core.commons.SmartCancelableLoadingCache.lambda$newValueAndScheduleComputation$2(SmartCancelableLoadingCache.java:99)
	at org.sonarsource.sonarlint.core.commons.DebounceComputer.lambda$scheduleComputationAsync$0(DebounceComputer.java:83)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	... 3 common frames omitted

Synchronizing new configuration scopes: [file:/home/paul/workspace/Exprodo-markdown-docs, file:/home/paul/workspace/mobile-calpendo, file:/home/paul/workspace/Bracket_Indenter, file:/home/paul/workspace/messageViewer, file:/home/paul/workspace/ExprodoTestAutomation, file:/home/paul/workspace/Calpendo, file:/home/paul/workspace/bug/MyWebApp, file:/home/paul/workspace/Teleprompter, file:/home/paul/workspace/scoreboard, file:/home/paul/workspace/idserver, file:/home/paul/workspace/gignovarc, file:/home/paul/workspace/billiards, file:/home/paul/workspace/hellofx, file:/home/paul/workspace/ServerBuild, file:/home/paul/workspace/Countdown]
Looking for node in the PATH
Execute command '/usr/bin/which node'...
Command '/usr/bin/which node' exited with 0
stdout: /usr/local/bin/node
Found node at /usr/local/bin/node
Checking node version...
Execute command '/usr/local/bin/node -v'...
Command '/usr/local/bin/node -v' exited with 0
stdout: v20.14.0
Detected node version: 20.14.0
Auto-detected Node.js path set to: /usr/local/bin/node (version 20.14.0)
Loaded 8 plugins
  * Python Code Quality and Security 4.19.0.15616 (python)
  * Java Code Quality and Security 8.0.1.36337 (java)
  * HTML Code Quality and Security 3.16.0.5274 (web)
  * XML Code Quality and Security 2.10.0.4108 (xml)
  * PHP Code Quality and Security 3.36.0.11813 (php)
  * Text Code Quality and Security 2.12.1.2905 (text)
  * Java Advanced Code Quality Analyzer 8.0.1.36337 (javasymbolicexecution)
  * JavaScript/TypeScript/CSS Code Quality and Security 10.14.0.26080 (javascript)
Creating container for module 'file:/home/paul/workspace/Exprodo-markdown-docs'
Creating container for module 'file:/home/paul/workspace/mobile-calpendo'
Creating container for module 'file:/home/paul/workspace/Bracket_Indenter'
Creating container for module 'file:/home/paul/workspace/messageViewer'
Creating container for module 'file:/home/paul/workspace/ExprodoTestAutomation'
Creating container for module 'file:/home/paul/workspace/Calpendo'
Creating container for module 'file:/home/paul/workspace/bug/MyWebApp'
Creating container for module 'file:/home/paul/workspace/Teleprompter'
Creating container for module 'file:/home/paul/workspace/scoreboard'
Creating container for module 'file:/home/paul/workspace/idserver'
Creating container for module 'file:/home/paul/workspace/gignovarc'
Creating container for module 'file:/home/paul/workspace/billiards'
Creating container for module 'file:/home/paul/workspace/hellofx'
Creating container for module 'file:/home/paul/workspace/ServerBuild'
Creating container for module 'file:/home/paul/workspace/Countdown'
Project at 'Exprodo-markdown-docs' changed ready status for analysis to: true
Project at 'mobile-calpendo' changed ready status for analysis to: true
Project at 'Bracket_Indenter' changed ready status for analysis to: true
Project at 'messageViewer' changed ready status for analysis to: true
Project at 'ExprodoTestAutomation' changed ready status for analysis to: true
Project at 'Calpendo' changed ready status for analysis to: true
Project at 'issue9757' changed ready status for analysis to: true
Project at 'Teleprompter' changed ready status for analysis to: true
Project at 'scoreboard' changed ready status for analysis to: true
Project at 'idserver' changed ready status for analysis to: true
Project at 'gignovarc' changed ready status for analysis to: true
Project at 'billiards' changed ready status for analysis to: true
Project at 'hellofx' changed ready status for analysis to: true
Project at 'ServerBuild' changed ready status for analysis to: true
Project at 'Countdown' changed ready status for analysis to: true
Extracting standalone rules metadata

4,000 lines into the 36,000 line section is this line:

Starting SonarLint for Eclipse 10.4.0.82051

There are no other types of line within the 36,000 other than those of the type I’ve mentioned.

So the way I read this, there’s no context in this log to say why this task failed - unless it’s to do with all those “could not be adapted” messages.

Just to be clear: the above error showed when starting Eclipse with no files displayed at all. On loading a file, it appends this to the log file:

Trigger: EDITOR_OPEN
Analysis started with the engines being ready
SonarLint processing file /Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java...
Computing file exclusion for uri 'file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java'
Unable to find client file for uri file:/home/paul/workspace/Calpendo/src/main/com/springsolutions/timeRepeating/server/RepeatableHandler.java
Error during execution of SonarLint analysis
java.lang.IllegalStateException: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:307)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.doRun(AnalyzeProjectJob.java:155)
	at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.util.concurrent.ExecutionException: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
	at org.sonarlint.eclipse.core.internal.utils.JobUtils.waitForFutureInJob(JobUtils.java:74)
	at org.sonarlint.eclipse.core.internal.jobs.AnalyzeProjectJob.run(AnalyzeProjectJob.java:293)
	... 3 more
Caused by: org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:51)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)

Hey @cueman,

thanks for your reply. Based on your in-depth response (thanks a lot for that :pray:) I was able to link it to an existing topic I was preparing and will be working on in the near future: Speeding up the indexing of local files.

The main issue here (trying to analyze the file but being unable to find it) seems to be that your project(s) are very huge (at least 36k distinct files or folders), and at that time, SonarLint wasn’t yet ready as it did not index everything in time - additionally, an error happened while indexing (at the stack trace regarding org.sonarsource.sonarlint.core.fs.ClientFileSystemService.initializeFileSystem). By default there should be a pop-up inside the Eclipse IDE showing that error as this log is only the error part of the SonarLint server, did it happen? It might have happened on that very file that caused the main issue but I’d say that is too random.

From my perspective there is currently little I could do to debug further and also to ask from you. Regarding the ticket linked above, I’ll be going to implement it as I said in the near future and that should improve the situation already and then we could go further on finding other, potential issues.

I’d advise you for now to rollback SonarLint to a version that won’t have that issue (and that I know of) and update once the fix is out regarding speeding up the indexing. For this you need to follow THIS documentation article but rely on https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/9.3.0.81553/ instead of https://eclipse-uc.sonarlint.org that is mentioned in the article.

Best,
Tobias

That worked!

Thanks

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

Hi @cueman,

coming back to you as I just released SonarLint for Eclipse 10.6 available everywhere where you find SonarLint.

We included a few improvements when it comes to indexing/loading projects and so on. These are following a baby-step approach so it won’t be working like a Swiss army knife:

  • don’t index sub-projects, speeding up importing projects / opening workspace and full project analysis
  • don’t index Python virtual environments, currently only supported at the root of the project
  • don’t index Node.js node_modules directory, currently only supported at the root of the project
  • don’t index output directories like target
  • don’t index version control related directories (like .git)

Also, a few follow-up tickets are planned including THIS, that should be interesting for you!

I hope that these changes will already improve your performance and overall experience a bit! It would be great if you could give this a try and leave some feedback. As said, this is a baby-step approach, and based on feedback, we will enhance and tweak it.

Best,
Tobias