我正在使用Smack版本4.2.0,并尝试修改pubsub节点的用户从属关系, 我使用以下代码修改了Affiliation:
PubSubManager mgr = PubSubManager.getInstance(connection);
Form frm = new Form(DataForm.Type.form);
mgr.getNode(nodeName).getNodeConfiguration();
frm.createAnswerForm();
frm.setAnswer(ConfigureNodeFields.publish_model.getFieldName(),
userNamePublisher);
Getting exception :- java.lang.IllegalArgumentException: Field not found for the specified variable name.
请纠正我,我做错了什么,先谢谢