question

Upvotes
Accepted

We appear to have received a lot of RIC updates at around 08:22 CET which didn't contain a state.can you please check why those updates were sent?

Logs:

2023-03-21 08:22:57.861 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice GBPSEK= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.864 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice EURSEK= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.867 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice EURNOK= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.875 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice EURJPY= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.880 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice GBP= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.890 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice SEK= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.895 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice MAD= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.895 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice NZD= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.900 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice BWP= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:57.912 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice EURKES= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:58.089 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice EURDKK= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:58.116 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice NOK= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

2023-03-21 08:22:58.119 CET prd_reuters_elektron@SEB-PROD <warning>: Can't decode Status MarketPrice KWD= @ 23 Exception Type='OmmInvalidUsageException', Text='Attempt to getState() while it is NOT set.', ErrorCode='-4048'

#technologyema-api#productapic++
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.

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@LanceGabriel.Villacrusis

Thanks for reaching out to us.

The exception indicates that the code is trying the access the state data (getState()) but the state data is not available in the status message.

A status message can convey changes in the stream state or data state, changes in a stream’s permissioning information, or changes to the item group of which the stream is a part.

Therefore, the application needs to check the presence of state data before accessing it.

The code looks like this:

    if (statusMsg.hasState()) {
        const OmmState& state = statusMsg.getState();
    }

I hope that this information is of help.


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.

Hi @Jirapongse Thank you for the detailed explanation, But I still don't quite understand, May I know what causes those messages to be sent?

Jirapongse avatar image Jirapongse LanceGabriel.Villacrusis

@LanceGabriel.Villacrusis

You need to check what information contains in those status messages.

Otherwise, you may contact the server support team to check if there was an incident at that time.

Hi @Jirapongse it is pointed out in our documentation that it’s not required to send state Status messages. However, the logs don’t say if this was a status message or a refresh, or similar.

May I know the possible reason for this? Looking forward to your reply.

1680088501541.png

1680088501541.png (32.1 KiB)
Show more comments
Show more comments

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.