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 web1138

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 github
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

Solution icon of github
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}

Solution icon of web
Unable to resume activity {adnt.easydeal/md56d2061e530d4ae630a81127536162064.MainActivity}: java.lang.IllegalStateException: No activity

Solution icon of web
Unable to resume activity {adnt.easydeal/md56d2061e530d4ae630a81127536162064.MainActivity}: java.lang.IllegalStateException: No activity

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

Solution icon of github
Unable to resume activity {nl.hnogames.domoticz.premium/nl.hnogames.domoticz.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Wiillyx3
, 1 year ago
Unable to resume activity {com.mts.campr/com.mts.campr.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.maps.GoogleMap com.google.android.gms.maps.SupportMapFragment.getMap()' on a null object reference

Solution icon of web
Unable to resume activity: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Boolean kik.a(java.lang.String, java.lang.Boolean)' on a null object reference

Solution icon of github
Unable to resume activity {org.cowboycoders.cyclismo/org.cowboycoders.cyclismo.TrackDetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

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, 7 months ago
37 times, 8 months ago
4 times, 10 months ago
14 more bugmates