MultiUserChat set options hangs

I’m having a problem while adding settings to the answerForm.

Some settings are working fine, but when I set **“muc#roomconfig_whois”, “anyone” the application hangs. **I also tried moderators but that isn’t working either. What is the problemen?

public MUCConnection createConferenceRoom(String roomname, String requester) {
MUCConnection muc = new MUCConnection(this.xmppConnection, roomname);
try {
muc.create(roomname);
Form form = muc.getConfigurationForm();
Form answerForm = form.createAnswerForm();

// Visiters have no voice right

** // This one is working fine**
answerForm.setAnswer(“muc#roomconfig_moderatedroom”, true);

// Here’s the problem

** answerForm.setAnswer(“muc#roomconfig_whois”, “anyone”);**

List list = new ArrayList(3);

list.add(“visitor”);
list.add(“moderator”);
list.add(“participant”);

answerForm.setAnswer(“muc#roomconfig_presencebroadcast”, list);

        muc.sendConfigurationForm(answerForm);

Here’s the fix:

Don’t use the String “anyone” but Arrays.asList.

answerForm.setAnswer(“muc#roomconfig_whois”, Arrays.asList(“anyone”));

or use:

Arrays.asList("moderators"));