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

[spring-boot-3] live information hovers are broken when running Spring Boot 3 application #862

Closed
martinlippert opened this issue Nov 4, 2022 · 1 comment
Assignees
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode status: needs-investigation theme: live-data type: bug

Comments

@martinlippert
Copy link
Member

Running petclinic from the springboot3 branch causes the live hovers to not work anymore.
The language server complains about things like:

09:08:01.185 [pool-6-thread-9] INFO  o.s.i.v.b.j.l.v.SpringProcessConnectorService - problem occured during process live data refresh
java.lang.Exception: no live data received, lets try again
	at org.springframework.ide.vscode.boot.java.livehover.v2.SpringProcessConnectorOverJMX.refresh(SpringProcessConnectorOverJMX.java:148)
	at org.springframework.ide.vscode.boot.java.livehover.v2.SpringProcessConnectorService.lambda$scheduleRefresh$4(SpringProcessConnectorService.java:258)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
@martinlippert martinlippert added type: bug status: needs-investigation for: eclipse something that is specific for Eclipse theme: live-data for: vscode something that is specific for VSCode labels Nov 4, 2022
@martinlippert martinlippert added this to the 4.17.0.RELEASE milestone Nov 4, 2022
@martinlippert martinlippert changed the title live information hovers are broken when running Spring Boot 3 application [spring-boot-3] live information hovers are broken when running Spring Boot 3 application Nov 4, 2022
@martinlippert martinlippert self-assigned this Nov 7, 2022
@martinlippert
Copy link
Member Author

The underlying reason for this is that actuators are no longer configured to expose everything via JMX by default. You need to enable this for a project manually.

We should add this property automatically when launching a Spring Boot project and JMX/live hovers are enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode status: needs-investigation theme: live-data type: bug
Projects
None yet
Development

No branches or pull requests

1 participant