-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
java.lang.NoClassDefFoundError: org/LatencyUtils/IntervalEstimator in Springboot 2.3.0 #21538
Comments
Could you provide a sample application reproducing this problem? Thanks! |
@yuanpli |
Oops, @spring-buildmaster handled my comment as the expected feedback. |
@bclozel Hello, org.latencyutils.LatencyUtils is a runtime dependency at micrometer-core. This scope indicates that the dependency is not required for compilation, but is for execution. So it has to be included in spring at least. |
Hi, it doesn't work. :( |
@yuanpli Thanks for the feedback. If that's not the case, I'm not sure how it could happen. As @bclozel asked you before, a sample project seems to be necessary to know what happens there. For your information, this is what I used to check this issue before: https://github.com/izeye/sample-micrometer-spring-boot |
At this point we’ll need a sample project that reproduces the problem if we want to make progress. Can you provide that @yuanpli ? |
Hi all, Sorry, this is not an issue. We just only copy Br, |
I think this should be re-opened. I didn't understand what yanpli's resolution was. I encountered this issue upgrading an existing project to 2.3.0 and was only able to resolve it by reverting to 2.2.6. Including the missing dependency did not resolve the issue. |
|
Hi, the same issue occured for me as well but couldnt find any solutions... I'm also very new to spring and still in learning phase... Any help is appriciated... Replication code base can be found at: After I added dependency of actuator, the following error occured...
Other Infos: @spring-issuemaster |
Ignoring that weird |
Have you added the actuator dependency? In my case after adding the dependency it threw above mentioned runtime error. |
Yes. Please run the project from the command line ( |
that worked for me |
Oh god! I found it really hard to understand this solution of @yuanpli about I think this solution need to be describe as : To change the maven or gradle script like this below:
to
|
Deleting the build folder did not work in my case, I was able to fix this issue by updating IntelliJ to the latest version. |
Springboot 2.3.0 application start failed when enabling actuator by add dependency of spring-boot-starter-actuator.
The text was updated successfully, but these errors were encountered: