powered by Jive Software


I’m trying to do a MultiUserChat with Google Talk, so the problem is when i received the call for invitationReceived from InvitationListener, i create a MultiUserChat object, but i can’t get the list of occupants of the chat calling the getOccupants() method. When i call this method a exception is throwed.

Anyone can help me to solve this problem? My code is bellow.

MultiUserChat muc = new MultiUserChat(xmpp, room);
try {
muc.join(email, password);

Iterator it = muc.getOccupants();
} catch (XMPPException e) {