I am a newbie of Smack, I wrote the following code:
MUCUser user = (MUCUser) presence.getExtension(“x”,“http://jabber.org/protocol/muc#user”);
But I got the error: java.lang.ClassCastException
I guest, when I use (MUCUser) to set presence.getExtension() to MUCUser object, the error would be catched.
I use Smack 1.5.0, jdk1.4.0 with JBuilderX
Please help me! Thanks in advance!