java.lang.IllegalStateException: /data/data/com.fitzsoftware.grocessaryList/databases/example.db SQLiteDatabase created and never closed

Stack Overflow | Pinki | 6 years 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.
  1. 0

    Database error in Android

    Stack Overflow | 6 years ago | Pinki
    java.lang.IllegalStateException: /data/data/com.fitzsoftware.grocessaryList/databases/example.db SQLiteDatabase created and never closed
  2. 0

    SQLiteDatabase android IllegalStateException

    Stack Overflow | 4 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 10 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

    /data/data/com.fitzsoftware.grocessaryList/databases/example.db SQLiteDatabase created and never closed

    at android.database.sqlite.SQLiteDatabase.<init>()
  2. Android Platform
    SQLiteOpenHelper.getWritableDatabase
    1. android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1581)
    2. android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
    3. android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:659)
    4. android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:652)
    5. android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:482)
    6. android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
    7. android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
    7 frames
  3. com.fitzsoftware.grocessaryList
    MyShoppingList.onCreate
    1. com.fitzsoftware.grocessaryList.DataHelper.<init>(DataHelper.java:46)
    2. com.fitzsoftware.grocessaryList.MyShoppingList.onCreate(MyShoppingList.java:63)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
    4. android.app.ActivityThread.access$2100(ActivityThread.java:116)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:123)
    8. android.app.ActivityThread.main(ActivityThread.java:4203)
    8 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:521)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame