Socket connect error when not in network

While I have been seeing this error for a while, with the upgrade from version 10 to 11 it has become more annoying with the popups where before I could disregard in the background.

I am running the latest Eclipse 2024-12 version, and I have a SonarQube community install on my home network that I have been trying to use for development.

When I am at home it works fine, connects, no problem.

When I am remote, i.e. not connected to home network, and open a project SonarLint throws errors:

An error occurred while executing a scheduled task in SonarLint Local Storage Synchronizer

java.util.concurrent.CompletionException: org.apache.hc.client5.http.HttpHostConnectException: Connect to http://192.168.2.15:9000 [/192.168.2.15] failed: Connection timed out: getsockopt

at java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)

at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:457)

at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2162)

at org.sonarsource.sonarlint.core.serverapi.ServerApiHelper.processResponse(ServerApiHelper.java:112)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)

at java.base/java.lang.Thread.run(Thread.java:1575)

Caused by: org.apache.hc.client5.http.HttpHostConnectException: Connect to http://192.168.2.15:9000 [/192.168.2.15] failed: Connection timed out: getsockopt

at java.base/sun.nio.ch.Net.pollConnect(Native Method)

at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)

at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:1062)

… 1 more

While the initial logic of this makes sense, it throws an error if it cannot connect to the SonarQube server, with the new version it keeps throwing the popups along with it for the errors.

Is there a way to silence this error, i.e. just print out cannot connect to server, i.e. 192.168.2.15:9000 here and then continue as it was working off-line for the moment like it would without a SonarQube connection without throwing many errors over and over? Or something that could be added to preferences to work offline if server unavailable?

EDIT:
I have also now seen new corresponding with this:

Problem Occurred ‘Fetch server taint issues for has encountered a problem. org.sonarsource.sonarlint.shaded.org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal Error’

This happens every time I open a new java file for editing in my Eclipse project.
Thanks in advance.

Hello @ntruhan,

Thanks a lot for your feedback.
We aware about this behavior and it’s part of the effort we started regarding better connection state management. Here’s the ticket:
https://sonarsource.atlassian.net/browse/SLCORE-1011
Plan is to stop attempts to synchronize with server for some time if we notice that requests are failing due to network problems or connection config issues.
Work is in progress now, but it competes with other topics. So thank you for your feedback again, it will help us to prioritize topics.

Best,