question

Upvotes
Accepted
1 1 1 1

Electron Java SDK SocketChannel.read returned -1 (end-of-stream)

Hi,

We are trying to go over ETA Quick Start for Electron Java SDK. https://developers.thomsonreuters.com/elektron/elektron-sdk-java/quick-start?content=43160&type=quick_start We have EZD 1.2 deployed. And we can telnet port 14002

When we try to run the command from the tutorial

./gradlew runVAConsumer -PcommandLineArgs=" -c localhost:14002 ELEKTRON_AD mp:AAPL.O"

We see an error like SocketChannel.read returned -1 (end-of-stream)

Could you please suggest what could be a problem ?

Logs:

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :Eta:Applications:Examples:runVAConsumer Ultra Performance API (UPA), Java Edition, LibraryVersionInfo productVersion: 3.2.0.1 productInternalVersion: etaj3.2.0.L1.all.rrg productDate: Thomson Reuters Consumer initializing... Channel Up Event: java.nio.channels.SocketChannel[connected local=/127.0.0.1:61738 remote=localhost/127.0.0.1:14002] Connection down reconnecting: Channel java.nio.channels.SocketChannel[connected local=/127.0.0.1:61738 remote=localhost/127.0.0.1:14002] Error text: SocketChannel.read returned -1 (end-of-stream)

elektronrefinitiv-realtimeelektron-sdkrrtjavaeta-apielektron-transport-api
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.

@mkinnear
Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS

Upvotes
Accepted
32.2k 40 11 20

Hello @mkinnear,

Has the installation of EZD been verified with rmdstestclient test app,

does rmdstestclient connect and display streaming data?

This confirmation is much stronger then telnet, it allows to confirm that the connecting user is configured properly, and permissioned for the instrument you are requesting.

Rmdstestclient is included with ezd in folder demo, is described in Demo Tools guide or please refer to this article for more details.

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
22.1k 59 14 21

@mkinnear Can you please check EZD logs as well.

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.

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.