Repository navigation
[1.22.1] couldn't create connection to server (Code: -32603) #3305
Copy link
Copy link
Closed
eclipse-jdtls/eclipse.jdt.ls
#2861Milestone
Description
[Error - 11:43:29 PM] Language Support for Java (Syntax Server) client: couldn't create connection to server.
Message: Internal error.
Code: -32603
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:67)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:144)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:65)
... 12 more
Caused by: java.lang.IllegalArgumentException: URI has a query component
at java.base/sun.nio.fs.UnixUriUtils.fromUri(Unknown Source)
at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(Unknown Source)
at java.base/java.nio.file.Path.of(Unknown Source)
at java.base/java.nio.file.Paths.get(Unknown Source)
at org.eclipse.jdt.ls.core.internal.ResourceUtils.canonicalFilePathFromURI(ResourceUtils.java:224)
at org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.handleInitializationOptions(BaseInitHandler.java:86)
at org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.initialize(BaseInitHandler.java:64)
at org.eclipse.jdt.ls.core.internal.syntaxserver.SyntaxLanguageServer.initialize(SyntaxLanguageServer.java:145)
... 17 more
Environment
-
Operating System:
Linux 5.4.119 -
JDK version:
17.0.3 -
Visual Studio Code version:
1.82.2 -
Java extension version:
1.22.1
Steps To Reproduce
- [step 1]
- [step 2]
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
Additional Informations
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
snjeza commentedon Sep 17, 2023
@enihcam Could you try to clean your workspace?
Java: Clean the Java Language Server WorkspaceRestart and deletefrom the confirmation promptand show your log - Enable logging
enihcam commentedon Sep 17, 2023
the following error message keeps repeating and flooding non-stop:
enihcam commentedon Sep 17, 2023
same as java language server log file:
the vscode windows is non-responsible...
snjeza commentedon Sep 18, 2023
@enihcam Could you let us know how you start VS Code?
enihcam commentedon Sep 18, 2023
i probably found the root cause:
The project is opened by VSCode in this URI format:
vscode://vscode-remote/ssh-remote+root@HOST/data/workspace/?windowId=_blankI'm guessing
vscode-javacannot handle query params.microsoft/vscode#141548
snjeza commentedon Sep 18, 2023
@enihcam Could you try
vscode://vscode-remote/ssh-remote+root@HOST/data/workspace/?enihcam commentedon Sep 18, 2023
sorry i can't. it's hard-coded.
yes, i can manually type the uri without query param and without problems, but it doesn't resolve the issue.
snjeza commentedon Sep 18, 2023
@enihcam Could you try VS Code 1.24.4?
enihcam commentedon Sep 18, 2023
the patch works perfectly. :)
