MultiUserChat room does not exist

Hi,

I am making an android XMPP client. I am using asmack 8-0.8.10. Right now i am have the openfire server running on local host. My problem is when i invite a spark client to join the MUC room, (invitation sent from android) and accept it. Spark says “The room you are trying to enter does not exist.”

Here is the code for the MUC function so far.

public void doStuff(){

Log.d(“XMPP”,“Discovering Groups joined”);

//Iterator joinedRooms = MultiUserChat.getJoinedRooms(connection, “majik@conference.localhost”);

//Log.d(“XMPP”,"Rooms: "+joinedRooms.hasNext());

//Iterator joinedRooms = MultiUserChat.getJoinedRooms(connection, connection.getHost());

MultiUserChat muc = new MultiUserChat(connection, “myroom@conference.localhost”);

try {

muc.create(“thing1”);

muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

muc.join(“thing1”);

//muc.getParticipants();

muc.invite(“test1@localhost”, “Join My Group”);

Log.d(“XMPP”,"People: "+ muc.getParticipants().toString());

muc.sendMessage(“This is a Test From Majik”);

} catch (XMPPException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

//boolean supports = MultiUserChat.isServiceEnabled(connection, connection.getUser());

//boolean supports = MultiUserChat.isServiceEnabled(connection, “majik@localhost/Spark 2.6.3”);

//Log.d(“XMPP”,"MultiUserChat is: "+ supports);

}

Thanks for any help.

1 Like