Unable to retrieve the "CLOSED" state content

Raymond
Raymond Newcomer

Hi,

We are using the java RFA Version: 8.0.0

We tried to test some ric code with "closed" state
(for example "BRL10MNDF=", the state content should be { state: CLOSED, code: NO_PERMISSION, text: "*Access Denied: User req to IDN for Specialist - SDPREREINTO"}
but only received the COMPLETION_EVENT with no state content

"ItemManager: Receive a COMPLETION_EVENT, com.reuters.rfa.internal.session.omm.OMMSubHandleImpl@8efdbc1e "

public void processEvent(Event event)
{
if (event.getType() == Event.COMPLETION_EVENT)
{
System.out.println(_className + ": Receive a COMPLETION_EVENT, " + event.getHandle());
return;
}

System.out.println(_className + ".processEvent: Received Item Event...");
if (event.getType() != Event.OMM_ITEM_EVENT)
{
System.out.println("ERROR: " + _className + " Received an unsupported Event type.");
_mainApp.cleanup(-1);
return;
}

OMMItemEvent ie = (OMMItemEvent)event;
OMMMsg respMsg = ie.getMsg();

if( respMsg.has(respMsg.HAS_STATE) )
System.out.println(respMsg.getState().toString());
}

Tagged:

Best Answer

  • Sarit Chantasuban
    Answer ✓

    This thread has been closed as the solution has been
    found not to relate to the proposed cause so no answer is required.

Answers

  • zoya faberov
    zoya faberov ✭✭✭✭✭

    I do not believe the instrument "BRL10MNDF=" is currently closed. COMPLETION_EVENT could have resulted from a valid completion, if registered for completion, RFA will always dispatch completion, to indicate no more events on a stream, for example, to a non-streaming request/snapshot or an unsubscribe.

    To test "CLOSED", if you try an invalid instrument, for example "BRL10MNDF=TST" subscription will result in "CLOSED", ""The record could not be found"