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)

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    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.

Answers