Hi I have fixed the issue by adding a new item in form. And replace the following 2 kinds of provider.
ProviderManager.getInstance().addIQProvider(AdHocCommandDataEx.ELEMENT, AdHocCommandDataEx.NAMESPACE, new AdHocCommandDataProviderEx());
ProviderManager.getInstance().addExtensionProvider(DataFormProviderEx.ELEMENT, DataFormProviderEx.NAMESPACE, new DataFormProviderEx());
Now, in my IQ listener, I can catch the user roaster items in the branch as below:
if(iq instanceof AdHocCommandDataEx) { ... }
I'm wondering if there is any impact on other kinds of IQ?