java.lang.NoClassDefFoundError: reactor/core/publisher/Sinks after upgrading to Spring Boot Admin 2.4.0 on Spring Boot 2.3.8.RELEASE
See original GitHub issueI have a project on Spring Boot 2.3.8.RELEASE that works ok with Spring Boot Admin 2.3.1.
When I upgrade Spring Boot Admin to version 2.4.0, I get this error:
2021-02-22 10:50:22.799 WARN [ main] o.s.w.c.s.GenericWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'endpointDetector' defined in com.bol.axexss.order.SpringBootAdminApplication: Unsatisfied dependency expressed through method 'endpointDetector' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'instanceRepository' defined in class path resource [de/codecentric/boot/admin/server/config/AdminServerAutoConfiguration.class]: Unsatisfied dependency expressed through method 'instanceRepository' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventStore' defined in class path resource [de/codecentric/boot/admin/server/config/AdminServerAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.codecentric.boot.admin.server.eventstore.InMemoryEventStore]: Factory method 'eventStore' threw exception; nested exception is java.lang.NoClassDefFoundError: reactor/core/publisher/Sinks
It seems the reason for this is that de.codecentric.boot.admin.server.eventstore.InstanceEventPublisher
imports reactor.core.publisher.Sinks
, but this class does not exist in the version 3.3.13.RELEASE of reactor-core
as used by Spring Boot 2.3.8.RELEASE. It seems reactor.core.publisher.Sinks
was introduced in reactor-core
3.4.0.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
please use spring boot 2.4.x for sba 2.4.x
@breun I just did the same thing… I just had to re-write an entire app from scratch using SpringBoot 2.5.4… Everything is working as expected now…
@erikpetzold I tried to match it but the UI had errors, I couldn’t get authentication to work on that version… I did spend a good couple of hours since I sent that message and I think I’m on 5hrs working on the latest version without any hiccups… Thank you for the suggestion…