powered by Jive Software

Forbidden -auth while creating a room

I am using smack version : 4.2.4.
While creating a room i get the following warning:
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from myroom@conference.localhost : XMPPError: forbidden - auth

My code:
`
mucJid = JidCreate.entityBareFrom(“myroom@localhost”);

    Resourcepart nickname = Resourcepart.from("somebot");

 
    MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(mConnection);
    MultiUserChat muc = manager.getMultiUserChat(mucJid);
   
    Set<Jid> owners = JidUtil.jidSetFrom(new String[] { "person1@localhost" , "person2@localhost"});

  muc.create(nickname)
             .getConfigFormManager() 
         .setRoomOwners(owners)
          .submitConfigurationForm();

//    if (!muc.isJoined())
  //      muc.join(nickname);

    RoomInfo info = manager.getRoomInfo(mucJid);`