vendredi 19 juin 2015

Android Application Crash with Log as while Fetching Data From Database as Follows:

06-19 10:57:47.372: E/SQLiteLog(22679): (28) file renamed while open: /mnt/sdcard/MeetAtAirport App/meetatairport.db 06-19 10:57:47.382: E/SQLiteLog(22679): (1032) statement aborts at 2: [DELETE FROM android_metadata] 06-19 10:57:47.395: E/SQLiteDatabase(22679): Failed to open database '/mnt/sdcard/MeetAtAirport App/meetatairport.db'. 06-19 10:57:47.395: E/SQLiteDatabase(22679): android.database.sqlite.SQLiteException: Failed to change locale for db '/mnt/sdcard/MeetAtAirport App/meetatairport.db' to 'en_US'. 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:395) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:1176) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:273) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at com.meetairport.util.DatabaseHelper.updateData(DatabaseHelper.java:258) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at com.example.meetatairport.StartPrivateChatActivity$11.run(StartPrivateChatActivity.java:2042) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.Activity.runOnUiThread(Activity.java:5247) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at com.example.meetatairport.StartPrivateChatActivity.setListData(StartPrivateChatActivity.java:2034) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at com.example.meetatairport.StartPrivateChatActivity.onCreate(StartPrivateChatActivity.java:272) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.Activity.performCreate(Activity.java:5933) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.ActivityThread.access$900(ActivityThread.java:147) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.os.Handler.dispatchMessage(Handler.java:102) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.os.Looper.loop(Looper.java:135) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.app.ActivityThread.main(ActivityThread.java:5254) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at java.lang.reflect.Method.invoke(Native Method) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at java.lang.reflect.Method.invoke(Method.java:372) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693) 06-19 10:57:47.395: E/SQLiteDatabase(22679): Caused by: android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:557) 06-19 10:57:47.395: E/SQLiteDatabase(22679): at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:384) 06-19 10:57:47.395: E/SQLiteDatabase(22679): ... 30 more 06-19 10:57:47.406: D/AndroidRuntime(22679): Shutting down VM 06-19 10:57:47.407: E/AndroidRuntime(22679): FATAL EXCEPTION: main 06-19 10:57:47.407: E/AndroidRuntime(22679): Process: com.example.meetatairport, PID: 22679 06-19 10:57:47.407: E/AndroidRuntime(22679): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.meetatairport/com.example.meetatairport.StartPrivateChatActivity}: android.database.sqlite.SQLiteException: Failed to change locale for db '/mnt/sdcard/MeetAtAirport App/meetatairport.db' to 'en_US'. 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ActivityThread.access$900(ActivityThread.java:147) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.os.Handler.dispatchMessage(Handler.java:102) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.os.Looper.loop(Looper.java:135) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ActivityThread.main(ActivityThread.java:5254) 06-19 10:57:47.407: E/AndroidRuntime(22679): at java.lang.reflect.Method.invoke(Native Method) 06-19 10:57:47.407: E/AndroidRuntime(22679): at java.lang.reflect.Method.invoke(Method.java:372) 06-19 10:57:47.407: E/AndroidRuntime(22679): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898) 06-19 10:57:47.407: E/AndroidRuntime(22679): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693) 06-19 10:57:47.407: E/AndroidRuntime(22679): Caused by: android.database.sqlite.SQLiteException: Failed to change locale for db '/mnt/sdcard/MeetAtAirport App/meetatairport.db' to 'en_US'. 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:395) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:1176) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:273) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163) 06-19 10:57:47.407: E/AndroidRuntime(22679): at com.meetairport.util.DatabaseHelper.updateData(DatabaseHelper.java:258) 06-19 10:57:47.407: E/AndroidRuntime(22679): at com.example.meetatairport.StartPrivateChatActivity$11.run(StartPrivateChatActivity.java:2042) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.Activity.runOnUiThread(Activity.java:5247) 06-19 10:57:47.407: E/AndroidRuntime(22679): at com.example.meetatairport.StartPrivateChatActivity.setListData(StartPrivateChatActivity.java:2034) 06-19 10:57:47.407: E/AndroidRuntime(22679): at com.example.meetatairport.StartPrivateChatActivity.onCreate(StartPrivateChatActivity.java:272) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.Activity.performCreate(Activity.java:5933) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282) 06-19 10:57:47.407: E/AndroidRuntime(22679): ... 10 more 06-19 10:57:47.407: E/AndroidRuntime(22679): Caused by: android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:557) 06-19 10:57:47.407: E/AndroidRuntime(22679): at android.database.sqlite.SQLiteConnection.setLocaleFromConfiguration(SQLiteConnection.java:384) 06-19 10:57:47.407: E/AndroidRuntime(22679): ... 30 more

Aucun commentaire:

Enregistrer un commentaire