Uncaught NPE in EMA thread

We are working with below EMA SDK:
<dependency>
<groupId>com.refinitiv.ema</groupId>
<artifactId>ema</artifactId>
<version>3.6.3.1</versio
</dependency>
These days we found some uncaught NulllPointerException in not .log file but standard output.
Exception in thread "pool-25-thread-1" java.lang.NullPointerException
at com.refinitiv.ema.access.ItemCallbackClientConsumer.notifyOnAllMsg(ItemCallbackClient.java:2555)
at com.refinitiv.ema.access.ItemCallbackClient.processRefreshMsg(ItemCallbackClient.java:1788)
at com.refinitiv.ema.access.ItemCallbackClient.defaultMsgCallback(ItemCallbackClient.java:1626)
at com.refinitiv.eta.valueadd.reactor.Reactor.sendDefaultMsgCallback(Reactor.java:1942)
at com.refinitiv.eta.valueadd.reactor.Reactor.sendAndHandleDefaultMsgCallback(Reactor.java:1957)
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.callbackUser(WlItemHandler.java:2935)
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.readRefreshMsg(WlItemHandler.java:2186)
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.readMsg(WlItemHandler.java:1900)
at com.refinitiv.eta.valueadd.reactor.Watchlist.readMsg(Watchlist.java:292)
at com.refinitiv.eta.valueadd.reactor.Reactor.processRwfMessage(Reactor.java:2995)
at com.refinitiv.eta.valueadd.reactor.Reactor.performChannelRead(Reactor.java:3317)
at com.refinitiv.eta.valueadd.reactor.Reactor.dispatchChannel(Reactor.java:2529)
at com.refinitiv.eta.valueadd.reactor.ReactorChannel.dispatch(ReactorChannel.java:601)
at com.refinitiv.ema.access.OmmBaseImpl.rsslReactorDispatchLoop(OmmBaseImpl.java:1510)
at com.refinitiv.ema.access.OmmBaseImpl.run(OmmBaseImpl.java:1652)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
After discussing with Elektron Supports , we assume it should be a EMA SDK Bug.
Please help us check it out.
Thanks.
Best Answer
-
I checked the call stack and found that it is similar to the issue that has been fixed in RTSDK Java 2.0.5.L1 aka EMA/ETA 3.6.5.L1 aka 3.6.5.0.
[Case Number: 11101002] - [RTSDK-6069] - Fixed null pointer exception with request timeout
Please upgrade to the latest version of EMA.
<dependency>
<groupId>com.refinitiv.ema</groupId>
<artifactId>ema</artifactId>
<version>3.6.5.0</version>
</dependency>0
Answers
-
Hi @pengshuolin,
Can you please update the EMA to latest version and try again - the dev team has fixed two NPE bugs in the SDK.
For the team to investigate, they would need to be able to reproduce the exception. Can you also document the steps required that led to this uncaught null pointer.
0 -
Hi @Gurpreet ,
Such situation occurred when there are some ADS error.
And we thing the client should notify user properly instead just throwing the NEP and exit the thread.
0 -
0
-
Hi @pengshuolin,
I agree, if it is an exception condition, it should be raised up to the application layer for user code to react to it. Unfortunately, it becomes very hard for dev team to advise or fix an issue which they are unable to reproduce. So, I would recommend that you capture all the logs from EMA and ADS when it happens next time.
The Realtime SDK is supported by development team at this github site - https://github.com/Refinitiv/Real-Time-SDK. You can directly interact with developers by opening an issue there.
0 -
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 697 Datastream
- 1.5K DSS
- 632 Eikon COM
- 5.2K Eikon Data APIs
- 13 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 5 Trading API
- 2.9K Elektron
- 1.4K EMA
- 256 ETA
- 563 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 753 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛