Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some error on WSL and Spring Extension #982

Closed
MajorTomMan opened this issue Feb 24, 2023 · 1 comment
Closed

Some error on WSL and Spring Extension #982

MajorTomMan opened this issue Feb 24, 2023 · 1 comment
Assignees
Labels
for: vscode something that is specific for VSCode type: bug

Comments

@MajorTomMan
Copy link

[provide a description of the issue]
When I open my project and wait for Opening Java Projects to finish running,
Java Projects works fine, but the Spring extension has the following error after JavaProjects is loaded
image

and dont have any output on dashboard
image

This error only occurs when running Java projects in Vscode on WSL2 and I have repeatedly reinstalled Java dependencies and Spring dependencies several times..........

here is some logs i got
!ENTRY org.eclipse.jdt.ls.core 4 2 2023-02-24 23:17:09.968
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ls.core".
!STACK 0
java.lang.NullPointerException: Cannot invoke "java.io.PrintWriter.println(String)" because "this.printwriter" is null
at org.springframework.tooling.jdt.ls.commons.Logger$DefaultLogger.log(Logger.java:51)
at org.springframework.tooling.jdt.ls.extension.ClasspathListenerHandler.executeCommand(ClasspathListenerHandler.java:48)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:230)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:220)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:559)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

!ENTRY org.eclipse.jdt.ls.core 4 0 2023-02-24 23:17:09.969
!MESSAGE Error in calling delegate command handler
!STACK 0
java.lang.NullPointerException: Cannot invoke "java.io.PrintWriter.println(String)" because "this.printwriter" is null
at org.springframework.tooling.jdt.ls.commons.Logger$DefaultLogger.log(Logger.java:51)
at org.springframework.tooling.jdt.ls.extension.ClasspathListenerHandler.executeCommand(ClasspathListenerHandler.java:48)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:230)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:220)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:559)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

Environment
Operating System: Ubuntu 20.04.5 LTS
JDK version:
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu120.04, mixed mode, sharing)
Visual Studio Code version: 1.75.1
Java extension version: v1.15.0

Steps To Reproduce
[step 1]
Waiting for the loading is done
[step 2]
click spring extension after step 1 is done
[step 3]
open the console and see some error report

@BoykoAlex
Copy link
Contributor

BoykoAlex commented Feb 28, 2023

Not sure if i can try VSCode on WSL2... However, I think i have a pretty idea what might be going wrong. The fix is 75fcb63. Should be available as a Nightly Build tomorrow (find proper vsix file at the bottom of the page). Alternatively, think there is a pre-release build scheduled for tonight, hence you should be able to give it a try by installing pre-release of Spring Boot Tools extension tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: vscode something that is specific for VSCode type: bug
Projects
None yet
Development

No branches or pull requests

3 participants