AnsweredAssumed Answered

hello, my question: RoomInfo info = MultiUserChat.getRoomInfo(xmppConnection, entry.getJid()); then cast this exception!

Question asked by david.pan on Aug 24, 2014
Latest reply on Aug 25, 2014 by david.pan

code:

RoomInfo info = MultiUserChat.getRoomInfo(xmppConnection, entry.getJid());

 

then cast exception!

 

detail exception:

java.lang.RuntimeException: java.lang.ClassCastException: org.jivesoftware.smack.packet.DefaultPacketExtension

....

E/AndroidRuntime( 1847): Caused by: java.lang.ClassCastException: org.jivesoftware.smack.packet.DefaultPacketExtension

E/AndroidRuntime( 1847):           at org.jivesoftware.smackx.Form.getFormFrom(Form.java:69)

E/AndroidRuntime( 1847):           at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:90)

E/AndroidRuntime( 1847):           at org.jivesoftware.smackx.muc.MultiUserChat.getRoomInfo(MultiUserChat.java:238)

Outcomes