Exception while subscribing for news

I am writing a consumer application for reading news from EMA , i am getting a below exception
loggerMsg
TimeStamp: 13:31:51.825
ClientName: ChannelCallbackClient
Severity: Success
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_1_1
Connected component version: ads2.6.11.L1.linux.tis.rrg 64-bit
loggerMsgEnd
loggerMsg
TimeStamp: 13:31:53.712
ClientName: Consumer_1_1
Severity: Error
Text: EMA Exception Handler
Application: EMA Application
Process Id: 0xF51
File: Access/Impl/Thread.cpp
Line: 71
Exception occured
loggerMsgEnd
I am not able to find the cause of this , any help ?
Best Answer
-
You should try adding a try/catch in side the callback function (onRefresh, onUpdate, etc.) and see if it catch the exception.
The log suggests that the exception was thrown in EMA dispatching thread. This could means the exception was thrown in callback function.
0
Answers
-
Try adding a big try/catch in side the callback function and see if it catch the exception.
The log suggests that the exception was thrown in EMA dispatching thread. This could means the exception was thrown in callback function.
0 -
Exactly I already did this - thank you ,
but the problem was while decoding NTA Fragments in MRN News .
There is a excception when the fragment size is 0 .
Im trying to debug this
0 -
@warat.boonyanit Hi, I encountered the same problem and now added try/catch in the callback function body.
One more question, is there anyway application can detect some core thread in ema sdk still alive ? If accidental events that try/catch still not works occur cause these core threads crash but my other threads still live, I expect to catch such message to take my own action, for example try to exit the whole application to make it reboot and register rics again ? Many thanks, expecting your reply.
0 -
It looks like you want to catch unhandled exception yourself, correct?
There is a parameter named "CatchUnhandledException" you can set in the Ema Configuration file. If you set it to 0 (default is 1) the EMA passes unhandled exceptions to the
operating system. In this case, I think the application layer can catch such an error to take your own action.
Please find the details of the parameter from Ema CPP Configuration Guide (EMACPP_ConfigGuide.pdf) section 3.1.4 (based on ESDK1.3.0.L1 package)0 -
@moragodkrit.chumsri_1 Thanks for your replay. According to your advice,
First I should modify EmaConfig.xml to add two following consumer entries, right?
Second, if ema passes unhandled exception to the operation sysstem, How can I catch it or just let the operating system handle it , maybe crash my application?
If I try in my main() function like this:
int main(){
try{
AppClient client;
// put all register RIC code here
} catch(const emaaccess::OmmException& excp)
{
// Will UnhandledException runs here ?
}
}Can my application catch the exception via OmmException ? Thanks
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 622 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛