j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 366 forks source link

Fatal Exception: android.database.sqlite.SQLiteException: Failed to change locale for db to 'en_GB' #108

Closed ravilukka closed 2 years ago

j256 commented 5 years ago

No other information? No stack trace? Little help?

ravilukka commented 5 years ago

Fatal Exception: android.database.sqlite.SQLiteException: Failed to change locale for db '/data/user/0/com.elitemobile.elitebdmpro/databases/EliteBDM.db' to 'en_GB'. at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:409) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:223) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:198) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177) at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:838) at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:823) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:716) at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:664) at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:289) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223) at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)

j256 commented 2 years ago

Sorry but I had and have no additional information for you. I don't think that ORMLite is doing any locale specific calls. Not sure what's going on. This SO answer may be of help: https://stackoverflow.com/a/19491862/179850 Feel free to reopen if you think that ORMLite is doing something wrong.