Search code examples
javaxmppsmack

Smack API throws item-not-found(404) exception


Here is the code

Iterator i = MultiUserChat.getJoinedRooms(connectionManager.getXMPPConnection(), "test123@dulanjaya-pc");
while(i.hasNext()) {
    System.out.println(i.next());
}

Solution

  • Figured out. Need to put the service as /Smack

    Iterator i = MultiUserChat.getJoinedRooms(connectionManager.getXMPPConnection(), "test123@dulanjaya-pc/Smack");