question

Upvotes
Accepted
33 9 13 31

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

OpenJDK 11, EMA Java 2.0.2.L1, TREP 3.5.0.L1
Upvotes
Accepted
79.2k 251 52 74

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

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
25.3k 87 12 25

Hi @Frederic

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

Configuring Encrypted Connections on ADS | Refinitiv Developers


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.

Many thanks @umer.nalla , very helpful.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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