3 Replies Latest reply on Oct 25, 2007 2:37 AM by costantino

    Locked room??? Help me

    Bronze

       

      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