stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

ConcurrentModificationException in RoboSpice v1.4.12. #355

Closed nugmanovagulnaz closed 10 years ago

nugmanovagulnaz commented 10 years ago

java.util.ConcurrentModificationException\n\tat java.util.HashMap$HashIterator.nextEntry(HashMap.java:792)\n\tat java.util.HashMap$KeyIterator.next(HashMap.java:819)\n\tat com.octo.android.robospice.request.notifier.DefaultRequestListenerNotifier$ResultRunnable.run(DefaultRequestListenerNotifier.java:168)\n\tat android.os.Handler.handleCallback(Handler.java:725)\n\tat android.os.Handler.dispatchMessage(Handler.java:92)\n\tat android.os.Looper.loop(Looper.java:153)\n\tat android.app.ActivityThread.main(ActivityThread.java:5299)\n\tat java.lang.reflect.Method.invokeNative(Native Method)\n\tat java.lang.reflect.Method.invoke(Method.java:511)\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\n\tat dalvik.system.NativeStart.main(Native Method)\n

Received from ACRA. Help us to fix it please.

MGaetan89 commented 10 years ago

I think it was fixed in #91

stephanenicolas commented 10 years ago

@nugmanovagulnaz , like @MGaetan89 said, the only possible possible issue in RS .1.4.13 is that you change the set of listeners attached to a request from inside a listener callback. Please read fully the long thread of #91. Or read the FAQ entry about the ConcurrentModificationException. This bug has been investigated in depth and chances are it's on your side.

Re-open if needed, though #91 would be a better place.