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'

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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.


Answers