Skip to content

Opening Spring Boot project in VSCode leads to StackOverflowError #1166

Closed
@vbadev

Description

@vbadev

Describe the bug
A clear and concise description of what the bug is.
Opening Spring Boot project is opened error message is shown from VSCode - Request textDocument/codeAction failed.:

image

Extension log file from Go to output button:

Activating 'vscode-spring-boot' extension
"spring-boot.ls.java.home" setting not specified or empty value
Found java executable: c:\Users<redacted>.vscode\extensions\redhat.java-1.25.1-win32-x64\jre\17.0.9-win32-x86_64\bin\java.exe
isJavaEightOrHigher => true
Redirecting server logs to /dev/null
Disabling server log output. No more output will be sent after this.
[Error - 5:17:48 PM] Request textDocument/codeAction failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.StackOverflowError
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$Completion.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.StackOverflowError
at org.eclipse.jdt.core.dom.TypeBinding.isAnonymous(TypeBinding.java:1028)
at org.eclipse.jdt.core.dom.TypeBinding.getName(TypeBinding.java:704)
at org.eclipse.jdt.core.dom.TypeBinding.getQualifiedName(TypeBinding.java:837)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.getDirectSuperAnnotationBindings(AnnotationHierarchies.java:136)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.findTransitiveSuperAnnotationBindings(AnnotationHierarchies.java:157)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.lambda$findTransitiveSuperAnnotationBindings$4(AnnotationHierarchies.java:158)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
at java.base/java.util.Collections$2.tryAdvance(Unknown Source)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(Unknown Source)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(Unknown Source)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(Unknown Source)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(Unknown Source)
at java.base/java.util.stream.Streams$ConcatSpliterator.tryAdvance(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
at java.base/java.util.Collections$2.tryAdvance(Unknown Source)

Last seven lines are repeated many times.

In Extension host log file these lines are also repeated many times:

2024-01-10 17:17:48.764 [error] [vmware.vscode-spring-boot] provider FAILED
2024-01-10 17:17:48.764 [error] Error: Internal error.
at handleResponse (c:\Users\ZZ02TY644.vscode\extensions\vmware.vscode-spring-boot-1.51.0\node_modules\vscode-jsonrpc\lib\common\connection.js:565:48)
at handleMessage (c:\Users\ZZ02TY644.vscode\extensions\vmware.vscode-spring-boot-1.51.0\node_modules\vscode-jsonrpc\lib\common\connection.js:345:13)
at processMessageQueue (c:\Users\ZZ02TY644.vscode\extensions\vmware.vscode-spring-boot-1.51.0\node_modules\vscode-jsonrpc\lib\common\connection.js:362:17)
at Immediate. (c:\Users\ZZ02TY644.vscode\extensions\vmware.vscode-spring-boot-1.51.0\node_modules\vscode-jsonrpc\lib\common\connection.js:334:13)
at process.processImmediate (node:internal/timers:476:21)

The project is based on spring boot 2.7.17, and only enabled extensions are Debugger for Java, Language Support for Java(TM) by Red Hat, Spring Boot Dashboard, Spring Boot Extension Pack, Spring Boot Tools and Spring Initializr Java Support.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions