powered by Jive Software

RosterListener not reacting

Hello all,

I’m using your Smack API, and it’s really working fine, but my RosterListener isn’t reacting at all.

So I build up a connection without any problems, and also sending messages works fine.

But my following code isn’t doing anything:

Roster roster = connection.getRoster();

roster.addRosterListener(new RosterListener(){

public void presenceChanged(Presence changed){

System.out.println("Presence Changed… ");

}

});

None of the Presence changes that I tried where caught by this method… Now, I do know that my code should be correct but could this problem be caused by some setting on the Server? Since we are running our own OpenFire server, and one of my colleagues did played around with the Server Settings…And I don’t know what he has been changing so it’s quite hard for me to find the problem.

Kind regards!

Jan