Have created server side solution using EMA API for fetching prices. The service gets stalled aft...

...er sending batch request with exception noted below. The issue occurs intermittently and required restart of application.
The issue is not reproducable, occuring intermittently. The program gets halted and requires restart of full application.
Getting below Exception:
2017-06-07T11:58:10.217+05:30 [APP/0] [ERR] Exception in thread "pool-2-thread-1" java.lang.NullPointerException
2017-06-07T11:58:10.218+05:30 [APP/0] [ERR] at com.thomsonreuters.ema.access.SingleItem.remove(Unknown Source)
2017-06-07T11:58:10.218+05:30 [APP/0] [ERR] at com.thomsonreuters.ema.access.ItemCallbackClient.defaultMsgCallback(Unknown Source)
2017-06-07T11:58:10.218+05:30 [APP/0] [ERR] at com.thomsonreuters.ema.access.ItemCallbackClient.processRefreshMsg(Unknown Source)
2017-06-07T11:58:10.218+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.Reactor.sendDefaultMsgCallback(Reactor.java:808)
2017-06-07T11:58:10.218+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.Reactor.sendAndHandleDefaultMsgCallback(Reactor.java:823)
2017-06-07T11:58:10.219+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.WlItemHandler.callbackUser(WlItemHandler.java:2663)
2017-06-07T11:58:10.219+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.WlItemHandler.readMsg(WlItemHandler.java:1704)
2017-06-07T11:58:10.219+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.WlItemHandler.readRefreshMsg(WlItemHandler.java:1950)
2017-06-07T11:58:10.219+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.Watchlist.readMsg(Watchlist.java:277)
2017-06-07T11:58:10.219+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.Reactor.dispatchAll(Reactor.java:3217)
2017-06-07T11:58:10.219+05:30 [APP/0] [ERR] at com.thomsonreuters.upa.valueadd.reactor.Reactor.performChannelRead(Reactor.java:1750)
2017-06-07T11:58:10.220+05:30 [APP/0] [ERR] at com.thomsonreuters.ema.access.OmmBaseImpl.rsslReactorDispatchLoop(Unknown Source)
2017-06-07T11:58:10.220+05:30 [APP/0] [ERR] at com.thomsonreuters.ema.access.OmmBaseImpl.run(Unknown Source)
2017-06-07T11:58:10.220+05:30 [APP/0] [ERR] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-06-07T11:58:10.220+05:30 [APP/0] [ERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-06-07T11:58:10.220+05:30 [APP/0] [ERR] at java.lang.Thread.run(Thread.java:748)
Any leads on this?
Also the exchange rate we are fetching from EMA gives pricision upti 4 decimal places only. The same we get from RFA with higher rate of precision, Any suggestion how can we increase the precison using EMA, since our calculations are getting impacted.
Best Answer
-
Update: The client cannot replicate this issue after upgrade the API to Elektron SDK 1.1.0
0
Answers
-
What is the EMA Java version that encounter problems?
- For the exception issue, could you please give us a snippet code of your application that interacts with EMA Java
- For the decimal issue, could you please give us example RICs that encounter the problem?
0 -
This is the snippet that registers the batch request with EMA :
RFAMarketDataResponse dataResponse = null;
try {
RfaClient appClient = new RfaClient(countDown);
ReqMsg reqMsg = createBatchRequestMsg(rfaRequest);
if (null == ommConsumer) {
throw new RealTimeDataNotAvailableException(
REAL_TIME_DATA_AVAILABLE.getMessage(), null);
}
LOGGER.info("Calling EMA service started on: " + new Date());
long startMillis = System.currentTimeMillis();
ommConsumer.registerClient(reqMsg, appClient);
boolean taskCompleted = countDown
.await(marketDataConfig.rfaTimeOut, TimeUnit.SECONDS);
if (!taskCompleted) {
LOGGER.error(
"Maximum time elapsed for the EMA service, "
+ "Please check the curernt timeout limit: "
+ marketDataConfig.rfaTimeOut);
throw new BusinessException(
MessageCodes.REQUEST_TIMEOUT.getCode());
}
dataResponse = appClient.getResponse();And this is the one that captures the response : callback and decodes the response:
MarketDataField dataField = new MarketDataField();
We are creating single ommconsumer at app start up that makes the connection and serves multiple requests.
try {
String name = refreshMsg.name();
dataField.setItemName(name);
if (DataType.DataTypes.FIELD_LIST == refreshMsg
.payload()
.dataType()) {
decode(refreshMsg.payload().fieldList(), dataField);
}
LOGGER.debug("Market Data response received: "
+ System.currentTimeMillis());
} catch (BusinessException e) {
dataField.setError(new MarketDataError(
MessageCodes.UNKNOWN_ERROR.getCode(), null));
} finally {
countDown.countDown();
}We are using Elektron-SDK1.0.8.java
0 -
@wasin.w comment added
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛