For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 1 2 5

Ema News feed - Auto reconnection not happened

Hi Team,

We are running Ema C++ news component for news feed.

Yesterday the component got disconnected from the server and auto reconnect does not happen.

Please check the logs below,

loggerMsg

TimeStamp: 13:35:43.889

ClientName: Consumer_1_1

Severity: Error

Text: EMA Exception Handler

Application: EMA Application

Process Id: 0x7843

File: Impl/Thread.cpp

Line: 71

Exception occured

loggerMsgEnd

Please help me enabling the auto reconnection.

Thanks,
Thiruppathi S

elektronrefinitiv-realtimeelektron-sdknews
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.

Upvotes
Accepted
24.6k 86 10 22

Hi,

The limited log output does not suggest a controlled disconnect - it could well be an application level problem.

If the network connection was lost or if the ADS server shutdown of if a service was down, you would get a more meaningful message explaining the loss, and the API would attempt to recover once the network/server/service was restored.

Once you do figure out what went wrong, I would recommend you use a ChannelSet - if you are not already doing so. See the EMA config guide for details and also the following post Example ChannelSet config

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.

Upvotes
3 1 2 5

Hi @umer nalla

We have added xml trace option in EmaConfig.xml file and found the connection is closed and reconnection not happened.

XML Trace output:

<!-- End Message (Channel IPC descriptor = 12) -->

<!-- rsslCloseChannel Connection closed (Channel IPC descriptor = 12) -->

Exception Thrown from the application

loggerMsg

TimeStamp: 2017/03/24 04:32:47.873

ClientName: Consumer_1_1

Severity: Error

Text: EMA Exception Handler

Application: EMA Application

Process Id: 0x5D7F

File: Impl/Thread.cpp

Line: 71

Exception occured

loggerMsgEnd

Please help in this.

Thanks,

Thiruppathi S

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.