You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
STS4 Eclipse: Failed to refresh live data from process 18225 #450
But for some reason the tooling fails to make a connection to that running process. Do you have actuators on the project? And how did you start the app?
In case you are not interested in the automatic enablement of this live hover mechanism, you can just ignore this message.
My application is a HelloWorld, I picked Spring Web MVC, thymeleaf, jpa and h2 database. As far as I can tell I don't have actuators, but I'm still a beginner, so that's why I asked if I was missing something.
This is literally all I have, and I'm starting the application by right clicking the project and selecting "run as... Spring Boot App" right after it starts it tries to connect to the process without success.
Good to know it is safe to ignore the error, I was confused by it, I previously used Eclipse 2019-12 with STS4 plugin and I don't remember seeing the error, so now that I moved to standalone STS4 I was confused if there was some setup I was missing.
Yes, it is absolutely safe to ignore the error and we will probably change that message dialog in the future anyway to not annoy or confuse users too much.
As a quick check, can you add the spring-boot-actuators module to your project to see if you can get the live hovers to work for your project? Would be interesting. And if not, maybe attach your project somewhere for us as an example to took at and think about possible improvements for those settings?
Adding spring-boot-actuators stopped the message entirely and looks like it is working as it should.
Perhaps if there are no actuators in the project there should not be any attempt to connect to a process? To prevent having to display an error message when it should not be required? Although it looks useful, I may include in my future projects! :)
Glad to hear that this works just fine when you have the actuators on the project, that is good news.
As mentioned above, you can disable the automatic process tracking in the preferences and instead manually enable this for a running spring boot application. That way you would avoid the error message for projects without actuators.
Yes, it is absolutely safe to ignore the error and we will probably change that message dialog in the future anyway to not annoy or confuse users too much.
As a quick check, can you add the spring-boot-actuators module to your project to see if you can get the live hovers to work for your project? Would be interesting. And if not, maybe attach your project somewhere for us as an example to took at and think about possible improvements for those settings?
It is good if you mention the dependency block we need to add to the pom.xml
Thanks.
Please keep in mind that you should only use the Spring Boot Actuators if you want to use this live information feature or other things the actuators are good for. Adding actuators to your project only and exclusively to get rid of this error message would be wrong. In that case, please note that you can disable the automatic process tracking in the preferences, which would avoid this error message as well - and still allow you to manually connect the live hover mechanism to the project.
I disabled the automatic process tracking since I'm just learning and have no real use for Actuator just yet, I think this should be disabled unless actuator is enabled in the project either by the spring boot project creation wizard or by manual insertion by the user.
I added a check to avoid this automatic process connection for projects that don't have the spring boot actuators on their classpath. Should make this a lot smoother and avoids the error message coming up for projects without actuators.
Hey @alexmex90, I double checked this with the latest snapshot build and it seems to work fine for my case, so it looks like my case is somewhat different from your case. Can you create a small sample project that reproduces the behavior? That would be awesome.
Not sure what happened, I was not able to replicate the issue.
I created two Spring Boot project, without anything, and other with Spring Web, none of which triggered the issue. I went to the project that triggered the issue initially and it didn't come up, so I guess everything's fine, if something new comes up, I will let you know.
Activity
martinlippert commentedon Apr 20, 2020
You are doing nothing wrong. The tooling tries to show live hover information for your app: https://github.com/spring-projects/sts4/wiki/Live-Application-Information
But for some reason the tooling fails to make a connection to that running process. Do you have actuators on the project? And how did you start the app?
In case you are not interested in the automatic enablement of this live hover mechanism, you can just ignore this message.
You could also disable the automatic tracking of processes via
Preferences -> Language Server -> Spring Language Server -> Spring Boot Language Server -> Spring Boot Javaand deselect theLive Information - Automatic Process Tracking. Even if you disabled the automatic tracking, you can display the live information manually, as described here: https://github.com/spring-projects/sts4/wiki/Live-Application-Information#managing-live-data-connections-new-in-441Hope this helps!
alexmex90 commentedon Apr 20, 2020
Hi Martin, thanks for your reply.
My application is a HelloWorld, I picked Spring Web MVC, thymeleaf, jpa and h2 database. As far as I can tell I don't have actuators, but I'm still a beginner, so that's why I asked if I was missing something.
This is literally all I have, and I'm starting the application by right clicking the project and selecting "run as... Spring Boot App" right after it starts it tries to connect to the process without success.
Good to know it is safe to ignore the error, I was confused by it, I previously used Eclipse 2019-12 with STS4 plugin and I don't remember seeing the error, so now that I moved to standalone STS4 I was confused if there was some setup I was missing.
martinlippert commentedon Apr 23, 2020
Yes, it is absolutely safe to ignore the error and we will probably change that message dialog in the future anyway to not annoy or confuse users too much.
As a quick check, can you add the spring-boot-actuators module to your project to see if you can get the live hovers to work for your project? Would be interesting. And if not, maybe attach your project somewhere for us as an example to took at and think about possible improvements for those settings?
alexmex90 commentedon Apr 24, 2020
Adding spring-boot-actuators stopped the message entirely and looks like it is working as it should.
Perhaps if there are no actuators in the project there should not be any attempt to connect to a process? To prevent having to display an error message when it should not be required? Although it looks useful, I may include in my future projects! :)
martinlippert commentedon Apr 24, 2020
Glad to hear that this works just fine when you have the actuators on the project, that is good news.
As mentioned above, you can disable the automatic process tracking in the preferences and instead manually enable this for a running spring boot application. That way you would avoid the error message for projects without actuators.
Librichard commentedon Apr 26, 2020
It is good if you mention the dependency block we need to add to the pom.xml
Thanks.
alexmex90 commentedon Apr 27, 2020
I added
to my pom.xml and that stopped the error message.
martinlippert commentedon Apr 27, 2020
Please keep in mind that you should only use the Spring Boot Actuators if you want to use this live information feature or other things the actuators are good for. Adding actuators to your project only and exclusively to get rid of this error message would be wrong. In that case, please note that you can disable the automatic process tracking in the preferences, which would avoid this error message as well - and still allow you to manually connect the live hover mechanism to the project.
alexmex90 commentedon May 1, 2020
I disabled the automatic process tracking since I'm just learning and have no real use for Actuator just yet, I think this should be disabled unless actuator is enabled in the project either by the spring boot project creation wizard or by manual insertion by the user.
martinlippert commentedon May 1, 2020
I agree, sounds like a very good point and idea how to improve this. Will take a look.
martinlippert commentedon May 4, 2020
I added a check to avoid this automatic process connection for projects that don't have the spring boot actuators on their classpath. Should make this a lot smoother and avoids the error message coming up for projects without actuators.
alexmex90 commentedon Sep 6, 2020
Hello, I am seeing the error message again. I have my STS4 installation updated up to the latest release
It is again, a Spring Boot project without actuators. Let me know if you need any feedback or any help with debugging.
martinlippert commentedon Sep 8, 2020
Hey @alexmex90, I double checked this with the latest snapshot build and it seems to work fine for my case, so it looks like my case is somewhat different from your case. Can you create a small sample project that reproduces the behavior? That would be awesome.
alexmex90 commentedon Sep 10, 2020
Not sure what happened, I was not able to replicate the issue.
I created two Spring Boot project, without anything, and other with Spring Web, none of which triggered the issue. I went to the project that triggered the issue initially and it didn't come up, so I guess everything's fine, if something new comes up, I will let you know.
Cheers!
martinlippert commentedon Sep 11, 2020
@alexmex90 Ok, sounds good to me. Thanks for double-checking.