IndexOutOfBoundsException at registerClient EMA
IndexOutOfBoundsException at registerClient EMA :
API EMA 3.6.3.1
JAVA
Windows
We experience since this morning (May the 9th) an IndexOutOfBoundsException when trying to use registerClient.
The source code, library and configuration file have not changed since April, the 28th.
Can you check please ? And can you give us the reason why we got this exception ?
Here under the complete stack trace of this exception:
11:38:39 processRTDSEvents:3644 failed!
java.lang.IndexOutOfBoundsException: null
at java.nio.Buffer.checkIndex(Buffer.java:687) ~[?:?]
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:169) ~[?:?]
at com.refinitiv.eta.codec.BufferImpl.hashCode(BufferImpl.java:525) ~[eta-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.eta.codec.MsgKeyImpl.hashCode(MsgKeyImpl.java:338) ~[eta-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.eta.valueadd.reactor.WlItemAggregationKey.hashCode(WlItemAggregationKey.java:160) ~[etaValueAdd-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at java.util.HashMap.hash(HashMap.java:339) ~[?:?]
at java.util.HashMap.get(HashMap.java:552) ~[?:?]
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.findItemAggregationStream(WlItemHandler.java:1264) ~[etaValueAdd-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.handleRequest(WlItemHandler.java:265) ~[etaValueAdd-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.submitRequest(WlItemHandler.java:214) ~[etaValueAdd-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.eta.valueadd.reactor.Watchlist.submitMsg(Watchlist.java:152) ~[etaValueAdd-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.eta.valueadd.reactor.ReactorChannel.submit(ReactorChannel.java:690) ~[etaValueAdd-3.6.3.1.jar:etaj3.6.3.L2.all.rrg]
at com.refinitiv.ema.access.SingleItem.rsslSubmit(ItemCallbackClient.java:3001) ~[ema-3.6.3.1.jar:emaj3.6.3.L2.all.rrg]
at com.refinitiv.ema.access.SingleItem.open(ItemCallbackClient.java:2861) ~[ema-3.6.3.1.jar:emaj3.6.3.L2.all.rrg]
at com.refinitiv.ema.access.ItemCallbackClient.registerClient(ItemCallbackClient.java:2184) ~[ema-3.6.3.1.jar:emaj3.6.3.L2.all.rrg]
at com.refinitiv.ema.access.OmmBaseImpl.registerClient(OmmBaseImpl.java:468) ~[ema-3.6.3.1.jar:emaj3.6.3.L2.all.rrg]
at com.refinitiv.ema.access.OmmConsumerImpl.registerClient(OmmConsumerImpl.java:142) ~[ema-3.6.3.1.jar:emaj3.6.3.L2.all.rrg]
at belfius.firt.rtdsdownload.RTConsumerLite.sendOneRequest(RTConsumerLite.java:1850) ~[belfius.firt.rtdsdownload-1.0.0.jar:1.0.0]
at belfius.firt.rtdsdownload.RTConsumerLite.sendAllActiveRequestsToRefinitiv(RTConsumerLite.java:1908) ~[belfius.firt.rtdsdownload-1.0.0.jar:1.0.0]
at belfius.firt.rtdsdownload.RTConsumerLite.sendSubscriptionProcess(RTConsumerLite.java:582) ~[belfius.firt.rtdsdownload-1.0.0.jar:1.0.0]
at belfius.firt.rtdsdownload.RTConsumerLite.processRTDSEvents(RTConsumerLite.java:3592) ~[belfius.firt.rtdsdownload-1.0.0.jar:1.0.0]
at belfius.firt.rtdsdownload.RTConsumerLite.mainProcess(RTConsumerLite.java:3679) ~[belfius.firt.rtdsdownload-1.0.0.jar:1.0.0]
at belfius.firt.rtdsdownload.RTRealTimeServer.main(RTRealTimeServer.java:209) ~[belfius.firt.rtdsdownload-1.0.0.jar:1.0.0]
11:38:39 processRTDSEvents:3654 RTConsumerLite.finally ....
Best Answer
-
Hi,
Please , consider this issue as closed as i discovered a very strange behaviour at the start of my process that explain why the regisiterClient has thrown a IndexOutOfBoundsException.
It is our fault.
My apologize,
Jean,
0
Answers
-
Hello @jean.questiaux
Thank you for contacting us. To let us check the issue in more detail, could you please give us the following information?
- The snippet code that creates a request message and calls registerClient() method
- Java SDK version
- Are you connecting to the local RTDS or RTO (cloud)?
- Number of items that the application subscribes to
The EMA 3.6.3.1 (RTSDK 2.0.3.L2) is quite old, so if you can replicate the issue on demand, I recommend you retest with the latest version of the SDK. You can download the latest SDK version from the RTSDK Java download page.
0 -
Java version is
java version "11.0.12" 2021-07-20 LTS
belfius.firt.rtdsdownload.zip is a the snippet asked with the call to registerClient
I am connecting to a local RTDS. see TREP connection.
RTDSRealTimeServer.png
For a week (28/4 till last FRiday), i use RTDS without problem to this PRD server with same credentials, source code and configuration.
I will upgrade my EMA lib in user acceptance to use this one.
Thanks,
0 -
Hello @jean.questiaux
I have checked the file. The application sends a single item message with View multiple times. The EMA's related code looks fine.
For further investigation, I highly recommend you contact the Real-Time APIs support team (RDC) to investigate this issue in detail. You can submit a support ticket to the team via the "Contact premium support" button on the RTSDK Java page.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛