I can't set up the vscode-java-test #329
-
Hello.
How can I resolve this? .log (click here)!SESSION 2022-09-21 19:53:01.509 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.16
java.vendor=Ubuntu
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -data /home/nix/.cache/nvim/workspaces_jdtls/udemy-java-test-course
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.231
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.492
!MESSAGE Main thread is waiting
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.546
!MESSAGE >> initialize
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.552
!MESSAGE Initializing Java Language Server 1.9.0.202203031534
!ENTRY org.eclipse.jdt.ls.core 4 0 2022-09-21 19:53:03.579
!MESSAGE Failed to load extension bundles
!STACK 1
org.eclipse.core.runtime.CoreException: Load bundle list
at org.eclipse.jdt.ls.core.internal.handlers.BundleUtils.loadBundles(BundleUtils.java:169)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler.handleInitializationOptions(InitHandler.java:91)
at org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.initialize(BaseInitHandler.java:63)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.initialize(JDTLanguageServer.java:237)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
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$0(ParentProcessWatcher.java:123)
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(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Contains: Failed to get bundleInfo for bundle from /home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.runner-jar-with-dependencies.jar
!SUBENTRY 1 org.eclipse.jdt.ls.core 4 0 2022-09-21 19:53:03.581
!MESSAGE Load bundle list
!SUBENTRY 2 org.eclipse.jdt.ls.core 4 0 2022-09-21 19:53:03.581
!MESSAGE Failed to get bundleInfo for bundle from /home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.runner-jar-with-dependencies.jar
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.617
!MESSAGE Static Commands: []
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.618
!MESSAGE Non-Static Commands: [java.edit.organizeImports, java.project.refreshDiagnostics, java.project.import, java.navigate.openTypeHierarchy, java.project.removeFromSourcePath, java.project.listSourcePaths, java.project.resolveStackTraceLocation, java.project.getAll, java.project.isTestFile, java.project.getClasspaths, java.navigate.resolveTypeHierarchy, java.edit.stringFormatting, java.project.getSettings, java.project.updateSourceAttachment, java.project.upgradeGradle, java.project.resolveSourceAttachment, java.project.addToSourcePath]
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.618
!MESSAGE Static Commands: []
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.619
!MESSAGE Non-Static Commands: [vscode.java.checkProjectSettings, vscode.java.isOnClasspath, vscode.java.fetchUsageData, vscode.java.validateLaunchConfig, vscode.java.resolveInlineVariables, vscode.java.resolveClassFilters, vscode.java.resolveMainMethod, vscode.java.resolveClasspath, vscode.java.resolveBuildFiles, vscode.java.resolveMainClass, vscode.java.updateDebugSettings, vscode.java.resolveSourceUri, vscode.java.fetchPlatformSettings, vscode.java.buildWorkspace, vscode.java.startDebugSession, vscode.java.inferLaunchCommandLength, vscode.java.resolveElementAtSelection, vscode.java.resolveJavaExecutable]
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.620
!MESSAGE Static Commands: []
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.620
!MESSAGE Non-Static Commands: [vscode.java.test.findJavaProjects, vscode.java.test.findTestPackagesAndTypes, vscode.java.test.findTestTypesAndMethods, vscode.java.test.resolvePath, vscode.java.test.findTestLocation, vscode.java.test.get.testpath, vscode.java.test.findDirectTestChildrenForClass, vscode.java.test.navigateToTestOrTarget, vscode.java.test.junit.argument, vscode.java.test.generateTests]
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.628
!MESSAGE Starting org.eclipse.m2e.core
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.629
!MESSAGE Started org.eclipse.m2e.core 0ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.641
!MESSAGE ProjectRegistryRefreshJob finished 12ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.642
!MESSAGE Starting org.eclipse.buildship.core
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.974
!MESSAGE Started org.eclipse.buildship.core 332ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:03.976
!MESSAGE LoadingGradleVersionJob finished 1ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:04.007
!MESSAGE >> initialized
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.021
!MESSAGE Importing Gradle project(s)
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.059
!MESSAGE Workspace initialized in 1080ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.159
!MESSAGE >> initialization job finished
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.168
!MESSAGE >> workspace/didChangeConfiguration
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.235
!MESSAGE >> New configuration: {java={progressReports={enabled=true}}}
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.246
!MESSAGE >> workspace/didChangeConfiguration
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.249
!MESSAGE >> New configuration: {java={progressReports={enabled=true}}}
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.251
!MESSAGE >> document/didOpen
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.523
!MESSAGE >> workspace/executeCommand vscode.java.resolveMainClass
!ENTRY java-debug 1 0 2022-09-21 19:53:05.561
!MESSAGE Starting com.microsoft.java.debug.plugin
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:05.920
!MESSAGE Reconciled 1. Took 2 ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.698
!MESSAGE >> workspace/executeCommand vscode.java.resolveJavaExecutable
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.708
!MESSAGE >> workspace/executeCommand vscode.java.checkProjectSettings
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.712
!MESSAGE >> workspace/executeCommand vscode.java.resolveClasspath
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.887
!MESSAGE begin problem for /PlanetService.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.888
!MESSAGE 0 problems reported for /PlanetService.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.894
!MESSAGE Validated 1. Took 951 ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.911
!MESSAGE >> build jobs finished
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.957
!MESSAGE >> registerWatchers'
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:06.958
!MESSAGE >> watchers registered
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:14.353
!MESSAGE >> workspace/executeCommand vscode.java.test.findTestTypesAndMethods
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:51.758
!MESSAGE >> document/didOpen
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:51.794
!MESSAGE >> workspace/executeCommand vscode.java.resolveMainClass
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:51.847
!MESSAGE Reconciled 1. Took 1 ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:51.867
!MESSAGE >> workspace/executeCommand vscode.java.resolveJavaExecutable
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:51.868
!MESSAGE >> workspace/executeCommand vscode.java.checkProjectSettings
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:51.870
!MESSAGE >> workspace/executeCommand vscode.java.resolveClasspath
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:53.030
!MESSAGE begin problem for /PlanetServiceTest.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:53.031
!MESSAGE 0 problems reported for /PlanetServiceTest.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:53.093
!MESSAGE begin problem for /PlanetService.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:53.094
!MESSAGE 0 problems reported for /PlanetService.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:53:53.095
!MESSAGE Validated 2. Took 846 ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:54:00.073
!MESSAGE >> workspace/executeCommand vscode.java.test.findTestTypesAndMethods
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:54:00.094
!MESSAGE >> workspace/executeCommand vscode.java.test.junit.argument
!ENTRY com.microsoft.java.test.plugin 4 0 2022-09-21 19:54:00.235
!MESSAGE failed to resolve the classpath.
!STACK 0
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)
at com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)
... 19 more
Root exception:
java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)
at com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:55:21.386
!MESSAGE >> workspace/executeCommand vscode.java.test.findTestTypesAndMethods
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:55:21.414
!MESSAGE >> workspace/executeCommand vscode.java.test.junit.argument
!ENTRY com.microsoft.java.test.plugin 4 0 2022-09-21 19:55:21.535
!MESSAGE failed to resolve the classpath.
!STACK 0
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)
at com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)
... 19 more
Root exception:
java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)
at com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:57:01.163
!MESSAGE >> shutdown
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:57:01.183
!MESSAGE >> exit
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:57:01.317
!MESSAGE Shutdown received... waking up main thread
!ENTRY java-debug 1 0 2022-09-21 19:57:01.326
!MESSAGE Stopping com.microsoft.java.debug.plugin
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:57:01.336
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is stopping:
!SESSION 2022-09-21 19:58:27.647 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.16
java.vendor=Ubuntu
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -data /home/nix/.cache/nvim/workspaces_jdtls/udemy-java-test-course
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.357
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.612
!MESSAGE Main thread is waiting
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.691
!MESSAGE >> initialize
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.694
!MESSAGE Initializing Java Language Server 1.9.0.202203031534
!ENTRY org.eclipse.jdt.ls.core 4 0 2022-09-21 19:58:29.715
!MESSAGE Failed to load extension bundles
!STACK 1
org.eclipse.core.runtime.CoreException: Load bundle list
at org.eclipse.jdt.ls.core.internal.handlers.BundleUtils.loadBundles(BundleUtils.java:169)
at org.eclipse.jdt.ls.core.internal.handlers.InitHandler.handleInitializationOptions(InitHandler.java:91)
at org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.initialize(BaseInitHandler.java:63)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.initialize(JDTLanguageServer.java:237)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
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$0(ParentProcessWatcher.java:123)
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(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Contains: Failed to get bundleInfo for bundle from /home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.runner-jar-with-dependencies.jar
!SUBENTRY 1 org.eclipse.jdt.ls.core 4 0 2022-09-21 19:58:29.721
!MESSAGE Load bundle list
!SUBENTRY 2 org.eclipse.jdt.ls.core 4 0 2022-09-21 19:58:29.721
!MESSAGE Failed to get bundleInfo for bundle from /home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.runner-jar-with-dependencies.jar
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.758
!MESSAGE Static Commands: []
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.759
!MESSAGE Non-Static Commands: [java.edit.organizeImports, java.project.refreshDiagnostics, java.project.import, java.navigate.openTypeHierarchy, java.project.removeFromSourcePath, java.project.listSourcePaths, java.project.resolveStackTraceLocation, java.project.getAll, java.project.isTestFile, java.project.getClasspaths, java.navigate.resolveTypeHierarchy, java.edit.stringFormatting, java.project.getSettings, java.project.updateSourceAttachment, java.project.upgradeGradle, java.project.resolveSourceAttachment, java.project.addToSourcePath]
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.760
!MESSAGE Static Commands: []
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.760
!MESSAGE Non-Static Commands: [vscode.java.checkProjectSettings, vscode.java.isOnClasspath, vscode.java.fetchUsageData, vscode.java.validateLaunchConfig, vscode.java.resolveInlineVariables, vscode.java.resolveClassFilters, vscode.java.resolveMainMethod, vscode.java.resolveClasspath, vscode.java.resolveBuildFiles, vscode.java.resolveMainClass, vscode.java.updateDebugSettings, vscode.java.resolveSourceUri, vscode.java.fetchPlatformSettings, vscode.java.buildWorkspace, vscode.java.startDebugSession, vscode.java.inferLaunchCommandLength, vscode.java.resolveElementAtSelection, vscode.java.resolveJavaExecutable]
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.761
!MESSAGE Static Commands: []
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.762
!MESSAGE Non-Static Commands: [vscode.java.test.findJavaProjects, vscode.java.test.findTestPackagesAndTypes, vscode.java.test.findTestTypesAndMethods, vscode.java.test.resolvePath, vscode.java.test.findTestLocation, vscode.java.test.get.testpath, vscode.java.test.findDirectTestChildrenForClass, vscode.java.test.navigateToTestOrTarget, vscode.java.test.junit.argument, vscode.java.test.generateTests]
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.769
!MESSAGE Starting org.eclipse.m2e.core
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.770
!MESSAGE Started org.eclipse.m2e.core 1ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.794
!MESSAGE ProjectRegistryRefreshJob finished 22ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:29.794
!MESSAGE Starting org.eclipse.buildship.core
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:30.113
!MESSAGE Started org.eclipse.buildship.core 319ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:30.115
!MESSAGE LoadingGradleVersionJob finished 1ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:30.177
!MESSAGE >> initialized
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.242
!MESSAGE Importing Gradle project(s)
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.273
!MESSAGE Workspace initialized in 1155ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.386
!MESSAGE >> initialization job finished
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.389
!MESSAGE >> workspace/didChangeConfiguration
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.690
!MESSAGE >> New configuration: {java={progressReports={enabled=true}}}
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.691
!MESSAGE >> workspace/didChangeConfiguration
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.694
!MESSAGE >> New configuration: {java={progressReports={enabled=true}}}
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:31.696
!MESSAGE >> document/didOpen
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:32.063
!MESSAGE >> workspace/executeCommand vscode.java.resolveMainClass
!ENTRY java-debug 1 0 2022-09-21 19:58:32.083
!MESSAGE Starting com.microsoft.java.debug.plugin
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:33.015
!MESSAGE >> workspace/executeCommand vscode.java.resolveJavaExecutable
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:33.022
!MESSAGE >> workspace/executeCommand vscode.java.checkProjectSettings
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:33.026
!MESSAGE >> workspace/executeCommand vscode.java.resolveClasspath
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:33.415
!MESSAGE Reconciled 1. Took 1 ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:34.364
!MESSAGE begin problem for /PlanetServiceTest.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:34.364
!MESSAGE 0 problems reported for /PlanetServiceTest.java
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:34.369
!MESSAGE Validated 1. Took 932 ms
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:34.384
!MESSAGE >> build jobs finished
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:34.418
!MESSAGE >> registerWatchers'
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 19:58:34.427
!MESSAGE >> watchers registered
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 20:04:50.842
!MESSAGE >> workspace/executeCommand vscode.java.test.findTestTypesAndMethods
!ENTRY org.eclipse.jdt.ls.core 1 0 2022-09-21 20:04:50.974
!MESSAGE >> workspace/executeCommand vscode.java.test.junit.argument
!ENTRY com.microsoft.java.test.plugin 4 0 2022-09-21 20:04:51.138
!MESSAGE failed to resolve the classpath.
!STACK 0
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)
at com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)
... 19 more
Root exception:
java.lang.NullPointerException
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)
at com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)
at com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) lsp.log (click here)[START][2022-09-21 19:58:29] LSP logging initiated
[ERROR][2022-09-21 19:58:29] ...lsp/handlers.lua:485 "21 de set de 2022 19:58:29 Failed to load extension bundles \nLoad bundle list\norg.eclipse.core.runtime.CoreException: Load bundle list\n\tat org.eclipse.jdt.ls.core.internal.handlers.BundleUtils.loadBundles(BundleUtils.java:169)\n\tat org.eclipse.jdt.ls.core.internal.handlers.InitHandler.handleInitializationOptions(InitHandler.java:91)\n\tat org.eclipse.jdt.ls.core.internal.handlers.BaseInitHandler.initialize(BaseInitHandler.java:63)\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.initialize(JDTLanguageServer.java:237)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)\n\tat org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$0(ParentProcessWatcher.java:123)\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)\n\tat org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nContains: Failed to get bundleInfo for bundle from /home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.runner-jar-with-dependencies.jar\n"
[WARN][2022-09-21 19:58:31] ...lsp/handlers.lua:113 "The language server jdtls triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2022-09-21 20:04:51] ...lsp/handlers.lua:485 "21 de set de 2022 20:04:51 failed to resolve the classpath.\nnull\njava.lang.reflect.InvocationTargetException\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat com.microsoft.java.test.plugin.launchers.JUnitLaunchConfigurationDelegate.getJUnitLaunchArguments(JUnitLaunchConfigurationDelegate.java:78)\n\tat com.microsoft.java.test.plugin.launchers.JUnitLaunchUtils.resolveLaunchArgument(JUnitLaunchUtils.java:102)\n\tat com.microsoft.java.test.plugin.handler.TestDelegateCommandHandler.executeCommand(TestDelegateCommandHandler.java:50)\n\tat org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:215)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)\n\tat org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:205)\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:507)\n\tat org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)\n\tat java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)\n\tat java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n\tat java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)\n\tat java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)\nCaused by: java.lang.NullPointerException\n\tat org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.localURL(JUnitLaunchConfigurationDelegate.java:737)\n\tat org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate$ClasspathLocalizer.entryString(JUnitLaunchConfigurationDelegate.java:726)\n\tat org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.getVMRunnerConfiguration(JUnitLaunchConfigurationDelegate.java:205)\n\t... 19 more\n" :lua print(vim.inspect(vim.lsp.get_active_clients())) (click here){ {
_on_attach = <function 1>,
attached_buffers = { true },
cancel_request = <function 2>,
commands = {},
config = {
capabilities = {
callHierarchy = {
dynamicRegistration = false
},
textDocument = {
codeAction = {
codeActionLiteralSupport = {
codeActionKind = {
valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }
}
},
dataSupport = true,
dynamicRegistration = false,
isPreferredSupport = true,
resolveSupport = {
properties = { "edit" }
}
},
completion = {
completionItem = {
commitCharactersSupport = true,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
labelDetailsSupport = true,
preselectSupport = true,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionItemKind = {
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }
},
contextSupport = false,
dynamicRegistration = false
},
declaration = {
linkSupport = true
},
definition = {
linkSupport = true
},
documentHighlight = {
dynamicRegistration = false
},
documentSymbol = {
dynamicRegistration = false,
hierarchicalDocumentSymbolSupport = true,
symbolKind = {
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
}
},
hover = {
contentFormat = { "markdown", "plaintext" },
dynamicRegistration = false
},
implementation = {
linkSupport = true
},
publishDiagnostics = {
relatedInformation = true,
tagSupport = {
valueSet = { 1, 2 }
}
},
references = {
dynamicRegistration = false
},
rename = {
dynamicRegistration = false,
prepareSupport = true
},
signatureHelp = {
dynamicRegistration = false,
signatureInformation = {
activeParameterSupport = true,
documentationFormat = { "markdown", "plaintext" },
parameterInformation = {
labelOffsetSupport = true
}
}
},
synchronization = {
didSave = true,
dynamicRegistration = false,
willSave = false,
willSaveWaitUntil = false
},
typeDefinition = {
linkSupport = true
}
},
window = {
showDocument = {
support = false
},
showMessage = {
messageActionItem = {
additionalPropertiesSupport = false
}
},
workDoneProgress = true
},
workspace = {
applyEdit = true,
configuration = true,
symbol = {
dynamicRegistration = false,
hierarchicalWorkspaceSymbolSupport = true,
symbolKind = {
valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
}
},
workspaceEdit = {
resourceOperations = { "rename", "create", "delete" }
},
workspaceFolders = true
}
},
cmd = { "java", "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product", "-Dlog.protocol=true", "-Dlog.level=ALL", "-Xms1g", "--add-modules=ALL-SYSTEM", "--add-opens", "java.base/java.util=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-jar", "/home/nix/.config/nvim/servers/jdt-language-server/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar", "-configuration", "/home/nix/.config/nvim/servers/jdt-language-server/config_linux", "-data", "/home/nix/.cache/nvim/workspaces_jdtls/udemy-java-test-course" },
flags = {},
get_language_id = <function 3>,
handlers = <1>{
["language/progressReport"] = <function 4>,
["language/status"] = <function 5>,
["workspace/configuration"] = <function 6>
},
init_options = {
bundles = { "/home/nix/.config/nvim/debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-0.36.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.plugin-0.37.1.jar", "/home/nix/.config/nvim/vscode-java-test/server/com.microsoft.java.test.runner-jar-with-dependencies.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-jupiter-api_5.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-jupiter-engine_5.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-jupiter-migrationsupport_5.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-jupiter-params_5.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-commons_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-engine_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-launcher_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-runner_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-suite-api_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-suite-commons_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-platform-suite-engine_1.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/junit-vintage-engine_5.9.0.jar", "/home/nix/.config/nvim/vscode-java-test/server/org.apiguardian.api_1.1.2.jar", "/home/nix/.config/nvim/vscode-java-test/server/org.eclipse.jdt.junit4.runtime_1.3.0.v20220609-1843.jar", "/home/nix/.config/nvim/vscode-java-test/server/org.eclipse.jdt.junit5.runtime_1.1.0.v20220715-1030.jar", "/home/nix/.config/nvim/vscode-java-test/server/org.opentest4j_1.2.0.v20190826-0900.jar" },
extendedClientCapabilities = {
advancedExtractRefactoringSupport = true,
advancedOrganizeImportsSupport = true,
classFileContentsSupport = true,
generateConstructorsPromptSupport = true,
generateDelegateMethodsPromptSupport = true,
generateToStringPromptSupport = true,
hashCodeEqualsPromptSupport = true,
inferSelectionSupport = { "extractMethod", "extractVariable", "extractConstant" },
moveRefactoringSupport = true,
overrideMethodsPromptSupport = true,
progressReportProvider = true
}
},
name = "jdtls",
on_attach = <function 7>,
on_init = <function 8>,
root_dir = "/home/nix/Documents/udemy-java-test-course",
settings = {
java = {
progressReports = {
enabled = true
}
}
}
},
handlers = <table 1>,
id = 1,
initialized = true,
is_stopped = <function 9>,
messages = {
messages = {},
name = "jdtls",
progress = {
["391c17f3-c6e7-41d7-bec7-d9189460a13e"] = {
done = true,
message = "project application",
percentage = 0.2,
title = "Updating Maven Dependencies"
},
["3e8dfd8e-76f0-40d4-a6aa-44146fc89dd9"] = {
done = true,
percentage = 0,
title = "Building"
},
["410534bb-4a5f-46b7-9629-a5b198b29a74"] = {
done = true,
percentage = nan,
title = "Repository registry initialization"
},
["43e66dfa-617d-4218-b9a7-5b6671870a89"] = {
done = true,
percentage = 0,
title = "Validate documents"
},
["444ecafd-b982-4407-ad9d-7c4b91e7f464"] = {
done = true,
percentage = 0,
title = "Building"
},
["567f388b-6588-4de6-bb77-bad36451fb13"] = {
done = true,
percentage = 100,
title = "Building"
},
["56fa5924-0cf4-46d6-a9c0-d4d833f5f89a"] = {
done = true,
message = "",
percentage = 1100,
title = "Creating link."
},
["85678160-5c6a-4260-a569-fcf58b198e26"] = {
done = true,
percentage = 50,
title = "Publish Diagnostics"
},
["9d0c3ea3-86c6-4bf3-a72b-a319ee112dae"] = {
done = true,
message = "",
percentage = 100,
title = "Building"
},
["bf2794a3-cba2-4bee-bc33-738cd999c45c"] = {
done = true,
percentage = 0.9,
title = "Building"
},
["d59a3128-4176-4fa6-b29e-2aac9685eff3"] = {
done = true,
message = "Refreshing '/application/build/classes/java/main/dev/lobophf/application/domain'.",
percentage = 44.7,
title = "Refreshing workspace"
},
["da35ac5c-e234-4b67-83b4-e3f30ddce842"] = {
done = true,
percentage = 0,
title = "Building"
},
["fe679521-f25a-42d9-a872-a2fd9c6efef6"] = {
done = true,
message = "",
percentage = 100,
title = "Building"
}
},
status = {}
},
name = "jdtls",
notify = <function 10>,
offset_encoding = "utf-16",
request = <function 11>,
request_sync = <function 12>,
requests = {},
rpc = {
is_closing = <function 13>,
notify = <function 14>,
request = <function 15>,
terminate = <function 16>
},
server_capabilities = {
callHierarchyProvider = true,
codeActionProvider = {
resolveProvider = true
},
codeLensProvider = {
resolveProvider = true
},
completionProvider = {
resolveProvider = true,
triggerCharacters = { ".", "@", "#", "*", " " }
},
definitionProvider = true,
documentFormattingProvider = true,
documentHighlightProvider = true,
documentOnTypeFormattingProvider = {
firstTriggerCharacter = ";",
moreTriggerCharacter = { "\n", "}" }
},
documentRangeFormattingProvider = true,
documentSymbolProvider = true,
executeCommandProvider = {
commands = { "vscode.java.checkProjectSettings", "vscode.java.isOnClasspath", "java.project.import", "vscode.java.fetchUsageData", "vscode.java.validateLaunchConfig", "java.navigate.openTypeHierarchy", "java.project.resolveStackTraceLocation", "vscode.java.test.junit.argument", "java.edit.stringFormatting", "vscode.java.test.generateTests", "vscode.java.resolveMainMethod", "java.project.getSettings", "vscode.java.test.findTestTypesAndMethods", "java.project.upgradeGradle", "vscode.java.resolveMainClass", "vscode.java.test.get.testpath", "vscode.java.test.navigateToTestOrTarget", "vscode.java.buildWorkspace", "vscode.java.resolveElementAtSelection", "vscode.java.resolveJavaExecutable", "java.edit.organizeImports", "java.project.refreshDiagnostics", "vscode.java.test.findTestPackagesAndTypes", "vscode.java.resolveInlineVariables", "java.project.removeFromSourcePath", "java.project.listSourcePaths", "java.project.getAll", "java.project.isTestFile", "vscode.java.resolveClassFilters", "java.project.getClasspaths", "java.navigate.resolveTypeHierarchy", "vscode.java.test.findJavaProjects", "java.project.updateSourceAttachment", "vscode.java.resolveClasspath", "vscode.java.resolveBuildFiles", "vscode.java.test.resolvePath", "vscode.java.updateDebugSettings", "vscode.java.resolveSourceUri", "vscode.java.test.findTestLocation", "vscode.java.test.findDirectTestChildrenForClass", "vscode.java.fetchPlatformSettings", "java.project.resolveSourceAttachment", "java.project.addToSourcePath", "vscode.java.startDebugSession", "vscode.java.inferLaunchCommandLength" }
},
foldingRangeProvider = true,
hoverProvider = true,
implementationProvider = true,
referencesProvider = true,
renameProvider = {
prepareProvider = true
},
selectionRangeProvider = true,
semanticTokensProvider = {
documentSelector = { {
language = "java",
scheme = "file"
}, {
language = "java",
scheme = "jdt"
} },
full = {
delta = false
},
legend = {
tokenModifiers = { "abstract", "static", "readonly", "deprecated", "declaration", "documentation", "public", "private", "protected", "native", "generic", "typeArgument", "importDeclaration", "constructor" },
tokenTypes = { "namespace", "class", "interface", "enum", "enumMember", "type", "typeParameter", "method", "property", "variable", "parameter", "modifier", "keyword", "annotation", "annotationMember", "record", "recordComponent" }
},
range = false
},
signatureHelpProvider = {
triggerCharacters = { "(", "," }
},
textDocumentSync = {
change = 2,
openClose = true,
save = {
includeText = true
}
},
typeDefinitionProvider = true,
workspace = {
workspaceFolders = {
changeNotifications = true,
supported = true
}
},
workspaceSymbolProvider = true
},
stop = <function 17>,
supports_method = <function 18>,
workspaceFolders = <2>{ {
name = "/home/nix/Documents/udemy-java-test-course",
uri = "file:///home/nix/Documents/udemy-java-test-course"
} },
workspace_folders = <table 2>,
<metatable> = {
__index = <function 19>
}
} } Please also take a look at my configuration ( local JAR_PATH = os.getenv('HOME') .. '/.config/nvim/servers/jdt-language-server/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar'
local CONFIG_PATH = os.getenv('HOME') .. '/.config/nvim/servers/jdt-language-server/config_linux'
local DEBUG_PATH = os.getenv('HOME') .. '/.config/nvim/debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-0.36.0.jar'
-- local DEBUG_TEST_PATH = os.getenv('HOME') ..'/.config/nvim/vscode-java-test/server/com.microsoft.java.test.plugin-0.37.1.jar'
local DEBUG_TEST_PATH = os.getenv('HOME') ..'/.config/nvim/vscode-java-test/server/*.jar'
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
local WORKSPACE_DIR = vim.fn.fnamemodify(vim.fn.getcwd(), ':p:h:t')
local util = require('jdtls.util')
local dap = require("dap")
require('jdtls').setup_dap({ hotcodereplace = 'auto' })
dap.adapters.java = function(callback)
util.execute_command({ command = 'vscode.java.startDebugSession' }, function(err0, port)
assert(not err0, vim.inspect(err0))
callback({
type = 'server',
host = '127.0.0.1',
port = port,
})
end)
end
-- Debugging
local bundles = {
vim.fn.glob( DEBUG_PATH ),
}
vim.list_extend(bundles, vim.split(vim.fn.glob( DEBUG_TEST_PATH ), "\n"))
local config = {
cmd = {
'java',
'-Declipse.application=org.eclipse.jdt.ls.core.id1',
'-Dosgi.bundles.defaultStartLevel=4',
'-Declipse.product=org.eclipse.jdt.ls.core.product',
'-Dlog.protocol=true',
'-Dlog.level=ALL',
'-Xms1g',
'--add-modules=ALL-SYSTEM',
'--add-opens', 'java.base/java.util=ALL-UNNAMED',
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'-jar', JAR_PATH,
'-configuration', CONFIG_PATH,
'-data', vim.fn.expand('~/.cache/nvim/workspaces_jdtls/') .. WORKSPACE_DIR
},
root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}),
init_options = {
bundles = bundles,
},
capabilities = capabilities,
on_attach = function(client, bufnr)
require('jdtls.dap').setup_dap_main_class_configs()
end
}
require('jdtls').start_or_attach(config) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
How did you build the bundles? I had a similar issue with junit5 tests when I built vscode-java-test with java 11. Switching to the same version that I use to build eclipse.jdt.ls and java-debug (java 18 in my case) solved the problem for me. |
Beta Was this translation helpful? Give feedback.
-
With your help I've made some progress, at least I think. Now after run the
However, everything only works for java-17-openjdk. If I want to use Java 11, should I recompile everything for this version? Just for recording, I had previously used the milestone version of Thank you. |
Beta Was this translation helpful? Give feedback.
-
I have same/similar issues: Using java-test from Mason. And JDK 17 as my java. |
Beta Was this translation helpful? Give feedback.
How did you build the bundles? I had a similar issue with junit5 tests when I built vscode-java-test with java 11. Switching to the same version that I use to build eclipse.jdt.ls and java-debug (java 18 in my case) solved the problem for me.