java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/fitness.essentials.fitnessessentials/databases/UserData.db

Stack Overflow | Kyle Osborne | 4 months ago
  1. 0

    Android Studio - attempt to re-open an already-closed object: SQLiteDatabase

    Stack Overflow | 4 months ago | Kyle Osborne
    java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/fitness.essentials.fitnessessentials/databases/UserData.db
  2. 0

    SQLiteDatabase android IllegalStateException

    Stack Overflow | 3 years ago | irbiloc
    java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/dev.xx.xx/databases/XX**
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Application crashes when creating tables in database with SQLiteOpenHelper

    Stack Overflow | 3 years ago | Matej Mohar
    java.lang.IllegalStateException: database /data/data/com.netichome.android/databases/netichome (conn# 0) already closed
  5. 0

    What is "SQLiteDatabase created and never closed" error?

    Stack Overflow | 5 years ago | shyam
    java.lang.IllegalStateException: /data/data/expenceanywhere.mobile/databases/data SQLiteDatabase created and never closed ERROR/Database(265): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1581) ERROR/Database(265): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638) ERROR/Database(265): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:659) ERROR/Database(265): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:652) ERROR/Database(265): at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:482)

  1. jk 15 times, last 7 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/fitness.essentials.fitnessessentials/databases/UserData.db

    at android.database.sqlite.SQLiteClosable.acquireReference()
  2. Android Platform
    SQLiteOpenHelper.getWritableDatabase
    1. android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55)
    2. android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:525)
    3. android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:262)
    4. android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
    4 frames
  3. fitness.essentials.fitnessessentials
    SetupScreen.onCreate
    1. fitness.essentials.fitnessessentials.Database.<init>(Database.java:26)
    2. fitness.essentials.fitnessessentials.SetupScreen.onCreate(SetupScreen.java:44)
    2 frames
  4. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:6876)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
    3 frames