Skip to content
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 @ ApolloCacheInterceptor #357

Open
juandiana opened this issue Jul 8, 2021 · 0 comments
Open

ConcurrentModificationException @ ApolloCacheInterceptor #357

juandiana opened this issue Jul 8, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@juandiana
Copy link

juandiana commented Jul 8, 2021

AppSync SDK Version: 3.1.4 (latest as of Jul 7)

It's pretty straightforward. This should be all you need to fix but please let me know if you need anything.

Stacktrace

Fatal Exception: java.util.ConcurrentModificationException
       at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:757)
       at java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:785)
       at com.apollographql.apollo.internal.interceptor.ApolloCacheInterceptor$2.apply(ApolloCacheInterceptor.java:137)
       at com.apollographql.apollo.internal.interceptor.ApolloCacheInterceptor$2.apply(ApolloCacheInterceptor.java:134)
       at com.apollographql.apollo.api.internal.Present.map(Present.java:70)
       at com.apollographql.apollo.internal.interceptor.ApolloCacheInterceptor.cacheResponse(ApolloCacheInterceptor.java:133)
       at com.apollographql.apollo.internal.interceptor.ApolloCacheInterceptor.access$200(ApolloCacheInterceptor.java:43)
       at com.apollographql.apollo.internal.interceptor.ApolloCacheInterceptor$1$1.onResponse(ApolloCacheInterceptor.java:81)
       at com.apollographql.apollo.internal.interceptor.ApolloParseInterceptor$1.onResponse(ApolloParseInterceptor.java:71)
       at com.apollographql.apollo.internal.interceptor.ApolloServerInterceptor$1$1.onResponse(ApolloServerInterceptor.java:100)
       at okhttp3.RealCall$AsyncCall.run(RealCall.kt:140)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:923)
@div5yesh div5yesh added the bug Something isn't working label Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants