query symbol through ELEKTRON_DD service is not stable

when I query symbol through ELEKTRON_DD service in my server, one minute it works, the next it doesn't

the error details as following

Best Answer

  • Jirapongse
    Answer ✓

    @272094831

    Thank you for reaching out to us.

    From the call stack, I assume that the application uses the EMA message outside the EMA callback function.

    Typically, the EMA messages are only valid within the EMA callback methods, such as AppClient::onRefreshMsg. To use the EMA messages outside the EMA callback methods, the application needs to clone the messages.

    For example:

    RefreshMsg clonedRefreshMsg 
    ...   
    public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent event)
        {
            clonedRefreshMsg =  EmaFactory.createRefreshMsg(refreshMsg);
            System.out.println(clonedRefreshMsg);   
        }

Answers

  • when I query symbol through ELEKTRON_DD service in my server, one minute it works, the next it doesn't

    the error details as following

    微信截图-20240428174034.png