android.database.sqlite.SQLiteDatabaseLockedException

database is locked (code 5): , while compiling: PRAGMA journal_mode

Solutions on the web144

  • via GitHub by JakeWharton
    , 9 months ago
    database is locked (code 5): , while compiling: PRAGMA journal_mode
  • database is locked (code 5): , while compiling: PRAGMA journal_mode
  • via Stack Overflow by user3409970
    , 1 year ago
    database is locked (code 5): , while compiling: PRAGMA journal_mode
  • Stack trace

    • android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode at android.database.sqlite.SQLiteConnection.nativePrepareStatement(SQLiteConnection.java) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1113) at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:824) at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:510) at android.database.sqlite.SQLiteConnection.setWalModeFromConfiguration(SQLiteConnection.java:484) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:383) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:232) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:512) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:178) at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:902) at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:872) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:709) at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:1317) at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:268) at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:268) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:224) at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164) at com.onesignal.NotificationOpenedProcessor.processIntent(NotificationOpenedProcessor.java:67) at com.onesignal.NotificationOpenedProcessor.processFromActivity(NotificationOpenedProcessor.java:55) at com.onesignal.NotificationOpenedReceiver.onReceive(NotificationOpenedReceiver.java:11) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2647) at android.app.ActivityThread.access$1800(ActivityThread.java:172) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5598) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) at dalvik.system.NativeStart.main(NativeStart.java)

    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

    6 times, 2 weeks ago
    52 times, 1 month ago
    Once, 1 year ago
    2 times, 1 year ago
    Once, 1 year ago
    15 more bugmates