question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
joshistecommented, Feb 22, 2021

please use spring boot 2.4.x for sba 2.4.x

0reactions
marcellodesalescommented, Sep 19, 2021

@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…

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found