We tried to run the Market By Price test and got Exception : Invalid InterestSpec type received: OMM_ITEM_INTEREST_SPEC "125". Following is what we set in the code.
OMMItemIntSpec ommItemIntSpec = new OMMItemIntSpec();
ommmsg.setMsgType(OMMMsg.MsgType.REQUEST);
ommmsg.setMsgModelType(capability);
ommmsg.setPriority((byte)1, 1);
String itemName = client.getRfaSubKey();
ommmsg.setIndicationFlags(OMMMsg.Indication.REFRESH);
ommmsg.setAttribInfo(getServiceName(), itemName, RDMInstrument.NameType.RIC);
ommItemIntSpec.setMsg(ommmsg);
Handle itemHandle = marketDataSubscriber.registerClient(eventQueue, ommItemIntSpec, client, null);