question

Frederic avatar image
33 3 6 12

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?

ema-apirssltunnel-stream
1 comment
10 |1500

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

OpenJDK 11, EMA Java 2.0.2.L1, TREP 3.5.0.L1
Jirapongse avatar image
45.2k 103 43 60

@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.

10 |1500

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

umer.nalla avatar image
23.5k 84 10 22

Hi @Frederic

Also, please see my colleague @Jirapongse article on configuring encryption on the ADS

Configuring Encrypted Connections on ADS | Refinitiv Developers


1 comment
10 |1500

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

Many thanks @umer.nalla , very helpful.