question

Upvotes
Accepted
18 1 3 5

Unable to retrieve the "CLOSED" state content

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());
}

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
281 1 3 7

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
23k 22 9 14

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"

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea