Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat 1-1 - Text messages received but not displayed in UI #262

Open
GoogleCodeExporter opened this issue Jun 30, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Store messages on an IM AS for a user
2. User registers with a recent device (GS3/GS5)
3. MSRP Session establishs, all stored CPIM are sent through MSRP SEND packets 
in a row (without pause between MSRP SEND)
4. Some messages are not displayed in UI
5. An Exception is shown in ddms log

What is the expected output? What do you see instead?
200-OK on MSRP SEND are sent on messages so they should be displayed in UI

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

Please provide any additional information below.

exception when message 'off2' is received:

08-22 12:08:07.790: I/[RCS][ImSession](9232): Session started
08-22 12:08:07.795: V/[RCS][ChunkReceiver](9232): Read a new chunk
08-22 12:08:07.800: V/[RCS][ChunkReceiver](9232): Transaction-ID: 
orrZKh9+a5ZuGEaTv     <=message "off2"
08-22 12:08:07.800: V/[RCS][ChunkReceiver](9232): Method: SEND
08-22 12:08:07.800: V/[RCS][ChunkReceiver](9232): Header: To-Path - Value: 
msrp://10.67.111.186:20000/1408702082348;tcp
08-22 12:08:07.805: V/[RCS][ReceiveChat](11100): handleSessionStarted
08-22 12:08:07.805: V/[RCS][ChunkReceiver](9232): Header: From-Path - Value: 
msrp://10.26.9.23:52556/dup0dnea;tcp
08-22 12:08:07.805: V/[RCS][ChunkReceiver](9232): Header: Failure-Report - 
Value: yes
08-22 12:08:07.805: V/[RCS][ChunkReceiver](9232): Header: Byte-Range - Value: 
1-233/233
08-22 12:08:07.805: V/[RCS][ChunkReceiver](9232): Header: Success-Report - 
Value: no
08-22 12:08:07.805: V/[RCS][ChunkReceiver](9232): Header: Message-ID - Value: 
a87duTUn
08-22 12:08:07.810: V/[RCS][ChunkReceiver](9232): Header: Content-Type - Value: 
message/cpim; charset=UTF-8
08-22 12:08:07.810: V/[RCS][ChunkReceiver](9232): Read data (233)
08-22 12:08:07.810: V/[RCS][ChunkReceiver](9232): Data: 233
08-22 12:08:07.810: V/[RCS][ChunkReceiver](9232): Continuous flag: $
08-22 12:08:07.810: V/[RCS][MsrpSession](9232): SEND request received (flag=36, 
transaction=orrZKh9+a5ZuGEaTv, totalSize=233) <= message "off2"
08-22 12:08:07.810: I/[RCS][MsrpSession](9232): Transfer terminated
08-22 12:08:07.810: I/[RCS][TerminatingOne2OneChatSession](9232): Data received 
(type message/cpim; charset=UTF-8)
08-22 12:08:07.820: V/[RCS][ImSession](9232): Set message delivery status 
displayed for TQqL9fUFBA            <= C'est "offline1"
08-22 12:08:07.820: V/[RCS][TerminatingOne2OneChatSession](9232): Send delivery 
status displayed for message TQqL9fUFBA
08-22 12:08:07.820: I/[RCS][MsrpSession](9232): Send content (message/cpim - 
MSRP chunk type: MessageDisplayedReport)
08-22 12:08:07.825: I/[RCS][TerminatingOne2OneChatSession](9232): Data 
transfered
08-22 12:08:07.900: I/[RCS][OneToOneChatView](11100): startOneToOneChatView 
(contact=+33) (history=false)
08-22 12:08:07.910: E/Parcel(2375): Class not found when unmarshalling: 
com.orangelabs.rcs.service.api.client.messaging.InstantMessage    <= "off2" 
lost ?
08-22 12:08:07.910: E/Parcel(2375): java.lang.ClassNotFoundException: 
com.orangelabs.rcs.service.api.client.messaging.InstantMessage
08-22 12:08:07.910: E/Parcel(2375):     at java.lang.Class.classForName(Native 
Method)
08-22 12:08:07.910: E/Parcel(2375):     at 
java.lang.Class.forName(Class.java:204)
08-22 12:08:07.910: E/Parcel(2375):     at 
java.lang.Class.forName(Class.java:169)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Parcel.readParcelableCreator(Parcel.java:2091)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Parcel.readParcelable(Parcel.java:2055)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Parcel.readValue(Parcel.java:1971)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Parcel.readMapInternal(Parcel.java:2255)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Bundle.unparcel(Bundle.java:223)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Bundle.getString(Bundle.java:1082)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.content.Intent.getStringExtra(Intent.java:4961)
08-22 12:08:07.910: E/Parcel(2375):     at 
com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java:3761)
08-22 12:08:07.910: E/Parcel(2375):     at 
com.android.server.am.ActivityStack.startActivityMayWait(ActivityStack.java:4977
)
08-22 12:08:07.910: E/Parcel(2375):     at 
com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManager
Service.java:3173)
08-22 12:08:07.910: E/Parcel(2375):     at 
com.android.server.am.ActivityManagerService.startActivity(ActivityManagerServic
e.java:3129)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:157)
08-22 12:08:07.910: E/Parcel(2375):     at 
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.j
ava:2125)
08-22 12:08:07.910: E/Parcel(2375):     at 
android.os.Binder.execTransact(Binder.java:388)
08-22 12:08:07.910: E/Parcel(2375):     at dalvik.system.NativeStart.run(Native 
Method)
08-22 12:08:07.910: E/Parcel(2375): Caused by: java.lang.NoClassDefFoundError: 
com/orangelabs/rcs/service/api/client/messaging/InstantMessage
08-22 12:08:07.910: E/Parcel(2375):     ... 18 more
08-22 12:08:07.910: E/Parcel(2375): Caused by: 
java.lang.ClassNotFoundException: Didn't find class 
"com.orangelabs.rcs.service.api.client.messaging.InstantMessage" on path: .
08-22 12:08:07.910: E/Parcel(2375):     at 
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:64)
08-22 12:08:07.910: E/Parcel(2375):     at 
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
08-22 12:08:07.910: E/Parcel(2375):     at 
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
08-22 12:08:07.910: E/Parcel(2375):     ... 18 more

Original issue reported on code.google.com by rcs.capg...@gmail.com on 22 Aug 2014 at 12:32

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

As requested, you will find attached the sip.txt log file generated by the 
phone when messages are not displayed.

Note that if we add a pause between the session connection, and the messages 
injection, then all message are properly displayed (at least 300ms)
So it seems the stack or the application is not ready to receive messages when 
MSRP session connects.

Original comment by rcs.capg...@gmail.com on 22 Aug 2014 at 3:07

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant