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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by MikeT
, 10 months ago
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
via GitHub by Alfishan
, 10 months ago
Unable to resume activity {com.xeme.motolift_messenger/com.xeme.motolift_messenger.ui.activity.MainActivity}: java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0
via GitHub by jaydeetay
, 1 year ago
Unable to resume activity {com.google.android.stardroid/com.google.android.stardroid.activities.SplashScreenActivity}: java.lang.IllegalStateException: Fragment already added: EulaDialogFragment{3a6b5321 #0 Eula Dialog}
via xamarin.com by Unknown author, 2 years ago
Unable to resume activity {adnt.easydeal/md56d2061e530d4ae630a81127536162064.MainActivity}: java.lang.IllegalStateException: No activity
via xamarin.com by Unknown author, 2 years ago
Unable to resume activity {adnt.easydeal/md56d2061e530d4ae630a81127536162064.MainActivity}: java.lang.IllegalStateException: No activity
via GitHub by Alexendoo
, 1 year ago
Unable to resume activity {me.ccrama.redditslide.debug/me.ccrama.redditslide.Activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.TabLayout.setSelectedTabIndicatorColor(int)' on a null object reference
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 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)
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)

Users with the same issue

13 times, 9 months ago
37 times, 10 months ago
4 times, 1 year ago
2 times, 1 year ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.