Disposing of topic subscription throws OnErrorNotImplementedException
See original GitHub issueIf I have the app running and stop the WS server I handle the CLOSED lifecycle event and dispose of topic subscriptions - upon disposing the following error is fired:
08-24 19:17:32.301 11442-11495/co.oroson.android W/System.err: io.reactivex.exceptions.OnErrorNotImplementedException
08-24 19:17:32.301 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
08-24 19:17:32.301 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
08-24 19:17:32.301 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.subscribers.LambdaSubscriber.onError(LambdaSubscriber.java:76)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableCreate$BaseEmitter.error(FlowableCreate.java:288)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableCreate$BufferAsyncEmitter.drain(FlowableCreate.java:531)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableCreate$BufferAsyncEmitter.tryOnError(FlowableCreate.java:481)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableCreate$BaseEmitter.onError(FlowableCreate.java:270)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableCreate.subscribeActual(FlowableCreate.java:75)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.Flowable.subscribe(Flowable.java:12995)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.Flowable.subscribe(Flowable.java:12931)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.Flowable.subscribe(Flowable.java:12791)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at ua.naiksoftware.stomp.client.StompClient.lambda$topic$3(StompClient.java:191)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at ua.naiksoftware.stomp.client.StompClient$$Lambda$7.run(Unknown Source)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableDoOnLifecycle$SubscriptionLambdaSubscriber.cancel(FlowableDoOnLifecycle.java:112)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.subscriptions.SubscriptionHelper.cancel(SubscriptionHelper.java:189)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.cancel(FlowableSubscribeOn.java:141)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.operators.flowable.FlowableObserveOn$BaseObserveOnSubscriber.cancel(FlowableObserveOn.java:154)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.subscriptions.SubscriptionHelper.cancel(SubscriptionHelper.java:189)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.subscribers.LambdaSubscriber.cancel(LambdaSubscriber.java:116)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at io.reactivex.internal.subscribers.LambdaSubscriber.dispose(LambdaSubscriber.java:101)
08-24 19:17:32.302 11442-11495/co.oroson.android W/System.err: at co.oroson.android.utils.RxBusService.maybeDispose(RxBusService.java:56)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Crash OnErrorNotImplementedException · Issue #176 - GitHub
Here is my solution, hoping will do help to you. .subscribe(new Consumer<String>() { @Override public void accept(String s) throws Exception { } } ......
Read more >java - Problems with RXJava - Stack Overflow
When a an exception makes it to a subscribe call that does not have an onError handler, it will throw a OnErrorNotImplementedException, ...
Read more >Recycling and Trash | Public Works and Environmental Services
Fairfax County, Virginia - Recycling and environmentally-responsible trash disposal keeps Fairfax County clean, healthy, and sustainable.
Read more >Default Error Handling With RxJava | by Stephen Vinouze
OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Handling errors matter.
Read more >Paint - Household Hazardous Waste - Illinois.gov
Therefore, the Illinois EPA encourages people with unwanted latex paint to use other options. Disposal Alternatives. After your painting job is done you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Use this library its working fine, replace server url and port with your custom server url and your port. https://github.com/SayyedUmar/Stomp-Android-Client
Okay cool, good to know. Thanks 👍