question

Upvotes
Accepted
3 0 0 4

Failed to run demo java code for contribution

Hi, I am trying to run this tutorial: https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java#ema-consumer-posting-data-to-contribution-channel

I think the code with problem is this line:

OmmConsumer consumer = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig()
.tunnelingKeyStoreFile("clientkeystore")
.tunnelingKeyStorePasswd("test123"));

I got following error message:

Contributing to TR Contributions Channel

Starting encrypted connection...

Oct 29, 2018 10:44:53 AM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback WARNING: loggerMsg

ClientName: ChannelCallbackClient

Severity: Warning

Text: Received ChannelDownReconnecting event on channel Channel_1 RsslReactor Channel is null

Error Id 0 Internal sysError 0

Error Location Reactor.processWorkerEvent

Error text Error initializing channel: errorId=0 text=null loggerMsgEnd

Could you please help? Thanks

Regards,

Zhe

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apircc-apikey-store
icon clock
10 |1500

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

Upvotes
Accepted
13k 32 12 18

Hi @zhe.wang, For TRCC contribution, try service name DDS_TRCE. You should have receive this along with the login credentials.

icon clock
10 |1500

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

I see. It works! Thanks a lot.

Upvote
13k 32 12 18

Hello @zhe.wang. Have you tried the troubleshooting steps in the tutorial? Specifically the ones about turning on JDK network logging, and adding the CA certificate to your keystore.

icon clock
10 |1500

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

Hi Gurpreet, with your help, now I can build the encrypted.

The next problem I got is, what kind of CONTRIBUTION_SERVICE_NAME should I input to run the tutorial? It is related to following code:

// Create a request for a tunnel streamTunnelStreamRequest tsr = EmaFactory.createTunnelStreamRequest()
.classOfService(cos)
.domainType(EmaRdm.MMT_SYSTEM)
.name("TUNNEL1")
.serviceName("CONTRIBUTION_SERVICE_NAME");
Click below to post an Idea Post Idea