Below is the stack trace from Locale when this problem reproduces.
The JavaDocs suggest that file permissions or a full disk might be the
cause.  I've confirmed that disk space isn't the problem.



02-21 00:21:47.652: ERROR/AndroidRuntime(349):
java.lang.RuntimeException: Unable to get provider
edu.mit.locale.providers.LocaleProvider:
android.database.sqlite.SQLiteException: unable to open database file
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread.installProvider(ActivityThread.java:3648)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread.installContentProviders(ActivityThread.java:
3450)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
3409)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread.access$2500(ActivityThread.java:112)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1617)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.os.Handler.dispatchMessage(Handler.java:88)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.os.Looper.loop(Looper.java:123)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread.main(ActivityThread.java:3739)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
java.lang.reflect.Method.invoke(Method.java:515)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
dalvik.system.NativeStart.main(Native Method)
02-21 00:21:47.652: ERROR/AndroidRuntime(349): Caused by:
android.database.sqlite.SQLiteException: unable to open database file
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:
1421)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.database.sqlite.SQLiteDatabase.openDatabase
(SQLiteDatabase.java:537)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:558)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:551)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ApplicationContext.openOrCreateDatabase
(ApplicationContext.java:427)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.content.ContextWrapper.openOrCreateDatabase
(ContextWrapper.java:181)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase
(SQLiteOpenHelper.java:98)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
edu.mit.locale.providers.LocaleProvider.onCreate(LocaleProvider.java:
264)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.content.ContentProvider.attachInfo(ContentProvider.java:559)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     at
android.app.ActivityThread.installProvider(ActivityThread.java:3645)
02-21 00:21:47.652: ERROR/AndroidRuntime(349):     ... 12 more


On Feb 22, 1:56 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> focuser wrote:
> > 02-22 10:43:59.242: ERROR/Database(27448): sqlite3_open_v2("/data/data/
> > crashtest.test/databases/webview.db", &handle, 6, NULL) failed
>
> Crap. I was hoping it would log the return code from that function call.
>
> 6 is SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, which is pretty much as
> one might expect. The NULL fourth parameter just means we're using the
> stock SQLite vfs.
>
> Have you tried opening one of those databases using sqlite3 (either
> on-device or on your dev machine after pulling it off) to see if it
> gives you any additional clues as to what is considered wrong with it?
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android Training in Sweden --http://www.sotrium.com/training.php
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to