Skip to content

IllegalStateException: Missing header Content-Length in input #1192

Closed

Description

@ia3andy
java.lang.IllegalStateException: Missing header Content-Length in input "
""d:1,rsl"{cpblte"{txDcmnSn"2"oePoie"fle"eiiinrvdr:as,dcmnSmoPoie"fle"okpcSmoPoie"tu,dcmnFratnPoie"fle"ouetagFratnPoie"fle"naHnPoie"fale}Content-Length: 287
:2.""d:1,rsult":{"capabilities":{"textDocumentSync":2,"hoverPoie"fle"einProvider":false,"documentSymbolProvider":false,"workspaceSymbolProvdr:re,"ouetomtigrvdr:ase,"documentRangeFormattingProvider":false,"inlayHintProvider":false}}}C{"jsonrpc":"2.0","id":"2","method"ons":[{"id":"a6b67bc8-97b4-4010-a370-98ca3df9a412","method":"textDocument/codeLens"}]}}Content-Length: 361

"
	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

Activity

  1. angelozerr commented on Jul 28, 2025

    @angelozerr
    Contributor

    I have noticed this similar problem when I have not used IntelliJ for some hours. In this case Qute, MicroProfile language servers are stopped and when they restart them, you can have this problem.

    Do you think it could be this usecase?

    To fix this issue, you need to stop language servers and if you are not lucky, you need to restart your IJ.

  2. added
    bug
    on Jul 28, 2025
  3. tim-sh commented on Jul 28, 2025

    @tim-sh
    Contributor

    We notice similar behavior in a freshly-restarted IntelliJ instance, upon server start (initialize request failing) only if the workspace lives in WSL (with IntelliJ running outside WSL).

    Some exemplars for the error message File URL path must be absolute:

    "rror":{"code":36,msg""eus ntaiefie ihmsae ie ULpttebsue
    i,rr:"oe:363esage""Request initializefildwt essge ieULpt utb boue}
    {"jsor"ro"{cd"-20esae:RqetnitaiefiewhmeULpts out
    

    Chars seem to be randomly missing.

  4. angelozerr commented on Jul 28, 2025

    @angelozerr
    Contributor

    Thanks @tim-sh for your feedback. You have this problem every time? Hav you this problem in the same context that I have explained below?

    Can you start the language server?

  5. tim-sh commented on Jul 28, 2025

    @tim-sh
    Contributor

    @angelozerr A colleague of mine has reproduced this a couple of times on his Windows machine and it does not seem to be related to the IDE 'idling'. Nor is it fixed by restarting the IDE (and thus the server).
    So the language server did start up and received a syntactically valid initialize – does that answer your question? 🤔

  6. angelozerr commented on Jul 28, 2025

    @angelozerr
    Contributor

    Ok and which language server are you using?

  7. angelozerr commented on Jul 28, 2025

    @angelozerr
    Contributor

    Which version of LSP4IJ are you using?

  8. tim-sh commented on Jul 28, 2025

    @tim-sh
    Contributor

    It's the CDS language server and our plugin uses LSP4IJ 0.14.2

  9. self-assigned this
    on Jul 29, 2025
  10. added this to the 0.17.0 milestone on Oct 1, 2025
  11. added theissue type on Oct 1, 2025
  12. angelozerr commented on Oct 1, 2025

    @angelozerr
    Contributor

    It should be fixed with #1303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions