-
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
An internal error occurred during: "Send Classpath Notifications". org/eclipse/lsp4e/LanguageServers #1177
Comments
Can you please share more information? Which version of the Spring Tools do you use? For VSCode? The Eclipse-based distribution? Where does the error show up? Is there a stack trace showing up somewhere (in case of Eclipse in the Error Log View, for example)? Do you have steps how to reproduce this error? Or a sample project? |
while updating the project and while adding any dependency this error is coming |
Okay, so this is the Eclipse-based tooling. Do you use the Spring Tools for Eclipse distribution or did you install the Spring Tools as an additional plugin to your existing Eclipse installation? It seems to me like something went wrong during the install process, maybe some parts of a specific component did not get installed correctly. Please also take a look at the Error Log view to se if there is some related item showing up with more information. |
please find additional logs below : 21:19:32.896 [main] INFO o.s.i.v.b.a.BootLanguageServerBootApp - Starting BootLanguageServerBootApp using Java 17.0.2 with PID 9524 (C:\Users\Admin.p2\pool\plugins\org.springframework.tooling.boot.ls_1.51.0.202312011752\servers\spring-boot-language-server\BOOT-INF\classes started by Admin in C:\Users\Admin\Desktop) |
That looks reasonably okay. What about the Error Log View entries? |
eclipse version is 2022-12 |
I sort of doubt that "send classpath notification" in the IDE has anything to do with the app failing to start... The classpath data is not sent from Eclipse to Boot language server. Don't think that app launching in Eclipse has anything to do with the Boot LS... Can you run |
It looks to me more as you don't have DB url specified... What's the value of |
Agree, we have two different things here. One is the application not starting up, which is probably a question you should ask on StackOverflow. It doesn't seem to be related to the IDE. You can verify this my running the app from the command line (as Alex mentioned above). The second piece is the error message about the "send classpath notification", which is clearly an IDE issue. From your screenshot, it looks like you have plenty of additional third-party plugins installed, which makes it a bit hard to debug this issue. Did you open the I would also recommend to download a ready-to-use distribution of the Spring Tools 4 for Eclipse from https://spring.io/tools, start such a vanilla installation with an empty workspace, and create a simple Spring project via the wizard to |
I'm having the same problem, but is it resolved? I'm using 2022-12 Eclipse, and I changed the JDK version to 11. The error occurs every time I do the maven update project. I checked the error log and it is as follows.
Springboot project execution works successfully, and I'm concerned that error keeps occurring. I am using the version of sts as below. |
My DB problem solved after adding driver url, which actually not required in hibernate now, but for mentioned DB error that is the resolution. For "class path notification" error there is no resolution till now. Everytime I update the maven project I get same error. |
@shubhamkundal are you getting exception similar to the one above. What is your JVM used to launch Boot langiage server?
|
@shubhamkundal @khsrla9806 You both mentioned that you are using Eclipse 2022-12, which is a version that Spring Tools 4.21.1 doesn't support anymore. The latest version of Spring Tools supports the latest Eclipse release (2023-12) as well as the previous release (2023-09) - in case of Spring Tools 4.21.0 and 4.21.1, so there is probably a compatibility issue going on under the hood here. The I am not sure how you ended up in this situation, but we should definitely looking into ways to prevent these possibly incompatible install situations from happening. I will open a separate GitHub issue for that. The last version that supported Eclipse 2022-12 was the Spring Tools 4.19.0 release. You can find the p2 repository here, if you want to install that version instead of the latest release: https://cdn.spring.io/spring-tools/release/TOOLS/sts4/update/4.19.0.RELEASE/e4.26/ But I would recommend to update your environment to the latest underlying Eclipse release instead and then use the latest Spring Tools release together with that. Or -to make things easier - download the Spring Tools 4.21.1 distribution build for Eclipse from https://spring.io/tools |
Another side note: The IDE itself requires a JDK 17 to run and you should not try to change that. But this is completely independent of the JDKs that you configure inside of the IDE to be used for your projects. There you can use whichever JDK works for the project. But keep in mind that Spring Framework 6 and Spring Boot 3 have a JDK 17 as a baseline, so running those apps with a JDK 11 doesn't work. |
@martinlippert |
As described in #1177 (comment), the latest version of the Spring Tools always supports the latest Eclipse release and the one prior to that. For the Spring Tools If you are using an older Eclipse version, you should stick to the corresponding Spring Tools version that is compatible with that Eclipse version: https://github.com/spring-projects/sts4/wiki/Previous-Versions |
whenever creating or updating meven(SpringBoot) project getting error as "An internal error occurred during: "Send Classpath Notifications".org/eclipse/lsp4e/LanguageServers". Due to this not able to connect datasource also. Please help.
The text was updated successfully, but these errors were encountered: