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 Siva
, 2 years ago
database is locked (code 5): , while compiling: PRAGMA journal_mode
via GitHub by thierrybx
, 2 years ago
database is locked (code 5): , while compiling: PRAGMA journal_mode
via codes51.com by Unknown author, 1 year ago
database is locked (code 5): , while compiling: PRAGMA journal_mode
via GitHub by TasneemBohra
, 5 months ago
database is locked (code 5): , while compiling: PRAGMA journal_mode
via GitHub by kerbooo
, 1 year ago
database is locked (code 5): , while compiling: PRAGMA journal_mode
android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode	at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)	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:1319)	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 org.fruct.oss.getssupplement.Database.GetsDbHelper.addCategory(GetsDbHelper.java:107)	at org.fruct.oss.getssupplement.Database.GetsDbHelper.addCategories(GetsDbHelper.java:120)	at org.fruct.oss.getssupplement.MapActivity$8.onPostExecute(MapActivity.java:457)	at org.fruct.oss.getssupplement.MapActivity$8.onPostExecute(MapActivity.java:450)	at android.os.AsyncTask.finish(AsyncTask.java:632)	at android.os.AsyncTask.access$600(AsyncTask.java:177)	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:146)	at android.app.ActivityThread.main(ActivityThread.java:5593)	at java.lang.reflect.Method.invokeNative(Native Method)	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(Native Method)