ConcurrentModificationException in RxJavaPlugins.getPluginImplementationViaProperty
See original GitHub issueI am using RxJava 1.1.1 on Android and getting the following error:
Caused by java.util.ConcurrentModificationException
at java.util.Hashtable$HashIterator.nextEntry(Hashtable.java:727)
at java.util.Hashtable$EntryIterator.next(Hashtable.java:778)
at java.util.Hashtable$EntryIterator.next(Hashtable.java:776)
at rx.plugins.RxJavaPlugins.getPluginImplementationViaProperty(RxJavaPlugins.java:177)
at rx.plugins.RxJavaPlugins.getSchedulersHook(RxJavaPlugins.java:232)
at rx.schedulers.Schedulers.(Schedulers.java)
at rx.schedulers.Schedulers.(Schedulers.java)
My code is
unreadConversationsServer = unreadConversations;
final Scheduler.Worker worker = Schedulers.io().createWorker();
worker.schedule(() -> {
try {
computeUnreadUnSyncedConversationCount();
} catch (Exception e) {
Timber.e(e, "Error while computing Unread Unsynced Conversation Count");
}
worker.unsubscribe();
});
Full detail here: http://crashes.to/s/4ecb8083b7f
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to Avoid the Concurrent Modification Exception in Java
The ConcurrentModificationException in Java occurs when an object is attempted to be modified concurrently without permission.
Read more >ConcurrentModificationException (Java Platform SE 8 )
This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.
Read more >java.util.ConcurrentModificationException - DigitalOcean
ConcurrentModificationException is a very common exception when working with Java collection classes. Java Collection classes are fail-fast, ...
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
You seem to have something changing
System.getProperties()
concurrently with the initialization of the plugin.Closing via #3822