How can I capture the ERROR message reactorChannelEventCallback

Hi Team,
Client is facing bellow ERROR sometimes which caused ChannelDown. And client can only restart the apps manually to subscribe data again. Client is asking how to capture the message of reactorChannelEventCallback, then they can reconnect automatically.
ClientName: ChannelCallbackClient
Severity: Error
Text: Received ChannelDown event on channel Channel
Instance Name EmaConsumer_1
RsslReactor @48918bb6
RsslChannel @14095b4d
Error Id -1
Internal sysError 0
Error Location WlItemHandler.dispatch
Error text ReactorCallbackReturnCodes.FAILURE was returned from defaultMsgCallback(). This caused the Reactor to shutdown.
loggerMsgEnd
Huge thanks
Gang
Best Answer
-
Hi @gang.chen1 and @ancoder
Just to confirm - to know the state of connectivity, you need to monitor the Status Msg for the Login Stream - not the market data item streams such as MarketPrice or others.
@gang.chen1 - regards your other question about - Received an item event with invalid message stream - this was asked previously by yourself: Received an item event with invalid message stream - Forum | Refinitiv Developer Community
0
Answers
-
Hi @gang.chen1
There is a related question on the forum - EMA C++ - Reconnection to ADS - Forum | Refinitiv Developer Community - which explains how to monitor the connection state and also EMA Webinar Nov 2: How are connection events handled (disconnections, buffer overflows, etc) - Forum | Refinitiv Developer Community
if you want to know the state of connectivity to a server within the application, you can manually register for the Login Domain stream.
Please refer to the 330__Login__Streaming example that comes with the SDK.
So, for example, if the DataState of your Login stream changes to Suspect, you know something is not right - but as long as the StreamState remains open - this should recover to DataState of OK. If however, it has not recovered after a while, you could try and reconnect.
OR, If the StreamState changes to Closed, then this indicates that the application has been logged out of the server and you would need to reconnect.
0 -
Thanks nalla !
I will forward this to client and let them try.
Also, client want to know the root cause why bellow ERROR happen. Could you advise ?
thanks
2022-05-18T01:16:48,557 ERROR 527112 [pool-14-thread-1] ItemCallbackClient 1864 processStatusMsg - loggerMsg
ClientName: ItemCallbackClient
Severity: Error
Text: Received an item event with invalid message stream
Instance Name EmaConsumer_1
RsslReactor 4139a51
loggerMsgEnd
2022-05-18T01:16:48,557 ERROR 527112 [pool-14-thread-1] ChannelCallbackClient 514 reactorChannelEventCallback - loggerMsg
ClientName: ChannelCallbackClient
Severity: Error
Text: Received ChannelDown event on channel Channel
Instance Name EmaConsumer_1
RsslReactor @6a550429
RsslChannel @228a92f4
Error Id -1
Internal sysError 0
Error Location WlItemHandler.dispatch
Error text ReactorCallbackReturnCodes.FAILURE was returned from defaultMsgCallback(). This caused the Reactor to shutdown.
loggerMsgEnd
0 -
Since we added StreamState into monitoring, we got so many StatusMsgs with StreamState[CLOSED] as below
2022-05-18T15:20:33,874 ERROR 23600 [pool-5-thread-1] EmaClient 53 onStatusMsg - StreamState[CLOSED] in StatusMsg
streamId="7"
domain="MarketPrice Domain"
state="Closed / Ok / None / 'Stream closed for batch'"
serviceName="ELEKTRON_DD"
StatusMsgEnd
2022-05-18T15:20:33,883 ERROR 23609 [pool-5-thread-1] EmaClient 53 onStatusMsg - StreamState[CLOSED] in StatusMsg
streamId="9"
domain="MarketPrice Domain"
state="Closed / Ok / None / 'Stream closed for batch'"
serviceName="ELEKTRON_DD"
StatusMsgEnd
...While subscribing to Chain of LSE : [0#LSE-ALL] and Chain of SGX : [0#A.SI, 0#B.SI, 0#C.SI, 0#D.SI, 0#E.SI, 0#F.SI, 0#G.SI, 0#H.SI, 0#I.SI, 0#J.SI, 0#K.SI, 0#L.SI, 0#M.SI, 0#N.SI, 0#O.SI, 0#P.SI, 0#Q.SI, 0#R.SI, 0#S.SI, 0#T.SI, 0#U.SI, 0#V.SI, 0#W.SI, 0#X.SI, 0#Y.SI, 0#Z.SI]
We wonder if it is normal and what could be the possible reasons for this...
0 -
Hello @ancoder
The close status message with "Stream closed for batch" text is expected behavior when the application subscribes a batch request to Refinitiv Real-Time.
The state "Closed / Ok / None / 'Stream closed for batch'" in a Status Message is to notify the application that the batch stream is closed. The application receives this Status Message after EMA has requested data for all RICs in the batch request already so the batch stream is not used anymore. The reason is the responses (data, status message) of all RICs are provided on individual streams which are not batch streams.
Hope this help.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛