-
Notifications
You must be signed in to change notification settings - Fork 58
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
ConcurrentModificationException #53
Comments
Sorry to hear that you are running into issues. Can you confirm that you are on the latest version of the SDK (2.6.26)? The latest version contains bug fixes for multiple subscriptions - my inspection of the stacktrace is leading me to believe that you may be on an older rev of the SDK. Line 196 of the latest RealSubscriptionManager code is now Line 196 in 3b120e9
If you are on an older version, can you upgrade and let us know it goes. |
@cbommas Thanks for answer. The reason is that maven is not the lastest version. classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:2.6.+' apply plugin: 'com.amazonaws.appsync' When using gradle to import, code is not the lastest! |
@472574155 My build.gradle contains
and this pulls down the latest version when I do a gradle sync. |
@cbommas implementation 'com.amazonaws:aws-android-sdk-appsync:2.6.26' implementation 'com.amazonaws:aws-android-sdk-core:2.7.2' implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0' |
@cbommas
|
@472574155 Sorry about the confusion. I will get this released in the next few days and will post back on this thread once the release is completed. |
@472574155 |
@cbommas thanks. |
Describe the bug
When multiSubscription using, unexpectly exception happened.
To Reproduce
Steps to reproduce the behavior:
When net changed, easily happened
Expected behavior
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:851)
at java.util.HashMap$KeyIterator.next(HashMap.java:885)
at com.amazonaws.mobileconnectors.appsync.subscription.RealSubscriptionManager$1.onError(RealSubscriptionManager.java:196)
at com.amazonaws.mobileconnectors.appsync.subscription.mqtt.MqttSubscriptionClient$1.onFailure(MqttSubscriptionClient.java:85)
at org.eclipse.paho.android.service.MqttTokenAndroid.notifyFailure(MqttTokenAndroid.java:146)
at org.eclipse.paho.android.service.MqttAndroidClient.simpleAction(MqttAndroidClient.java:1501)
at org.eclipse.paho.android.service.MqttAndroidClient.connectAction(MqttAndroidClient.java:1439)
at org.eclipse.paho.android.service.MqttAndroidClient.onReceive(MqttAndroidClient.java:1368)
at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6242)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Environment(please complete the following information):
Device Information (please complete the following information):
The text was updated successfully, but these errors were encountered: