EMA Java Producer not reconnecting after remote disconnect
So I have created a contrbutor based on the Consummer example code (which contributes prices despite its name ... is this correct?).
The system connects corrrectly (a StatusMsg is sent and alogin request message is created and returned and that is acknowledged via a RefreshMsg)
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_1_1
Component Version eta3.6.2.E1.linux.rrg 64-bit Static
loggerMsgEnd
INFO: StatusMsg
streamId="5"
domain="System Domain"
privateStream
state="Open / Ok / None / ''"
name="TUNNEL1"
serviceId="10"
serviceName="DDS_TRCE"
StatusMsgEnd
INFO: Sending login request for user: '********'
INFO: Refresh(): isLogin=true, isStreamOpen=true, isDataOk=true
INFO: Refresh(): Login accepted - Data streaming enabled
All then goes well for many hours / days until out of the blue we get the following messages:
Aug 23, 2022 6:29:05 PM com.refinitiv.ema.access.ChannelCallbackClient reactorChannelEventCallback
WARNING: loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel_1
RsslReactor @156a1f7b
RsslChannel @7dec2b8
Error Id 0
Internal sysError 0
Error Location null
Error text Tunnel Channel Closed
loggerMsgEnd
Aug 23, 2022 6:29:05 PM com.refinitiv.ema.access.LoginCallbackClient rdmLoginMsgCallback
WARNING: loggerMsg
ClientName: LoginCallbackClient
Severity: Warning
Text: RDMLogin stream state was changed to suspect with status message
username <not set>
usernameType <not set>
State: Open/Suspect/None - text: ""
loggerMsgEnd
Aug 23, 2022 6:29:05 PM com.feed.RefinitivAdapter onStatusMsg
INFO: StatusMsg
streamId="5"
domain="System Domain"
privateStream
state="Closed, Recoverable / Suspect / None / 'channel down.'"
name="TUNNEL1"
serviceId="10"
serviceName="DDS_TRCE"
StatusMsgEnd
We periodically then get the following messages
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_1_1
Component Version eta3.6.2.E1.linux.rrg 64-bit Static
loggerMsgEnd
and then after a while
WARNING: loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel_1
RsslReactor @156a1f7b
RsslChannel @79b17957
Error Id 0
Internal sysError 0
Error Location null
Error text Tunnel Channel Closed
loggerMsgEnd
Aug 23, 2022 6:32:21 PM com.refinitiv.ema.access.LoginCallbackClient rdmLoginMsgCallback
WARNING: loggerMsg
ClientName: LoginCallbackClient
Severity: Warning
Text: RDMLogin stream state was changed to suspect with status message
username <not set>
usernameType <not set>
State: Open/Suspect/None - text: ""
loggerMsgEnd
I assumed that when the channel became available agin, there would be a corresponding StatusMsg that would request the login information again. How do we get the ChannelUp event to trigger a new StatusMsg? Or is there a much better way to ensure that the automatic reconnect occurs? Is there a specific example piece of code that I can look at (I have looked at the tutorial / example code but can't seem to see anything that is relevant)
Many thanks
Best Answer
-
The following error could be a problem on the contribution server (RCC).
StatusMsg
streamId="5"
domain="Login Domain"
privateStream
state="Closed / Suspect / No resources / 'System busy'"
StatusMsgEndYou need to contact the Refinitiv Contributions Channel support team directly via MyRefinitiv to verify this message.
I implemented a sample code that can recover the connection. However, it may not cover all scenarios.
https://github.com/jirapongse-refinitiv/ContributorEMAJava
0
Answers
-
You may check the answer to the following question regarding tunnel stream reconnection.
I hope this will help.
0 -
Unfortunately that didn't help ...
To clarify, the code I am running is based on the Contributor example which connect fine and works well, but also suffers from the same problem. To highlight the problem I have attached the output of the Contributor
Contributing to Refinitiv Contributions Channel
Starting encrypted connection...
Aug 25, 2022 2:00:18 PM com.refinitiv.ema.access.ChannelCallbackClient reactorChannelEventCallback
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_1_1
Component Version eta3.6.2.E1.linux.rrg 64-bit Static
loggerMsgEnd
Created...
Starting tunnel stream...
-- onAllMsg --
----- Status message ----
StatusMsg
streamId="5"
domain="System Domain"
privateStream
state="Open / Ok / None / ''"
name="TUNNEL1"
serviceId="10"
serviceName="DDS_TRCE"
StatusMsgEnd
Sending client login request...
-- onAllMsg --
----- Status message ----
StatusMsg
streamId="5"
domain="Login Domain"
privateStream
state="Closed / Suspect / No resources / 'System busy'"
StatusMsgEnd
Aug 25, 2022 2:00:21 PM com.refinitiv.ema.access.ChannelCallbackClient reactorChannelEventCallback
WARNING: loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel_1
RsslReactor @5f96789f
RsslChannel @6734fcc2
Error Id 0
Internal sysError 0
Error Location null
Error text Tunnel Channel Closed
loggerMsgEnd
Aug 25, 2022 2:00:21 PM com.refinitiv.ema.access.LoginCallbackClient rdmLoginMsgCallback
WARNING: loggerMsg
ClientName: LoginCallbackClient
Severity: Warning
Text: RDMLogin stream state was changed to suspect with status message
username <not set>
usernameType <not set>
State: Open/Suspect/None - text: ""
loggerMsgEnd
-- onAllMsg --
----- Status message ----
StatusMsg
streamId="5"
domain="System Domain"
privateStream
state="Closed, Recoverable / Suspect / None / 'channel down.'"
name="TUNNEL1"
serviceId="10"
serviceName="DDS_TRCE"
StatusMsgEnd
Aug 25, 2022 2:00:23 PM com.refinitiv.ema.access.ChannelCallbackClient reactorChannelEventCallback
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_1_1
Component Version eta3.6.2.E1.linux.rrg 64-bit Static
loggerMsgEndWhile it all works fine initially, the ChannelUp never seems to generate a message (status or otherwise) so that the tunnel can be reconnected. I have added the recommendations from the other post, but they don't seem to make any difference..
0 -
Thanks for the example code, that really helped! (the previous article didn't cover all the elements in your example).0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛