powered by Jive Software

XMPPError: feature-not-implemented - cancel when searching for registered user from android client code

I am writing client code in android studio to check if a user is already registered in the server.
OF server is throwing the error.
“XMPPError: feature-not-implemented - cancel”

I have installed the search plugin and I verified its there in the correct directory.

Version: Openfire 4.1.6
Java Version: 1.8.0_144 Oracle Corporation – OpenJDK 64-Bit Server VM

Here is the code snippet -
Its failing at searchForm = search.getSearchForm(DBJid);

public Boolean checkIfUserExists(String StringJid) throws XMPPException{

    Jid jid = null;
    try {
        jid = JidCreate.from(StringJid);
        String t1string = jid.toString();
        Log.d(TAG,"Jid converted to string:"+ t1string);
    } catch (XmppStringprepException e) {

    DomainBareJid DBJid = jid.asDomainBareJid();
    Log.d(TAG,"DomainBareJid:"+ DBJid);
    UserSearchManager search = new UserSearchManager(mConnection);

    Form searchForm = null;

    try {
        searchForm = search.getSearchForm(DBJid);
        Log.d(TAG,"after getSearchForm");
    }catch (SmackException.NoResponseException | SmackException.NotConnectedException | InterruptedException Ie) {
        Log.d(TAG,"Exception at getSearchForm");