Search code examples
xmppsmackmultiuserchat

Error creating room using Smack: "Feature not implemented"


I'm following the documentation and trying to create a room:

  //Create a MultiUserChat using a Connection for a room
  MultiUserChat muc = new MultiUserChat(conn1, "[email protected]");

  // Create the room
  muc.create("testroom");

  // Send an empty room configuration form which indicates that we want
  // an instant room
  muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

When I go into PSI, click service discovery, click multiuserchat, right click browse, click myroom. It pops an error message, that says "There was an error getting agents for [email protected], Reason: Feature not implemented. The feature requested is not implemented by the recipient server and cannot be processed".

Any suggestions, anyone?

Now I can create a new room using PSI. I also tried muc.join instead of muc.create. Same error message.


Solution

  • Without knowing your exact setup, I would guess that your room name ([email protected]) is incorrect. You get a Feature not implemented because the XMPP entity mycompany.com does likely not act as MUC service. Those are implemented as separate XMPP component, usually named conference or muc, e.g. conference.mycompany.com.