Hello,
I am embedding Openfire into an application. With is I can create a chatroom using openfire source.
So far so good, the chatroom is created, but when I want to use Smack api to join the muc, it generates this exception :
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPPError: recipient-unavailable - wait
at org.jivesoftware.smack.XMPPException$XMPPErrorException.ifHasErrorThenThrow(XMPPException.java:135) ~[smack-core-4.1.0.jar:4.1.0]
at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:232) ~[smack-core-4.1.0.jar:4.1.0]
at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:311) ~[smack-extensions-4.1.0.jar:4.1.0]
at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:495) ~[smack-extensions-4.1.0.jar:4.1.0]
....
After using the psi-im client, the chatroom is modified in a** **way that the previous code now works.
I am creating the chatroom with this code :
final MUCRoom root = service.getChatRoom("test", new JID("admin@host"));
root.setNaturalLanguageName("test");
root.setDescription("test");
root.setPersistent(true);
root.setPassword(XMPP_PASSWORD);
root.saveToDB();
Any idea why the chat room is not valid before using psi-im ?
Best regards.