Error in SonarQube for IntelliJ 10.15: Missing header Content-Length

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.3.2
  • SonarQube for IDE: 10.15.0.80347
java.lang.IllegalStateException: Missing header Content-Length in input "JNI global refs memory usage: 835, weak refs: 833

"
	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)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.3.2
  • SonarQube for IDE: 10.15.0.80347
java.lang.IllegalStateException: Missing header Content-Length in input "OOME stack traces (most recent first):
Classloader memory used:
Loader org.sonar.classloader.ClassRealm                                                : 26806K
Loader jdk.internal.loader.ClassLoaders$AppClassLoader                                 : 23748K
Loader bootstrap                                                                       : 17162K
Loader jdk.internal.loader.ClassLoaders$PlatformClassLoader                            : 1751K
Loader com.sonar.sslr.impl.typed.Interceptor$1                                         : 130K
Loader com.sonar.sslr.impl.typed.Interceptor$1                                         : 107K
Loader o.ss.sl.core.plugin.commons.loading.Slf4jBridgeClassLoader    : 43168B

"
	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)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.3.2
  • SonarQube for IDE: 10.15.0.80347
java.lang.IllegalStateException: Missing header Content-Length in input "Classes loaded by more than one classloader:
Class org.sonarsource.analyzer.commons.internal.json.simple.JSONArray                 : loaded 10 times (x 213B)
Class org.sonarsource.analyzer.commons.EducationRuleLoader                            : loaded 10 times (x 72B)
Class org.sonarsource.analyzer.commons.RuleMetadataLoader                             : loaded 10 times (x 71B)
Class org.sonarsource.analyzer.commons.internal.json.simple.parser.Yylex              : loaded 10 times (x 71B)
Class org.sonarsource.analyzer.commons.Resources                                      : loaded 10 times (x 67B)
Class org.sonarsource.analyzer.commons.internal.json.simple.parser.Yytoken            : loaded 10 times (x 68B)
Class org.sonarsource.analyzer.commons.internal.json.simple.JSONObject                : loaded 10 times (x 138B)
Class org.sonarsource.analyzer.commons.internal.json.simple.JSONAware                 : loaded 10 times (x 66B)
Class org.sonarsource.analyzer.commons.internal.json.simple.JSONStreamAware           : loaded 10 times (x 66B)
Class org.sonarsource.analyzer.commons.JsonParser                                     : loaded 10 times (x 70B)
Class org.sonarsource.analyzer.commons.internal.json.simple.parser.JSONParser         : loaded 10 times (x 79B)
Class org.sonarsource.analyzer.commons.internal.json.simple.parser.ParseException     : loaded 10 times (x 85B)
Class org.sonarsource.analyzer.commons.BuiltInQualityProfileJsonLoader                : loaded 10 times (x 67B)
Class org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey                  : loaded 9 times (x 66B)
Class org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKeys                 : loaded 9 times (x 66B)
Class GeneratedBySSLR                                                                 : loaded 8 times (x 120B)
Class javax.annotation.Nonnull                                                        : loaded 7 times (x 66B)
Class javax.annotation.meta.When                                                      : loaded 6 times (x 75B)
Class [Ljavax.annotation.meta.When;                                                   : loaded 6 times (x 65B)
Class javax.annotation.meta.TypeQualifier                                             : loaded 6 times (x 66B)
Class com.google.gson.JsonObject                                                      : loaded 5 times (x 89B)
Class com.google.gson.JsonElement                                                     : loaded 5 times (x 88B)
Class javax.annotation.Nullable                                                       : loaded 5 times (x 66B)
Class javax.annotation.CheckForNull                                                   : loaded 5 times (x 66B)
Class com.google.gson.JsonArray                                                       : loaded 5 times (x 96B)
Class com.google.gson.internal.bind.TypeAdapters$32                                   : loaded 4 times (x 72B)
Class com.google.gson.internal.bind.ObjectTypeAdapter                                 : loaded 4 times (x 70B)
Class com.google.gson.internal.bind.TypeAdapters$33                                   : loaded 4 times (x 72B)
Class [Lcom.google.gson.FieldNamingStrategy;                                          : loaded 4 times (x 65B)
Class com.google.gson.ToNumberPolicy$1                                                : loaded 4 times (x 79B)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.3.2
  • SonarQube for IDE: 10.15.0.80347
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=0x00007ffad7c0c0c8, pid=23580, tid=23716
#
# JRE version: OpenJDK Runtime Environment JBR-21.0.5+8-631.30-jcef (21.0.5+8) (build 21.0.5+8-b631.30)
# Java VM: OpenJDK 64-Bit Server VM JBR-21.0.5+8-631.30-jcef (21.0.5+8-b631.30, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x70c0c8]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
JNI global refs:
JNI global refs: 30, 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)

Hi @garabedian , thank you for sharing these with us.

Do you have more information to share about this error? Is it reproducible? If it is reproducible could you tell us the basic steps to reproduce it.

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.3.2.1
  • SonarQube for IDE: 10.15.0.80347
java.lang.IllegalStateException: Missing header Content-Length in input "
"
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)
	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)

Hi @msd_miro,

Welcome to the community and thanks for this report!

I’ve combined it with other reports of the same issue.

Can you share what you were doing when this happened?

 
Thx,
Ann