-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle (test): reactive streams messaging dependency conflicts #9754
Labels
kind/question
Further information is requested
Comments
Meemaw
changed the title
Gradle (test): reactive streams dependency conflicts
Gradle (test): reactive streams messaging dependency conflicts
Jun 4, 2020
I believe there is a clash between Result of
|
@cescoffier any idea how to address this? |
You need to remove one of the implementation. |
If anyone encounters same issues, I've solved it with the following configuration: configurations {
all*.exclude group: 'io.smallrye.reactive', module: 'smallrye-reactive-streams-operators'
} |
gsmet
added
kind/question
Further information is requested
and removed
kind/bug
Something isn't working
labels
Jun 10, 2020
Sgitario
added a commit
to Sgitario/quarkus-startstop
that referenced
this issue
Apr 23, 2021
- Due to quarkusio/quarkus#7990 - Rename undertow-websockets to websockets - - The "smallrye-reactive-streams-operators" is not compatible with other reactive implementations: quarkusio/quarkus#9754
Sgitario
added a commit
to Sgitario/quarkus-startstop
that referenced
this issue
Apr 23, 2021
- Due to quarkusio/quarkus#7990 - Rename undertow-websockets to websockets - - The "smallrye-reactive-streams-operators" is not compatible with other reactive implementations: quarkusio/quarkus#9754
Sgitario
added a commit
to Sgitario/quarkus-startstop
that referenced
this issue
Apr 27, 2021
- Due to quarkusio/quarkus#7990 - Rename undertow-websockets to websockets - - The "smallrye-reactive-streams-operators" is not compatible with other reactive implementations: quarkusio/quarkus#9754
rsvoboda
pushed a commit
to quarkus-qe/quarkus-startstop
that referenced
this issue
Apr 28, 2021
- Due to quarkusio/quarkus#7990 - Rename undertow-websockets to websockets - - The "smallrye-reactive-streams-operators" is not compatible with other reactive implementations: quarkusio/quarkus#9754
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After upgrading to
1.5.0Final
, there seems to be some conflicts with reactive streams dependencies in Gradletest
task which prevents quarkus test application startup. It happens in modules usingkafka
extensions. InterestinglyquarkusDev
andquarkusBuild
tasks both work as expected.Exception message:
2020-06-04 06:54:40,533 INFO [org.apa.kaf.com.uti.AppInfoParser] (Test worker) Kafka version: 2.5.0 2020-06-04 06:54:40,533 INFO [org.apa.kaf.com.uti.AppInfoParser] (Test worker) Kafka commitId: 66563e712b0b9f84 2020-06-04 06:54:40,534 INFO [org.apa.kaf.com.uti.AppInfoParser] (Test worker) Kafka startTimeMs: 1591246480531 2020-06-04 06:54:40,554 INFO [io.sma.rea.mes.ext.MediatorManager] (Test worker) Initializing mediators 2020-06-04 06:54:40,563 INFO [io.sma.rea.mes.ext.MediatorManager] (Test worker) Connecting mediators 2020-06-04 06:54:40,563 INFO [io.sma.rea.mes.ext.MediatorManager] (Test worker) Attempt to resolve com.meemaw.session.service.SessionSocketService#process 2020-06-04 06:54:40,564 INFO [io.sma.rea.mes.ext.MediatorManager] (Test worker) Connecting com.meemaw.session.service.SessionSocketService#process to
[events-unload](org.eclipse.microprofile.reactive.streams.operators.core.PublisherBuilderImpl@65e9ff14) 2020-06-04 06:54:40,573 ERROR [io.qua.application] (Test worker) Failed to start application: javax.enterprise.inject.spi.DeploymentException: java.lang.IllegalStateException: Multiple ReactiveStreamsEngine implementations found: io.smallrye.reactive.streams.Engine and io.smallrye.mutiny.streams.Engine at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle.onApplicationStart(SmallRyeReactiveMessagingLifecycle.java:22) at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle_Observer_onApplicationStart_4e8937813d9e8faff65c3c07f88fa96615b70e70.notify(SmallRyeReactiveMessagingLifecycle_Observer_onApplicationStart_4e8937813d9e8faff65c3c07f88fa96615b70e70.zig:111) at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:282) at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:267) at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:69) at io.quarkus.arc.runtime.LifecycleEventRunner.fireStartupEvent(LifecycleEventRunner.java:23) at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:113) at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent-858218658.deploy_0(LifecycleEventsBuildStep$startupEvent-858218658.zig:77) at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent-858218658.deploy(LifecycleEventsBuildStep$startupEvent-858218658.zig:36) at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:498) at io.quarkus.runtime.Application.start(Application.java:90) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at io.quarkus.runner.bootstrap.StartupActionImpl.run(StartupActionImpl.java:222) at io.quarkus.test.junit.QuarkusTestExtension.doJavaStart(QuarkusTestExtension.java:156) at io.quarkus.test.junit.QuarkusTestExtension.ensureStarted(QuarkusTestExtension.java:302) at io.quarkus.test.junit.QuarkusTestExtension.beforeAll(QuarkusTestExtension.java:325) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$7(ClassBasedTestDescriptor.java:359) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:359) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:189) at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:78) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:132) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.base/java.util.ArrayList.forEach(ArrayList.java:1510) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94) at com.sun.proxy.$Proxy5.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:132) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:413) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: java.lang.IllegalStateException: Multiple ReactiveStreamsEngine implementations found: io.smallrye.reactive.streams.Engine and io.smallrye.mutiny.streams.Engine at org.eclipse.microprofile.reactive.streams.operators.core.ReactiveStreamsEngineResolver.loadFromSpi(ReactiveStreamsEngineResolver.java:92) at org.eclipse.microprofile.reactive.streams.operators.core.ReactiveStreamsEngineResolver.instance(ReactiveStreamsEngineResolver.java:61) at org.eclipse.microprofile.reactive.streams.operators.core.SubscriberBuilderImpl.build(SubscriberBuilderImpl.java:38) at io.smallrye.reactive.messaging.SubscriberMediator.run(SubscriberMediator.java:95) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1624) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) at io.smallrye.reactive.messaging.extension.MediatorManager.weaving(MediatorManager.java:303) at io.smallrye.reactive.messaging.extension.MediatorManager.initializeAndRun(MediatorManager.java:217) at io.smallrye.reactive.messaging.extension.MediatorManager_ClientProxy.initializeAndRun(MediatorManager_ClientProxy.zig:260) at io.quarkus.smallrye.reactivemessaging.runtime.SmallRyeReactiveMessagingLifecycle.onApplicationStart(SmallRyeReactiveMessagingLifecycle.java:20)
Expected behavior
No dependency conflicts.
Actual behavior
Failed to start application in Gradle test mode.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
uname -a
orver
: Darwin MacBook-Pro-7.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jan 23 06:52:12 PST 2020; root:xnu-4903.278.25~1/RELEASE_X86_64 x86_64java -version
: openjdk version "14" 2020-03-17mvnw --version
orgradlew --version
): Gradle 6.4.1The text was updated successfully, but these errors were encountered: