powered by Jive Software

Getting error while fetching archived messages(XEP-0313 MAM - chat history) from openfire-4.1.1

Openfire version - 4.1.1(Which has XEP-0313 MAM support)

Smack version - 4.2.0-rc2-SNAPSHOT(Which has XEP-0313 MAM support)

Monitoring Service version - 1.5.4

After installing Monitoring Service plugin in Openfire, I’ve also enabled Message Archiving.

To fetch archived messages,

MamManager mamManager = MamManager.getInstanceFor(mConnection);

MamQueryResult mamQueryResult = mamManager.queryArchive(5);

Sent Stanza :

<?xml version="1.0" encoding="UTF-8"?>
  <set xmlns="http://jabber.org/protocol/rsm">

5

Received Stanza :

<?xml version="1.0" encoding="UTF-8"?>
  <set xmlns="http://jabber.org/protocol/rsm">

5

Questions :

  • Why there is an error of 503 - cancel - service-unavailable?

  • Is openfire server congfigured properly for MAM - XEP-0313 support, or am I missing something?

  • Is this an issue of smack(MamManager)?