kader990 / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
0 stars 0 forks source link

Problems in EventLogProvider and EventLog classes #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I can't see the option of EventLog in Android 4 version. 

What is the expected output? What do you see instead?

07-03 16:19:27.042: E/DatabaseUtils(528): Writing exception to parcel
07-03 16:19:27.042: E/DatabaseUtils(528): java.lang.IllegalArgumentException: 
Invalid column _id AS _id
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
android.database.sqlite.SQLiteQueryBuilder.computeProjection(SQLiteQueryBuilder.
java:628)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
android.database.sqlite.SQLiteQueryBuilder.buildQuery(SQLiteQueryBuilder.java:42
4)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:363)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
com.android.providers.contacts.CallLogProvider.query(CallLogProvider.java:927)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
android.content.ContentProvider$Transport.query(ContentProvider.java:189)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:141)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
android.os.Binder.execTransact(Binder.java:338)
07-03 16:19:27.042: E/DatabaseUtils(528):   at 
dalvik.system.NativeStart.run(Native Method)
07-03 16:19:27.052: E/DatabaseUtils(11936): Writing exception to parcel
07-03 16:19:27.052: E/DatabaseUtils(11936): java.lang.IllegalArgumentException: 
Invalid column _id AS _id
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.content.ContentProviderProxy.query(ContentProviderNative.java:406)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.content.ContentResolver.query(ContentResolver.java:315)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
com.orangelabs.rcs.provider.eventlogs.EventLogProvider.queryCallTable(EventLogPr
ovider.java:623)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
com.orangelabs.rcs.provider.eventlogs.EventLogProvider.query(EventLogProvider.ja
va:199)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.content.ContentProvider$Transport.query(ContentProvider.java:189)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:141)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
android.os.Binder.execTransact(Binder.java:338)
07-03 16:19:27.052: E/DatabaseUtils(11936):     at 
dalvik.system.NativeStart.run(Native Method)
07-03 16:19:27.052: D/AndroidRuntime(13343): Shutting down VM
07-03 16:19:27.052: W/dalvikvm(13343): threadid=1: thread exiting with uncaught 
exception (group=0x40aa8228)
07-03 16:19:27.062: E/AndroidRuntime(13343): FATAL EXCEPTION: main
07-03 16:19:27.062: E/AndroidRuntime(13343): 
java.lang.IllegalArgumentException: Invalid column _id AS _id
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.content.ContentProviderProxy.query(ContentProviderNative.java:406)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.content.ContentResolver.query(ContentResolver.java:315)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
ri.eventlog.EventLog.startQuery(EventLog.java:215)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
ri.eventlog.EventLog.access$2(EventLog.java:214)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
ri.eventlog.EventLog$1.onItemSelected(EventLog.java:157)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.widget.AdapterView.fireOnSelected(AdapterView.java:882)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.widget.AdapterView.access$200(AdapterView.java:48)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:848)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.os.Handler.handleCallback(Handler.java:605)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.os.Handler.dispatchMessage(Handler.java:92)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.os.Looper.loop(Looper.java:154)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
android.app.ActivityThread.main(ActivityThread.java:4894)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
java.lang.reflect.Method.invokeNative(Native Method)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
java.lang.reflect.Method.invoke(Method.java:511)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-03 16:19:27.062: E/AndroidRuntime(13343):    at 
dalvik.system.NativeStart.main(Native Method)

What version of the product are you using? On what operating system?

I'm using release 2.4.5.

Please provide any additional information below.

The option of EventLog in android 2.2.1. is OK.

Thanks.

Original issue reported on code.google.com by natalia....@gmail.com on 3 Jul 2012 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by benoit.j...@gmail.com on 10 Aug 2012 at 10:05

GoogleCodeExporter commented 9 years ago
I found the error with the Calllog.calls. The projection of the query with some 
"as" (to make the union and sorting between calls/sms/chat/etc.) fails.

We don't have solution for the moment, any idea would be welcome...
Then, we will remove the calls in the unified logs for the moment.

Original comment by benoit.j...@gmail.com on 13 Aug 2012 at 7:58

GoogleCodeExporter commented 9 years ago
We have removed "calls" from the event log

Original comment by jmauffret@gmail.com on 4 Sep 2012 at 9:54