07-31 11:41:56.333: E/DatabaseUtils(21572): Writing exception to parcel 07-31 11:41:56.333: E/DatabaseUtils(21572): java.lang.IllegalArgumentException: the bind value at index 2 is null 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:164) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteProgram.bindAllArgsAsStrings(SQLiteProgram.java:200) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:47) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:400) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:294) 07-31 11:41:56.333: E/DatabaseUtils(21572): at com.piqsho.p.d.h.CP.query(CP.java:542) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.content.ContentProvider.query(ContentProvider.java:652) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.content.ContentProvider$Transport.query(ContentProvider.java:189) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:113) 07-31 11:41:56.333: E/DatabaseUtils(21572): at android.os.Binder.execTransact(Binder.java:351) 07-31 11:41:56.333: E/DatabaseUtils(21572): at dalvik.system.NativeStart.run(Native Method) 07-31 11:41:56.417: E/AndroidRuntime(21586): FATAL EXCEPTION: ServiceStartArguments 07-31 11:41:56.417: E/AndroidRuntime(21586): java.lang.IllegalArgumentException: the bind value at index 2 is null 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:167) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.content.ContentProviderProxy.query(ContentProviderNative.java:366) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.content.ContentResolver.query(ContentResolver.java:373) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.content.ContentResolver.query(ContentResolver.java:316) 07-31 11:41:56.417: E/AndroidRuntime(21586): at com.piqsho.p.s.SIMS.getNewChatMessages(SIMS.java:186) 07-31 11:41:56.417: E/AndroidRuntime(21586): at com.piqsho.p.s.SIMS$ServiceHandler$1.run(SIMS.java:81) 07-31 11:41:56.417: E/AndroidRuntime(21586): at com.piqsho.p.s.SIMS$ServiceHandler.handleMessage(SIMS.java:73) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.os.Handler.dispatchMessage(Handler.java:107) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.os.Looper.loop(Looper.java:194) 07-31 11:41:56.417: E/AndroidRuntime(21586): at android.os.HandlerThread.run(HandlerThread.java:60) 07-31 11:41:57.428: E/DatabaseUtils(21572): Writing exception to parcel 07-31 11:41:57.428: E/DatabaseUtils(21572): java.lang.IllegalArgumentException: the bind value at index 1 is null 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:164) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteProgram.bindAllArgsAsStrings(SQLiteProgram.java:200) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:47) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:400) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:294) 07-31 11:41:57.428: E/DatabaseUtils(21572): at com.piqsho.p.d.h.CP.query(CP.java:542) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.content.ContentProvider.query(ContentProvider.java:652) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.content.ContentProvider$Transport.query(ContentProvider.java:189) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:113) 07-31 11:41:57.428: E/DatabaseUtils(21572): at android.os.Binder.execTransact(Binder.java:351) 07-31 11:41:57.428: E/DatabaseUtils(21572): at dalvik.system.NativeStart.run(Native Method)
Cursor c = finalQb.query(db, projection, selection, selectionArgs, null, null, sortOrder);
/**
* register to watch a content URI for changes
*/
try {
if(c != null && c.getCount() > 0){
c.setNotificationUri(getContext().getContentResolver(), uri);
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
if(c != null){
c.close();
}
}
Aucun commentaire:
Enregistrer un commentaire