-
Notifications
You must be signed in to change notification settings - Fork 206
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
Failed to refresh live data from process 12704 - com.xxxx.xx.xxx.BillingServiceApp after retries: 10 #748
Comments
This happens when the Spring Tools in VSCode try to fetch live information from the running app (in order to show live hovers): https://github.com/spring-projects/sts4/wiki/Live-Application-Information With the latest update to the Spring Tools for VSCode, this is triggered automatically after you launched a Spring Boot application, but it looks like this doesn't work somehow. In order to disable this automatic behavior, you can go to the preferences and disable In order to solve the underlying issue, we need a few more details here:
|
|
@Yaegar Can you paste the beginning of the log when starting the app here (the section that contains the launch arguments)? |
@Yaegar Maybe you can provide a small sample application that reproduces the behavior you are seeing? |
I get this too. Versions: Launch args: |
@sbreakey From the launch args it looks like the necessary args to enable this feature as not set automatically. How do you launch the app? And can you provide a sample app and a few steps how to reproduce this? There is a preference to disable the automatic launch args settings and the automatic attempt to connect to the process to show live data in the preferences But it would be good to find the root cause here in order to fix the underlying problem, so more details would be very much appreciated here. |
I use the vscode debugger (using the Microsoft "Debugger for Java" extension: vscjava.vscode-java-debug). My launch configuration is:
Sure here you go. It's literally an absolute bare bones gradle based, springboot 2.7.0 app generated by the initializer. Just open the "Run and Debug" screen in vscode and click "Run and Debug". |
@sbreakey Thanks for the additional details, we will take a closer look here. The project doesn't have spring-boot-actuators in the classpath, so live hovers won't show up anyway, but the tooling should be smart enough to not make any attempts in that direction in such a situation. But lets have a closer look first. |
Fixed with 24117a4 |
Tried running a spring boot application on vscode and got |
Same problem here. 2022-11-14T11:00:39.055+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : Starting TasksApplication using Java 17.0.5 with PID 55015 (/home/jarek/Dokumenty/markownie-webserwis/module_19.2/tasks/bin/main started by jarek in /home/jarek/Dokumenty/markownie-webserwis/module_19.2/tasks) |
@jarhuba @negwu01 In case you are running a Spring Boot 3 application, you might run into this issue: https://twitter.com/springtools4/status/1589591973878714368. So can you add this additional config to your
to see if that fixes the issue? |
After adding this line vscode works correctly. Thank you. |
I encountered the same issue |
@iwangbowen We fixed this a while ago, the property is usually added automatically now when launching a Spring Boot app in VSCode (in case you have the Spring Boot Tools installed). Can you provide further details, maybe a sample app, and some steps how to reproduce this? |
@iwangbowen it'd be great if you could share your Eclipse workspace folder zip in the case of Eclipse :-) |
Failed to refresh live data from process 12704 - com.xxxx.xx.xxx.BillingServiceApp after retries: 10
visual studio code 1.65.2
windows 11
default JDK 17
runtime JDK 8
The text was updated successfully, but these errors were encountered: