Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. SQLiteDatabase.rawQuery() has thrown an IllegalStateException
    Android
    11
    15
    1
  2. Database connection is already closed
    Android
    82
    80
    2

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/de.danoeh.antennapod/databases/Antennapod.db
    at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55)
    at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1450)
    at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1393)
    at de.danoeh.antennapod.core.storage.PodDBAdapter.getFeedItemCursor(PodDBAdapter.java:1392)
7 frames hidden

Solution

poroszd2 months ago

You must open the database before you try to read or write again.

External results for this pattern (10)

  1. grzesiek2010via GitHub3 days ago
    attempt to re-open an already-closed object: SQLiteQuery: SELECT canEditWhenComplete, deletedDate, status, jrVersion, jrFormId, instanceFilePath, date, submissionUri, displayName, _id, displaySubtext FROM instances WHERE (status =? ) ORDER BY displayName COLLATE NOCASE ASC, status DESC
    Show stack trace
  2. ITanChvia GitHub6 days ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/a2dp.Vol/databases/btdevices.db
    Show stack trace
  3. ChauNTMvia GitHub4 weeks ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/com.misfit.portfolio.debug/databases/589bdfade4b0ba522c4bb4dd_fitness.db 08-24 12:24:31.469 13457-13457/com.misfit.portfolio.debug D/App-SplashScreenActivity: needToUpdateBLEWhenUpgradeLegacy - isNeedToUpdateBLE=false
    Show stack trace
  4. mtrakalvia GitHub4 weeks ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/data/myapp/databases/androidx.work.workdb
    Show stack trace
  5. shibafu528via GitHub1 month ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/shibafu.yukari.alpha/databases/yukari.db
    Show stack trace
  6. lucasvanhalstvia GitHub2 months ago
    attempt to re-open an already-closed object: SQLiteQuery: SELECT f.rowid as _id, f.email, f.name, f.share_location, f .shares_location, f.avatar, f.existence, f.type, f.description, f.description_branding, f.poke_description, f.qualified_identifier, f.organization_typ e, f.callbacks, f.flags, f.profile_data, f.content_branding_hash, f.actions, IFNULL(c.id, f.email) AS cat_id, ifnull(c.name, f.name) AS cat_name, c.av atar, count(f.email) FROM friend f LEFT OUTER JOIN friend_category c ON c.id = f.category_id WHERE (f.existence = 0 OR f.existence = 4) AND f.type = 2 GROUP BY cat_id ORDER BY cat_name COLLATE NOCASE
    Show stack trace
  7. UweTrottmannvia GitHub2 months ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.battlelancer.seriesguide/databases/seriesdatabase
    Show stack trace
  8. bhsatvia GitHub2 months ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/com.yahoo.mobile.client.android.mail/databases/androidx.work.workdb
    Show stack trace
  9. ytakahashi1981via GitHub2 months ago
    attempt to re-open an already-closed object: SQLiteDatabase: [database file path]
    Show stack trace
  10. bhsatvia GitHub3 months ago
    attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/com.yahoo.mobile.client.android.mail/databases/androidx.work.workdb
    Show stack trace