I’m trying to get user joined rooms:
manager.getJoinedRooms(user)
where user is full name like 1_2@localhost.
And got error:
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPPError:
service-unavailable - cancel at
org.jivesoftware.smack.XMPPException$XMPPErrorException.ifHasErrorThenThrow(XMPP Exception.java:135)
at
org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:23 2)
at
org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:21 3)
at
org.jivesoftware.smackx.disco.ServiceDiscoveryManager.discoverItems(ServiceDisco veryManager.java:570)
at
org.jivesoftware.smackx.muc.MultiUserChatManager.getJoinedRooms(MultiUserChatMan ager.java:205)
But if I try same request to ejabberdctl in console:
ejabberdctl get_user_rooms 1_2 localhost
It returns list of rooms.
I’ve tried user
like 1_2@chat.domen.com or 1_2@localhost/chat.domen.com, or 1_2@localhost/server_ip, and got errors:
XMPPError: service-unavailable - cancel
or
XMPPError: remote-server-not-found - cancel
or
XMPPError: item-not-found - cancel