> class reactor.core.publisher.MonoOnErrorResum...
# spring
j
class reactor.core.publisher.MonoOnErrorResume cannot be cast to class org.springframework.web.servlet.function.ServerResponse (reactor.core.publisher.MonoOnErrorResume and org.springframework.web.servlet.function.ServerResponse are in unnamed module of loader ‘app’)
Anyone else got this during unit tests when using runBlocking after updating to Spring Boot 2.4.0? I’m currently investigating why all tests fail once runBlocking is used.
d
sounds like a version conflict
j
Actually no - after too many hours I found the culprit: Using @Transactional annotation in combination with the new support for suspending function in Spring MVC In my case the class that contained the suspending function had @Transactional on the class level - calling it (e.g. within runBlocking) caused the error @sdeleuze I’ll try to create a minimal reproducible project tomorrow
👍 1