Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.3
  • SonarLint: 10.12.0.79769
java.lang.IllegalStateException: Missing header Content-Length in input "#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff9fbd00e34, pid=7204, tid=7020
#
# JRE version: OpenJDK Runtime Environment JBR-21.0.5+8-631.16-jcef (21.0.5+8) (build 21.0.5+8-b631.16)
# Java VM: OpenJDK 64-Bit Server VM JBR-21.0.5+8-631.16-jcef (21.0.5+8-b631.16, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x710e34]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
JNI global refs:
JNI global refs: 29, weak refs: 0

"
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:91)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	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:1583)

Hello @garabedian and welcome to the community.

SonarLint plugin uses STDIO transport to communicate with its backend. It looks like some other application sends something to the standard IO that breaks the SonarLint communication.

Here’s a topic about a similar problem another user had:

In the case above, the team of the nx-console tool fixed it on their side.

Unfortunately, in your case, it’s not obvious from the exception you get what this other application is. Maybe you suspect what can cause such a problem.
If not I would suggest disabling running on startup for all additional applications and try if everything works OK with just bare OS and Webstorm with SonarLint installed. Then, start the software you normally have running on your machine one by one.

Hope it helps.
Best,