Maapi.commitQueueResult is deprecated in NSO 5.7.3. However, I got internal error on the following code:
maapi.applyTrans(th, false, Maapi.COMMIT_NCS_COMMIT_QUEUE_SYNC);
CommitParams cParam = new CommitParams();
cParam.setCommitQueueSync(600);
CommitQueueResult qRst = (CommitQueueResult)maapi.applyTransParams(th, false, cParam);
com.tailf.maapi.MaapiException: internal
at com.tailf.maapi.MaapiException.mk(MaapiException.java:62)
at com.tailf.maapi.MaapiException.mk(MaapiException.java:51)
at com.tailf.maapi.ApplyResult.<init>(ApplyResult.java:25)
at com.tailf.maapi.Maapi.applyTransParams(Maapi.java:1583)
at com.tailf.maapi.Maapi.applyTransParams(Maapi.java:1560)
I switch to
CommitQueueResult qRst = maapi.commitQueueResult(th, timeout);
Then it works fine. Could anyone help to point how what did I do wrong?