powered by Jive Software

Receiving exception code 406 when tyring to use Roster.createEntry

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) {




It is throwing (406). If I look that up int he XMPPError API, it describes it as:

CODE - 406

XMPP-ERROR - no-acceptable


can someone shed some light on this exception?

Message was edited by: PhilCDM

Hey Phil,

Are you using shared groups in the server. Shared groups can only be modified from the server. Clients will get a not-acceptable (406) error when try to modify a shared group.


– Gato