actually it’s alredy using `spring-xyz-5.2.0.M2` s...
# spring
r
actually it’s alredy using
spring-xyz-5.2.0.M2
so I guess I have to stick with the 1.2.x version of the
org.jetbrains.kotlinx
libs
for reference
Copy code
Caused by: java.lang.NoClassDefFoundError: kotlinx/coroutines/reactive/flow/PublisherAsFlowKt
	at org.springframework.core.ReactiveAdapterRegistry$CoroutinesFlowRegistrar.registerAdapters(ReactiveAdapterRegistry.java:356) ~[spring-core-5.2.0.M2.jar:5.2.0.M2]
	at org.springframework.core.ReactiveAdapterRegistry.<init>(ReactiveAdapterRegistry.java:104) ~[spring-core-5.2.0.M2.jar:5.2.0.M2]
	at org.springframework.web.reactive.config.WebFluxConfigurationSupport.webFluxAdapterRegistry(WebFluxConfigurationSupport.java:363) ~[spring-webflux-5.1.9.RELEASE.jar:5.1.9.RELEASE]
	at org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration$EnableWebFluxConfiguration$$EnhancerBySpringCGLIB$$6473ae60.CGLIB$webFluxAdapterRegistry$28(<generated>) ~[spring-boot-autoconfigure-2.1.8.RELEASE.jar:2.1.8.RELEASE]
	at org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration$EnableWebFluxConfiguration$$EnhancerBySpringCGLIB$$6473ae60$$FastClassBySpringCGLIB$$ee7f0daa.invoke(<generated>) ~[spring-boot-autoconfigure-2.1.8.RELEASE.jar:2.1.8.RELEASE]
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.0.M2.jar:5.2.0.M2]
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.2.0.M2.jar:5.2.0.M2]
	at org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration$EnableWebFluxConfiguration$$EnhancerBySpringCGLIB$$6473ae60.webFluxAdapterRegistry(<generated>) ~[spring-boot-autoconfigure-2.1.8.RELEASE.jar:2.1.8.RELEASE]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.0.M2.jar:5.2.0.M2]
	... 59 common frames omitted
Caused by: java.lang.ClassNotFoundException: kotlinx.coroutines.reactive.flow.PublisherAsFlowKt
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) ~[na:na]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) ~[na:na]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ~[na:na]
	... 72 common frames omitted
man it’s actually mixing
5.2.0.M2
and
5.1.9.RELEASE
in the stacktrace. trying to iron that out first
@sdeleuze do you know anything about this? looks like the
org.jetbrains.kotlinx
libraries for coroutines 1.3+ are not compatible with spring anymore because jetbrains has changed packages
s
If you use Coroutines, please just use Boot 2.2 latest milestone with default version of Framework and Coroutines. We do dependency management to avoid this kind if issue.
Spring Boot 2.1 is not designed to work with Framework 5.2
Spring Boot 2.2 and Framework 5.2 are designed to work with Coroutines 1.3.0+.
As specified in the refdoc.
r
did you see the stacktrace above
let me try 2.2 milestone
alright that worked fine, thanks