kader990 / android-rcs-ims-stack

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

java.lang.NullPointerException at com.orangelabs.rcs.provider.eab.ContactsManager.getRcsContacts #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1- build the core stack as library project in eclipse.
2- build the rcs api jar like via the script.
3- build RI app by using the rcs api jar file as an input

What is the expected output? What do you see instead?
clicking on one to one chat window to launch.
got the NULL pointer exception as like below
####
01-26 23:13:39.160: E/AndroidRuntime(9291): FATAL EXCEPTION: main
01-26 23:13:39.160: E/AndroidRuntime(9291): java.lang.RuntimeException: Unable 
to start activity 
ComponentInfo{com.orangelabs.rcs.ri/com.orangelabs.rcs.ri.messaging.InitiateChat
}: java.lang.NullPointerException
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.ActivityThread.access$1500(ActivityThread.java:121)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.os.Looper.loop(Looper.java:130)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.ActivityThread.main(ActivityThread.java:3770)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
java.lang.reflect.Method.invokeNative(Native Method)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
java.lang.reflect.Method.invoke(Method.java:507)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
dalvik.system.NativeStart.main(Native Method)
01-26 23:13:39.160: E/AndroidRuntime(9291): Caused by: 
java.lang.NullPointerException
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
com.orangelabs.rcs.provider.eab.ContactsManager.getRcsContacts(ContactsManager.j
ava:1315)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
com.orangelabs.rcs.service.api.client.contacts.ContactsApi.getRcsContacts(Contac
tsApi.java:85)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
com.orangelabs.rcs.ri.utils.Utils.BuildRcsContactsList(Utils.java:432)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
com.orangelabs.rcs.ri.messaging.InitiateChat.onCreate(InitiateChat.java:79)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)
01-26 23:13:39.160: E/AndroidRuntime(9291):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
01-26 23:13:39.160: E/AndroidRuntime(9291):     ... 11 more
01-26 23:13:39.170: E/(1732): Dumpstate > /data/log/dumpstate_app_error
01-26 23:13:39.170: D/ActivityManager(1732): ccr - SHOW_ERROR_MSG
01-26 23:13:39.190: I/dumpstate(9310): begin
01-26 23:13:39.390: I/WindowOrientationListener(1732): orientation = 0 Tilt = 
89 -- 0 ,  0 ,  9
01-26 23:13:39.400: E/AlarmManagerService(1732): 
android_server_AlarmManagerService_set to type=1, 1359222240.000000000
01-26 23:13:39.400: V/AlarmManager(1732): <-- waitForAlarm(mDescriptor); result 
= 2
01-26 23:13:39.410: V/AlarmManager(1732): --> waitForAlarm(mDescriptor);
01-26 23:13:40.210: W/WifiStateTracker(1732): ------ msg.what =8
01-26 23:13:40.390: I/WindowOrientationListener(1732): orientation = 0 Tilt = 
89 -- 0 ,  0 ,  9
01-26 23:13:40.600: D/(1732):  set_light_touchkey is called!!!
01-26 23:13:40.600: D/(1732):  light_touchkey on/off = 0
01-26 23:13:40.600: W/PowerManagerService(1732): Timer 0x7->0x3|0x0
01-26 23:13:40.600: I/PowerManagerService(1732): Ulight 7->3|0
01-26 23:13:40.600: D/PowerManagerService(1732): setLightBrightness : 
mButtonLight : 0
01-26 23:13:41.160: I/Process(1732): Sending signal. PID: 9291 SIG: 3
01-26 23:13:41.160: I/dalvikvm(9291): threadid=4: reacting to signal 3
01-26 23:13:41.160: I/dalvikvm(9291): Wrote stack traces to 
'/data/anr/traces.txt'
####

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

Please provide any additional information below.
Attached the log cat logs.

Any inputs please??

Original issue reported on code.google.com by appapur...@gmail.com on 26 Jan 2013 at 6:00

Attachments:

GoogleCodeExporter commented 9 years ago
There is an error saying that the contact database is not instanciated. You 
should install the RCS core before to use the RI app.

Original comment by jmauffret@gmail.com on 11 Feb 2013 at 2:59