powered by Jive Software

Fetching offline messages throws item-not-found(404) exception

Hi

I am trying to fetch offline messages using smack 3.0 API and ejabbered server. I have configured MySQL to store all offline messages. (Indeed they are getting stored over there also)

I try login without presence, it logs me in with available presence, but when i do

OfflineMessageManager offlineMessageManager = new OfflineMessageManager(connection);

Iterator it = offlineMessageManager.getHeaders();

getHeader function throws exception:

tem-not-found(404)

at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryM anager.java:460)

at org.jivesoftware.smackx.OfflineMessageManager.getHeaders(OfflineMessageManager. java:114)

when i use wildfire server things work fine. Can anybody please provide me with some inputs.

Thanks

Yash

It seems ejabberd server doesn’'t support flexi retrieval of offline messages.