Error in SonarQube for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.8
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2025.2.3
  • SonarQube for IDE: 11.2.0.82481
o.sl.ij.config.global.credentials.CredentialsException: Could not load token or login/password credentials for connection: SonarCloud
	at o.sl.ij.config.global.credentials.CredentialsService.readCredentials(CredentialsService.kt:63)
	at o.sl.ij.config.global.credentials.CredentialsService.getCredentials$lambda$0(CredentialsService.kt:43)
	at o.sl.ij.util.ThreadUtilsKt.computeOnPooledThread$lambda$5(ThreadUtils.kt:72)
	at c.ij.oa.ap.impl.ApplicationImpl$5.call(ApplicationImpl.java:356)
	at c.ij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:86)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:95)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at c.ij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
	at c.ij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
	at c.ij.util.concurrency.ChildContext.runInChildContext(propagation.kt:173)
	at c.ij.util.concurrency.ChildContext.runInChildContext(propagation.kt:167)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Hey @khammer_forcam, it seems like we were not able to find either a password or a token in your stored credentials for your SonarQube Cloud connection.

Was it working until very recently?

In any case, creating a new connection or simply updating the token field should fix the issue.

Let us know if you still face any issues. Thanks!

Recreating the connection does not work.

Hi @unisys-abickerton, are you having the same error? Can you please share the SonarQube for IDE logs with us?

If you remove your existing connections and create them again, it still does not work?

I can share partial logs. This is all I can share.

IntelliJ : Build #IU-252.26830.84, built on October 2, 2025 (SNAP)
Runtime version: 21.0.8+9-b1038.72 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
OS : Ubuntu 24.04 GNOME
libsecret is present on the OS.

[2025-10-10T13:54:58.764] [Binding Suggestion Provider] ERROR sonarlint - Error while querying projects from connection 'XXXXXXX'
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.http.ConnectionAwareHttpClientProvider.queryClientForConnectionCredentials(ConnectionAwareHttpClientProvider.java:65)
	at org.sonarsource.sonarlint.core.http.ConnectionAwareHttpClientProvider.getHttpClient(ConnectionAwareHttpClientProvider.java:45)
	at org.sonarsource.sonarlint.core.SonarQubeClientManager.getServerApi(SonarQubeClientManager.java:119)
	at org.sonarsource.sonarlint.core.SonarQubeClientManager.getSonarQubeClient(SonarQubeClientManager.java:104)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at org.sonarsource.sonarlint.core.SonarQubeClientManager.getValidClient(SonarQubeClientManager.java:91)
	at org.sonarsource.sonarlint.core.SonarQubeClientManager.withActiveClientAndReturn(SonarQubeClientManager.java:83)
	at org.sonarsource.sonarlint.core.SonarProjectsCache.lambda$getTextSearchIndex$6(SonarProjectsCache.java:136)
	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4903)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3574)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2316)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2190)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2080)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4017)
	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4898)
	at org.sonarsource.sonarlint.core.SonarProjectsCache.getTextSearchIndex(SonarProjectsCache.java:132)
	at org.sonarsource.sonarlint.core.BindingSuggestionProvider.searchGoodMatchInConnection(BindingSuggestionProvider.java:260)
	at org.sonarsource.sonarlint.core.BindingSuggestionProvider.searchGoodMatchInConnections(BindingSuggestionProvider.java:212)
	at org.sonarsource.sonarlint.core.BindingSuggestionProvider.suggestBindingForEligibleScope(BindingSuggestionProvider.java:194)
	at org.sonarsource.sonarlint.core.BindingSuggestionProvider.computeBindingSuggestions(BindingSuggestionProvider.java:162)
	at org.sonarsource.sonarlint.core.BindingSuggestionProvider.computeAndNotifyBindingSuggestions(BindingSuggestionProvider.java:139)
	at org.sonarsource.sonarlint.core.BindingSuggestionProvider.lambda$queueBindingSuggestionComputation$0(BindingSuggestionProvider.java:131)
	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:1583)
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:49)
	... 3 more


When trying to retrieve the project list.

[2025-10-10T13:54:58.905] [Binding Suggestion Provider] DEBUG sonarlint - Downloaded server infos in 11ms Internal error: org.sonarlint.intellij.config.global.credentials.CredentialsException: Failed to get saved credentials from store java.util.concurrent.CompletionException: org.sonarlint.intellij.config.global.credentials.CredentialsException: Failed to get saved credentials from store 	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) 	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) 	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649) 	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) 	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:1583) Caused by: org.sonarlint.intellij.config.global.credentials.CredentialsException: Failed to get saved credentials from store 	at org.sonarlint.intellij.config.global.credentials.CredentialsService.getCredentials(CredentialsService.kt:46) 	at org.sonarlint.intellij.SonarLintIntelliJClient.getCredentials(SonarLintIntelliJClient.kt:557) 	at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$getCredentials$21(SonarLintRpcClientImpl.java:270) 	at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:125) 	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) 	... 4 more

I did, eventually, find a workaround.

By setting the file → Settings→passwords to use the embedded Keypass and resetting the master password using clear. I had to use the default location because the dialog in Intellij is broken under GNOME.

IMO, This isn’t a great solution as that file moves when a new version is released.

Thanks for sharing, that’s helpful!

In the latest version of SQ:IDE, we’ve transitioned to using IntelliJ’s secure password storage instead of the older sonarlint.xml file, which previously held encrypted credentials. This is the recommended approach for security. The location of this secure storage is entirely managed by your IntelliJ IDE settings, and we do not have control over it, as stated in their doc:

Storage

The default storage format depends on the OS.

Users can override the default behavior in Settings | Appearance & Behavior | System Settings | Passwords.

Perhaps we could improve the user feedback and display some explanations instead of failing with this generic error.