G
G
gorcer2011-03-22 16:32:56
Java
gorcer, 2011-03-22 16:32:56

Searching for Jabber users via Smack API?

I am writing an application in Java, I use this code to search for users:

UserSearchManager search = new UserSearchManager(connection);<br/>
 try {<br/>
<br/>
Form searchForm = search.getSearchForm(&quot;jabber.com&quot;);<br/>
 Form answerForm = searchForm.createAnswerForm();<br/>
 answerForm.setAnswer(&quot;last&quot;, &quot;DeMoro&quot;);<br/>
 ReportedData data = search.getSearchResults(answerForm, &quot;jabber.com&quot;);<br/>
<br/>
} catch (XMPPException xmppe) {<br/>
<br/>
Marishko.SystemLog(&quot;Error initializing search form fields: &quot; + xmppe);<br/>
<br/>
}<br/>

However, nothing happens, an error is thrown.
Perhaps someone has practical experience in this matter that you would be willing to share?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question