Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

NoSuchMethodError when running petstore example #61

Open
sjivan opened this issue Dec 13, 2019 · 2 comments
Open

NoSuchMethodError when running petstore example #61

sjivan opened this issue Dec 13, 2019 · 2 comments

Comments

@sjivan
Copy link

sjivan commented Dec 13, 2019

I was getting the exception below running the petstore example (./gradlew pets:run) without modifications.

I added implementation 'io.reactivex.rxjava2:rxjava:2.2.3’ to the pets module gradle.build based on the suggestion here [https://stackoverflow.com/questions/56244587/micronaut-ribbon-eureka-dependency-conflict] and it fixed the issue. Can you update the one in git with this modification so that the example works?

06:39:43.410 [nioEventLoopGroup-1-28] WARN i.n.u.c.AbstractEventExecutor - A task raised an exception. Task: io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker@27290eeb java.lang.NoSuchMethodError: io.reactivex.internal.subscriptions.SubscriptionHelper.isCancelled(Lorg/reactivestreams/Subscription;)Z at hu.akarnokd.rxjava.interop.FlowableV2ToObservableV1$SourceSubscriber.isUnsubscribed(FlowableV2ToObservableV1.java:72) at rx.internal.util.SubscriptionList.add(SubscriptionList.java:71) at rx.Subscriber.add(Subscriber.java:93) at hu.akarnokd.rxjava.interop.FlowableV2ToObservableV1.call(FlowableV2ToObservableV1.java:37) at hu.akarnokd.rxjava.interop.FlowableV2ToObservableV1.call(FlowableV2ToObservableV1.java:25) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) at rx.Observable.unsafeSubscribe(Observable.java:10327) at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ... at io.reactivex.Flowable.subscribe(Flowable.java:14752) at io.micronaut.reactive.rxjava2.RxInstrumentedFlowable.subscribeActual(RxInstrumentedFlowable.java:68) at io.reactivex.Flowable.subscribe(Flowable.java:14805) at io.reactivex.Flowable.subscribe(Flowable.java:14755) at io.micronaut.http.context.ServerRequestTracingPublisher.lambda$subscribe$0(ServerRequestTracingPublisher.java:52) at io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:52) at io.micronaut.http.context.ServerRequestTracingPublisher.subscribe(ServerRequestTracingPublisher.java:52) at io.reactivex.internal.operators.flowable.FlowableFromPublisher.subscribeActual(FlowableFromPublisher.java:29) at io.reactivex.Flowable.subscribe(Flowable.java:14805) at io.reactivex.Flowable.subscribe(Flowable.java:14752) at io.micronaut.reactive.rxjava2.RxInstrumentedFlowable.subscribeActual(RxInstrumentedFlowable.java:68) at io.reactivex.Flowable.subscribe(Flowable.java:14805) at io.reactivex.Flowable.subscribe(Flowable.java:14752) at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run(FlowableSubscribeOn.java:82) at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:288) at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:253) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748)

@graemerocher
Copy link
Contributor

Fancy sending a PR?

@sjivan
Copy link
Author

sjivan commented Dec 13, 2019

Will do

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants