Repository navigation
Open
Labels
Description
Describe the bug
Java import fails with a warrning
To Reproduce
Steps to reproduce the behavior:
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request workspace/executeClientCommand failed with message: Cannot read properties of undefined (reading 'start')
at java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)
at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:457)
at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2139)
at org.eclipse.jdt.ls.core.internal.JavaClientConnection.executeClientCommand(JavaClientConnection.java:89)
at org.springframework.tooling.jdt.ls.extension.JdtLsExtensionPlugin.lambda$2(JdtLsExtensionPlugin.java:47)
at org.springframework.tooling.jdt.ls.commons.BootProjectTracker.fireEvent(BootProjectTracker.java:78)
at org.springframework.tooling.jdt.ls.commons.BootProjectTracker.processProject(BootProjectTracker.java:63)
at org.springframework.tooling.jdt.ls.commons.BootProjectTracker.<init>(BootProjectTracker.java:53)
at org.springframework.tooling.jdt.ls.extension.JdtLsExtensionPlugin.lambda$1(JdtLsExtensionPlugin.java:57)
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:739)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2206)
at org.springframework.tooling.jdt.ls.extension.JdtLsExtensionPlugin$1.done(JdtLsExtensionPlugin.java:84)
at org.eclipse.core.internal.jobs.JobListeners.sendEvent(JobListeners.java:153)
at org.eclipse.core.internal.jobs.JobListeners.sendEventsAsync(JobListeners.java:140)
at org.eclipse.core.internal.jobs.JobListeners.waitAndSendEvents(JobListeners.java:80)
at org.eclipse.core.internal.jobs.JobManager.withWriteLock(JobManager.java:571)
at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:785)
at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:118)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:83)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request workspace/executeClientCommand failed with message: Cannot read properties of undefined (reading 'start')
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:86)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:185)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1474)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
Additional Information
Activity
datho7561 commentedon Apr 16, 2026
What version of the extension are you using?
The traceback looks like it goes through the Spring Boot tooling code, maybe that's related?
mamilic commentedon Apr 16, 2026
Hi @datho7561 , thanks for quick reply.
I am using the latest release version of both plugins. It seems that spring plugin introduced new variable
spring-boot.ls.java.home, and if not set it will try to find the java version by looking at env variable JAVA_HOME. As I am using sdkman it can not find any Java on system.The workaroud is to set the
spring-boot.ls.java.home.datho7561 commentedon Apr 16, 2026
Hmm I definitely saw it once, but from a fresh install I don't see anything anymore.