Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

Problem with UserSearchManager

$
0
0

Hello,

I am using the openfire version 3.9.3 and under android asmack lib (-16). If I use the class UserSearchManager I get an Exception in the command:

Form searchForm = search.getSearchForm("search." + mconnection.getServiceName());

The source code is for init:

// User Search
    pm.addIQProvider("query", "jabber:iq:search", new UserSearch.Provider());

 

The the function with:

UserSearchManager search = new UserSearchManager(mconnection);

Form searchForm = search.getSearchForm("search." + mconnection.getServiceName());

Form answerForm = searchForm.createAnswerForm();

answerForm.setAnswer("test1", "test2");

 

The answer of the openfire server is:

02-26 17:07:47.781  11248-11378/de.test.xmpp:remote D/SMACK? 05:07:47 nachm. SENT (1107492744): <iq id="R40NL-10" to="search.h134345.stratoserver.net" type="get"><query xmlns="jabber:iq:search"></query></iq>

02-26 17:07:47.831  11248-11379/de.test.xmpp:remote D/SMACK? 05:07:47 nachm. RCV  (1107492744): <iq type="error" id="R40NL-10" to="001234321@h134345.stratoserver.net/Smack" from="search.h134345.stratoserver.net"><query xmlns="jabber:iq:search"/><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

 

Onto the openfire server I have configured three users. I need for my new App the information of all users onto openfire server for the client.

 

Best Regards

Bernd Herzmann


Viewing all articles
Browse latest Browse all 4979

Trending Articles