java.lang.NoClassDefFoundError: org/reactivestreams/Publisher in suspending @EventListener
#33203
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
theme: kotlin
An issue related to Kotlin support
Uh oh!
There was an error while loading. Please reload this page.
Hey, I have a problem using my kotlin spring boot app.
When using mvc stack and defining a suspending EventListener method, my app just crashes with a class not found exception.
Caused by: java.lang.NoClassDefFoundError: org/reactivestreams/Publisher
.I created a reproducer:
event-listener-error.zip.
The problem exists within the file
org.springframework.core.CoroutinesUtils
. Wouldn't it make more sense in favor of using reactive types here to rely up on Future? Both reactive stack as well as kotlin have integrations with Javas Future class. It seems to me that this is the most interoperable.I can fix it by including project reactor as an explicit dependency, but I think this should rather be taken care of by the framework. As it's quite overkill to include project reactor into the mvc stack just for that, I would vouche for using Futures instead.
What are your thoughts?
The text was updated successfully, but these errors were encountered: