java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.app/files/user.cblite2/db.sqlite3

GitHub | trramsiq | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    attempt to re-open an already-closed object (1.3.1)

    GitHub | 5 months ago | trramsiq
    java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.app/files/user.cblite2/db.sqlite3

    Root Cause Analysis

    1. java.lang.IllegalStateException

      attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.app/files/user.cblite2/db.sqlite3

      at com.couchbase.lite.internal.database.sqlite.SQLiteClosable.acquireReference()
    2. com.couchbase.lite
      Document.putProperties
      1. com.couchbase.lite.internal.database.sqlite.SQLiteClosable.acquireReference(SourceFile:60)
      2. com.couchbase.lite.internal.database.sqlite.SQLiteDatabase.beginTransaction(SourceFile:497)
      3. com.couchbase.lite.internal.database.sqlite.SQLiteDatabase.beginTransaction(SourceFile:410)
      4. com.couchbase.lite.storage.SQLiteStorageEngineBase.beginTransaction(SourceFile:150)
      5. com.couchbase.lite.store.SQLiteStore.beginTransaction(SourceFile:2309)
      6. com.couchbase.lite.store.SQLiteStore.add(SourceFile:1412)
      7. com.couchbase.lite.Database.put(SourceFile:1844)
      8. com.couchbase.lite.Database.putRevision(SourceFile:1794)
      9. com.couchbase.lite.Database.putRevision(SourceFile:1785)
      10. com.couchbase.lite.Document.putProperties(SourceFile:523)
      11. com.couchbase.lite.Document.putProperties(SourceFile:350)
      11 frames
    3. com.app.DevUtilities
      CacheObject.apply
      1. com.app.DevUtilities.Cache.Cache.store(SourceFile:76)
      2. com.app.DevUtilities.Cache.CacheObject.apply(SourceFile:46)
      2 frames
    4. com.app.Models
      Account.loadApiAccountIntoDb
      1. com.app.Models.Account.Account.save(SourceFile:155)
      2. com.app.Models.Account.Account.setOrUpdateAccount(SourceFile:191)
      3. com.app.Models.Account.Account.loadApiAccountIntoDb(SourceFile:301)
      3 frames
    5. com.app.Fragments
      ActivityStreamController$ActivityTask.doInBackground
      1. com.app.Fragments.ActivityStream.Controller.ActivityStreamController$ActivityTask.doInBackground(SourceFile:244)
      2. com.app.Fragments.ActivityStream.Controller.ActivityStreamController$ActivityTask.doInBackground(SourceFile:215)
      2 frames
    6. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:288)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      4. java.lang.Thread.run(Thread.java:841)
      4 frames