Error in SonarLint for IntelliJ after updating to latest plugin version 10.4.0.77904

  • Java: OpenJDK 64-Bit Server VM by JetBrains s.r.o. 17.0.10+1-b1087.17 amd64
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.4 (Ultimate Edition)
  • SonarLint: 10.4.0.77904

I get the following exception on every analysis SonarLint tries to do, so I can’t use the plugin anymore:

Internal error: java.nio.charset.UnsupportedCharsetException: NATIVE_TO_ASCII_ISO-8859-1
Error running SonarLint analysis
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:708)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
	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:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	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:840)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.
	... 8 more

Thank you very much in advance!

Same issue. This also blocks commits via pre-commit check integration.

Hello guys,

Thanks for reporting, and sorry for the problem you are facing.

Are there any other details you could share with us? Is the stack trace you shared above complete? Do you see anything in the logs?

We would be eager to fix those problems as soon as possible.

In the meantime, you can downgrade to the 10.3

Hi Damien,

thanks for your quick reply!

The stack trace is complete, I had the verbose logging enabled. I don’t know what else I could provide.

I tried to reproduce the error now and it’s suddenly different:
The error sometimes appears in IntelliJ and the idea.log, but the stack trace is no longer printed to the SonarLint log tab. But the message Internal error: java.nio.charset.UnsupportedCharsetException: NATIVE_TO_ASCII_ISO-8859-1 appears quite frequently. But analysis works all of a sudden?!

Hello,

For people encountering this problem, we made a custom build that should fix the problem. Could somebody in this thread install it and verify the fix works? This will help us prepare the bugfix release. Thank you

Hi

I had the same issue, tested with the custom build and it works with the fix

1 Like

Thank you very much Damien, looks good here as well!

I installed the custom build and still get the message “SonarLint service encountered an issue and stopped working”.

Do you see something useful in the verbose logs?

FYI we have fixes on the way that should be released today or tomorrow

Only a batch error saying that the jre call is syntactically incorrect at this place in the batch file.

I can confirm that the plugin V10.4.1.77998 works.

1 Like

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