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


Solutions on the web45399

Solution icon of stackoverflow
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

Solution icon of stackoverflow
Unable to start activity ComponentInfo{hr.punctum.LociranjePonudaProizvoda/hr.punctum.LociranjePonudaProizvoda.ListaProizvoda}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/hr.punctum.LociranjePonudaProizvoda/databases/proizvodidb

Solution icon of stackoverflow
Unable to start activity ComponentInfo{de.vertretungsplan2/de.vertretungsplan2.Main}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/de.vertretungsplan2/databases/settings

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.rohan.todo/com.rohan.todo.ViewTask}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.rohan.todo/databases/taskerManager

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.shitapps.howtolosedignity/com.shitapps.howtolosedignity.ActivityQuiz}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.shitapps.howtolosedignity/databases/masterblaster

Solution icon of web
via qnundrum.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{hr.punctum.LociranjePonudaProizvoda/hr.punctum.LociranjePonudaProizvoda.ListaProizvoda}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/hr.punctum.LociranjePonudaProizvoda/databases/proizvodidb

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.cms.attendance/com.cms.attendance.fingerprintreader.newui.DashboardActivity}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.cms.attendance/databases/AttendanceManagement

Solution icon of stackoverflow
via Stack Overflow by H P
, 1 year ago
Unable to start activity ComponentInfo{com.songs/com.songs.MainActivity2}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.songs/databases/songS

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.roadtripplanner/com.example.roadtripplanner.StartPageActivity}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.example.roadtripplanner/databases/rtpDatabase

Solution icon of web
via dreamincode.net by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.example.gradetracker.app/com.example.gradetracker.app.MainActivity}: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.example.gradetracker.app/databases/MyGrades

Stack trace

  • 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

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
13 times, 5 months ago
37 times, 6 months ago
4 times, 8 months ago
14 more bugmates