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 512.0 KiB each and 1.0 MiB total.

The "Case : 04603431 Unable to retrieve the "CLOSED" state content" has been created and assigned to TRDC to investigate this issue.

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 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 20

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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