java.lang.IllegalStateException: cache is closed

GitHub | MariannaVR | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. java.lang.IllegalStateException

    cache is closed

    at okhttp3.internal.cache.DiskLruCache.checkNotClosed()
  2. okhttp3.internal.cache
    DiskLruCache.get
    1. okhttp3.internal.cache.DiskLruCache.checkNotClosed(DiskLruCache.java:646)
    2. okhttp3.internal.cache.DiskLruCache.get(DiskLruCache.java:433)
    2 frames
  3. okhttp3
    Cache$1.get
    1. okhttp3.Cache.get(Cache.java:194)
    2. okhttp3.Cache$1.get(Cache.java:144)
    2 frames
  4. okhttp3.internal.cache
    CacheInterceptor.intercept
    1. okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:70)
    1 frame
  5. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3. okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    5. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
    6. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    7. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    7 frames
  6. okhttp3.logging
    HttpLoggingInterceptor.intercept
    1. okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:212)
    1 frame
  7. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    4 frames
  8. okhttp3
    RealCall$AsyncCall.execute
    1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
    2. okhttp3.RealCall.access$100(RealCall.java:33)
    3. okhttp3.RealCall$AsyncCall.execute(RealCall.java:120)
    3 frames
  9. okhttp3.internal
    NamedRunnable.run
    1. okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
    1 frame
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames