Error initializing channel 1 (example code)

Hi

I am following the example from the below link

https://developers.refinitiv.com/article/expanding-ema-java-consumer-example-provide-web-services-rest

and is receiving this error. I don't know, why there is connection refusal, though I am using 14002 port.

I am using canned data RDMFieldDictionary and EMAConfig.xml and under Consumer1, changed the Dictionary1 to Dictionary2 (as told in the example link mentioned above) and Dictionary2 refers to the files (files in bold)

Please help me in resolving the error. Thanks

Jul 09, 2020 6:46:41 PM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback

SEVERE: loggerMsg

ClientName: ChannelCallbackClient

Severity: Error

Text: Received ChannelDown event on channel Channel_1

Instance Name Consumer_1_1

RsslReactor @660acfb

RsslChannel @238d68ff

Error Id 0

Internal sysError 0

Error Location Reactor.processWorkerEvent

Error text Error initializing channel: errorId=-1 text=Connection refused: no further information

loggerMsgEnd



login failed (timed out after waiting 45000 milliseconds) for localhost:14002)

Best Answer

Answers

  • @dhruv.arora

    Are you running sink_driven_src with the canned data on the same machine you are running the EMA example?
    Can you test one of the EMA consumer examples with the sink_driven_src and get the same result?

  • moragodkrit I am running example102__MarketPrice__Snapshot. Yes, I am using the canned data.

  • I forgot to mention, I am running the example on the same machine, where I have canned data and as mentioned on the article (link given in my question), I setup the Tomcat server.