java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Android SQLite same cursor for multiple tables:
    via Stack Overflow by H P
    ,
  • Caused by IllegalStateException
    via Stack Overflow by Rahul Pareek
    ,
    • java.lang.RuntimeException: Unable to resume activity {mjt.shopwise/mjt.shopwise.MainActivity}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/mjt.shopwise/databases/ShopWise at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/mjt.shopwise/databases/ShopWise at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1312) at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255) at mjt.shopwise.DBCommonMethods.getTableRows(DBCommonMethods.java:106) at mjt.shopwise.DBCommonMethods.getTableRows(DBCommonMethods.java:59) at mjt.shopwise.DBCommonMethods.getTableRowCount(DBCommonMethods.java:29) at mjt.shopwise.DBCommonMethods.getTableRowCount(DBCommonMethods.java:43) at mjt.shopwise.DBShopMethods.getShopCount(DBShopMethods.java:44) at mjt.shopwise.MainActivity.getDBCounts(MainActivity.java:207) at mjt.shopwise.MainActivity.onResume(MainActivity.java:163) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257) at android.app.Activity.performResume(Activity.java:6076) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975) ... 9 more

    Users with the same issue

    Unknown visitor1 times, last one,
    bayukresno
    3 times, last one,
    justCodeit
    13 times, last one,
    filpgame
    37 times, last one,
    danleyb2Interintel
    4 times, last one,
    14 more bugmates