Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by shen.yu · Jun 05, 2018 at 01:59 PM · ema c++

Exception in Access/Impl/Thread.cpp

We are using the EMA api library for consuming electron MRN, and we have recorded the following message in the log, the API did not raise any exception or call any of the callbacks.

loggerMsg
TimeStamp: 10:49:31.007
ClientName: Consumer_1
Severity: Error
Text: EMA Exception Handler

Application: EMA Application
Process Id: 0x9634

File: Access/Impl/Thread.cpp
Line: 71
Exception occured
loggerMsgEnd

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

4 Replies

  • Sort: 
avatar image
REFINITIV
Answer by umer.nalla · Jun 06, 2018 at 10:23 AM

@shen.yu

Not much to go off, but one thing to eliminate - are you checking each field for Blank Data before attempting to extract the field value?

const FieldEntry& fe = fl.getEntry();
if ( fe.getCode() != Data::BlankEnum )
{
// Extract field value e.g. fe.getReal() / fe.getInt() etc..
}

I have seen a few instances of developers who do not check for blank fields when decoding the FieldList and get an exception...

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by zoya.farberov · Jun 18, 2018 at 11:30 AM

Hello @shen.yu,

We strive to help.

This is really not much info to go on, which is probably what has resulted in the lack of response from the community.

---

Is there any additional info that you can provide that you think would help us understand the issue?

For example:

Did you see this in the log only once or were there repeat occurrences, did it only happen once?

Can you tell anything of the conditions under which the exception has taken place?

Are you on the latest version of EMA, as many fixes have been built into it, and some issues may not be manifesting anymore?

---

Otherwise, I can see two ways of approaching this issue, which in the interest of saving time I would pursue both heavily and in parallel.

1. I would increase logging "to the hilt". Please refer to EMA Developer Guide section Troubleshooting and Debugging. By default EMA only logs "significant events". In the type of scenario you are looking at, we should try to log everything, to understand what is happening.

2. I would introduce additional application-level output, context specific, to try to narrow down when and where the exception has occurred. And look to reproduce again.

Please let us know how these worked for you.

Thanks,

-Zoya

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
shen.yu · Jun 18, 2018 at 12:06 PM 0
Share

Hi Zoya,

Thanks for replying. We are using the version 1.1.0 of the API continuously consuming messages for over a year now without any issue. However, starting few weeks ago without any change on our end, we are consistently getting the error above every weekend.

We can try upgrading to the latest version of the API if the version of 1.1.0 is no longer supported.

Thanks,


Shen

avatar image
REFINITIV
Answer by zoya.farberov · Jun 18, 2018 at 12:19 PM

Hi @shen.yu ,

EMA is an actively evolving and improving API.

1.1 remains supported. However:

There is a sizeable list of issues that was fixed in general release 1.2, which you may stand to benefit from.

There is already a short list of issues that were fixed after 1.2, and we make them available via github -> electron to developer who really need them. Among them is one issue on uninitialization that is more common then others. Do you, by chance, ununit and reinit on weekend? If that is the case, I would consider not just getting the latest general release but even bypassing general release 1.2 in favor of the very latest, early release of Elektron API on github.

I would, if experiencing an issue, at the first chance move to the latest, not to waste time debugging any fixed issue.

Hopefully you are able to, but in either case I would still, in anticipation of being able to reproduce during the weekend, increase logging and introduce the additional marking output as discussed before, to make progress toward resolving, as your reproducing chance is only over the weekend.

Please keep us posed how this works for you,

-Zoya

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
shen.yu · Jun 21, 2018 at 10:08 AM 0
Share

Hi Zoya,

Thanks, for the recommendation. We will upgrade to use API 1.2.0 and monitor to see if the same issue persist.

Thanks,

Shen

avatar image
Answer by shen.yu · Jun 26, 2018 at 11:42 AM

Hi Zoya,

We have upgraded the API 1.2.0, but the issue persist:

loggerMsg
    TimeStamp: 10:54:41.861
    ClientName: Consumer_1
    Severity: Error
    Text:    EMA Exception Handler

Application: EMA Application
Process Id: 0x8C53

File: Access/Impl/Thread.cpp
Line: 71
Exception occured
loggerMsgEnd

For the 5th consecutive weeks, we are getting this every Saturday morning.

Any help would be greatly appreciated, thanks!

Shen

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

EMA Issue with update items

IProvider downloading dictionary and serviceName\serviceId parameter

[EMA C++]How to get seqNum in RefreshMsg and updateMsg

which fun should I use if I want to get "Spread Table"

how do i add EMAconfig in ema c++ and use it?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges