How to uses Smack API UserSearchManager with local server?
问题 This may look a very basic question but I am having a problem accessing OpenFire search function using this code: try { UserSearchManager search = new UserSearchManager(connection.getConnection()); Form searchForm = search.getSearchForm("search." + server); ... } catch (Exception e) {...} The server here is a String with value something like "192.168.242.132", the code gets error from this line: Form searchForm = search.getSearchForm("search." + server); Essentially, the server is up and