powered by Jive Software

Creation failed - Missing acknowledge of room creation.:

hi members,

when i ran the program below i got the following error

Creation failed - Missing acknowledge of room creation.:

please reply soon.

import org.jivesoftware.smackx.*;

import org.jivesoftware.smackx.muc.*;

import org.jivesoftware.smack.*;

import java.util.*;

public class testresr{

public static void main(String args[])



XMPPConnection conn1 = new XMPPConnection(“tsscc-197”);


MultiUserChat muc = new MultiUserChat(conn1, “newroom@conference.tsscc-197”);

// Create the room


// Get the the room’'s configuration form

Form form = muc.getConfigurationForm();

// Create a new form to submit based on the original form

Form submitForm = form.createAnswerForm();

// Add default answers to the form to submit

for (Iterator fields = form.getFields(); fields.hasNext() {

FormField field = (FormField) fields.next();

if (!FormField.TYPE_HIDDEN.equals(field.getType()) && field.getVariable() != null) {

// Sets the default value as the answer




// Sets the new owner of the room

List owners = new ArrayList();


submitForm.setAnswer(“muc#roomconfig_roomowners”, owners);

// Send the completed form (with default values) to the server to configure the room



catch(Exception e)








Hey vimal,

As the exception says the problem is that the room vimal already exists. If your server is Jive Messenger you can check in the Admin Console the rooms that already exist in the server. Otherwise, you may try discovering the rooms from the client and confirm that the room already exists. You may use Exodus and press F11 to see the existing rooms.


– Gato