Skip navigation
7920 Views 3 Replies Latest reply: Oct 25, 2007 2:37 AM by costantino RSS
Bronze 9 posts since
Jun 17, 2007
Currently Being Moderated

Aug 16, 2007 2:36 AM

Locked room??? Help me

 

Hi I created a MUC by below code:

 

 

public boolean createNewRoom(String roomname) {

        boolean status = false;

        MultiUserChat muc = null;

        if (getConn().isConnected()) {

            User user = Static.getInstance().getUser();

            try {

                String roomservice = roomname + Config.getConferenceServPrefix();

                muc = new MultiUserChat(getConn(), roomservice);

                muc.create(roomname);

                muc.addMessageListener(this);

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

                groupSessions.put(roomname, muc);

                status = true;

            } catch (XMPPException e) {

                System.out.println(e.getLocalizedMessage());

                Static.getInstance().getNotificationPanel().showError("Cannot create a room");

            }

            if (status) {

                try {                   

                    muc.join(user.getUsername() + Config.getDomainPrefix(), user.getPassword());

                } catch (XMPPException e) {

                    System.out.println(e.getLocalizedMessage());

                }

            }

        } else {

            logout();

            Static.getInstance().getNotificationPanel().showError("You are not connected");

            Static.getInstance().getMainPanel().setState(MainPanel.INIT);

            Static.getInstance().getMainPanel().resetOnlinePanel();

        }

        return status;

    }

 

 

Why I always got message:

 

 

This room is locked from entry until configuration is confirmed.

This room is now unlocked.

This room is locked from entry until configuration is confirmed.

 

 

Can anybody show me some enlightment?????

 

 

Thankyou in advance

 

 

Bromo

 

 

More Like This

  • Retrieving data ...

Bookmarked By (0)