So I have all of my users in one group, and when you start the chat client I want to add everyone in that group into my Roster. Let me just show you what i’'m doing:
Roster Group rg = roster.getGroup(“myGroup”);
for (Iterator i=rg.getEntries(); i.hasNext(); ) {
RosterEntry entry = (RosterEntry)i.next();
try {
roster.createEntry(entry.getUser(), entry.getUser(), null);
} catch (XMPPException e) {
e.printStackTrace();
}
}
It is throwing (406). If I look that up int he XMPPError API, it describes it as:
CODE - 406
XMPP-ERROR - no-acceptable
TYPE - MODIFY
can someone shed some light on this exception?
Message was edited by: PhilCDM