Consumer ex112, Tunnel Channel disconnected

I use the command below to run the example 112, connecting to a RTDS (deployed TREP) 14002 port:

.\gradlew runconsumer112 -PcommandLineArgs="-keyfile <...> -keypasswd <...>"


Through remote debugging and 'fine' log(not attached here), it looks good to parse the keystore file and load the parameters from EmaConfig.xml and create the Reactor and channel. Then it failed with:

2022-01-20 16:01:37.545 WARNING com.refinitiv.ema.access.ChannelCallbackClient reactorChannelEventCallback

loggerMsg

ClientName: ChannelCallbackClient

Severity: Warning

Text: Received ChannelDownReconnecting event on channel Channel_3

RsslReactor @7b4c50bc

RsslChannel @66ac5762

Error Id 0

Internal sysError 0

Error Location Reactor.processWorkerEvent

Error text Error initializing channel: errorId=-1 text=Tunnel Channel disconnected

loggerMsgEnd


The question is the failed reason and do I need to change some configurations on TREP ADS?

Best Answer

  • @Frederic

    You need the check the Channel_3 configuration in the EmaConfig.xml.

            <Channel>
                <Name value="Channel_3"/>
                <ChannelType value="ChannelType::RSSL_ENCRYPTED"/>
                <GuaranteedOutputBuffers value="5000"/>
                <ConnectionPingTimeout value="30000"/>
                <TcpNodelay value="1"/>
                <Host value="localhost"/>
                <Port value="14002"/>
                <!-- ObjectName is optional: defaulted to "" -->
                <ObjectName value=""/>
            </Channel>

    If the ChannelType is ChannelType::RSSL_ENCRYPTED, the encryption must be enabled in ADS.

Answers