AnsweredAssumed Answered

Android: Getting 'IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: path/securidDB'

Question asked by Amith Ramachandran on Nov 29, 2018
Latest reply on Nov 30, 2018 by Amith Ramachandran

Hi,

 

We have integrated the RSA sdk into our mobile app for our Android users. Recently I started to see the issue mentioned title. It looks like something come from the RSA sdk and not sure how to handle it (other than catching the exception). Please find the stack trace below. 

 

Fatal Exception: java.lang.RuntimeException: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/my.package.name/databases/securidDB
at my.package.name.f.h(ab.java:75)
at my.package.name.f.e(ab.java:91)
at my.package.name.run(bc.java:487)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

 

Any advice on how to fix or handle this issue is highly appreciated. 

Outcomes