Hi Everyone,
I am getting this error when I post using an OMM Consumer:
Post Id must exist for multiple part post message
I am not sure I understand, I create the message like so:
private OMMMsg createMsg(final Map<String, String> data) { encoder.initialize(OMMTypes.MSG, 1000); encoder.encodeMsgInit(marketDataItemCont, OMMTypes.NO_DATA, OMMTypes.FIELD_LIST); encoder.encodeFieldListInit(OMMFieldList.HAS_STANDARD_DATA, (short) 0, (short) 1, (short) 0); for (Entry<String, String> d : data.entrySet()) { final Integer id = RfaUtils.getFieldId(d.getKey()); final String value = d.getValue(); encoder.encodeFieldEntryInit(id.shortValue(), OMMTypes.ASCII_STRING); encoder.encodeString(value, OMMTypes.ASCII_STRING); } encoder.encodeAggregateComplete(); return (OMMMsg) encoder.getEncodedObject(); } public int postMsg(final Map<String, String> data) { marketDataItem.clear(); marketDataItem.setMsgModelType(RDMMsgTypes.MARKET_PRICE); marketDataItem.setMsgType(OMMMsg.MsgType.POST); marketDataItem.setAttribInfo(serviceName, itemName, RDMInstrument.NameType.RIC); marketDataItem.setIndicationFlags(OMMMsg.Indication.NEED_ACK); ommPostHandleItemCmd.setMsg(createMsg(data)); ommPostHandleItemCmd.setHandle(contribHandle); return ommConsumer.submit(ommPostHandleItemCmd, contribHandle); }
Does someone see something wrong?
Thanks,
Gabriel