Issue with Production Market Data Service (using EIKON/EMA jar version 3.6.3.1)
Asking on behalf of the client.
We (Chelmer/Hobson Wealth details below) had an issue with our Production Market Data Service (using EIKON/EMA jar version 3.6.3.1) where we received an unsolicited and malformed depth message for AIR.NZ (which we have no record having requested) and we were not able to read the summary data of the message.
It seems that after having seen this problem, Refinitiv stopped responding to all of our requests until we restarted our service. We already listen for errors from Refinitiv’s side and recreate our OmmConsumer as needed, however we did not see an error status message. All communication from Refinitiv ceased after this malformed message.
refinitiv-api-servicename= ELEKTRON_DD
refinitiv-api-username= GE-A-01451364-3-8560
refinitiv-api-clientid= 212af946ebac4f4aa726dc14d86ccb045f849837
This is the stacktrace: (when we called com.refinitiv.ema.access.Map.summaryData().fieldList(); ) The malformed Map object had the values of ObjectID 231, _encodeComplete = false, _dataCode = 0, _asHex = null.
At 16:45:52 (GMT+12)
OmmInvalidUsageExceptionImpl
at com.refinitiv.ema.access.PayloadAttribSummaryImpl.fieldList()
at com.chelmer.mds.refinitiv.RefinitivDepthOmmConsumerClient.decodeDateAndTime(MarketDataDepth, Map)
at com.chelmer.mds.refinitiv.RefinitivDepthOmmConsumerClient.decodeDepthWithOrdersSnapshotMessage(String, Map)
at com.chelmer.mds.refinitiv.RefinitivDepthOmmConsumerClient.onRefreshMsg(RefreshMsg, OmmConsumerEvent)
at com.refinitiv.ema.access.ItemCallbackClientConsumer.notifyOnRefreshMsg()
at com.refinitiv.ema.access.ItemCallbackClient.processRefreshMsg(Msg, ReactorChannel, DataDictionary)
at com.refinitiv.ema.access.ItemCallbackClient.defaultMsgCallback(ReactorMsgEvent)
at com.refinitiv.eta.valueadd.reactor.Reactor.sendDefaultMsgCallback(ReactorChannel, TransportBuffer, Msg, WatchlistStreamInfo)
at com.refinitiv.eta.valueadd.reactor.Reactor.sendAndHandleDefaultMsgCallback(String, ReactorChannel, TransportBuffer, Msg, WatchlistStreamInfo, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.callbackUser(String, Msg, MsgBase, WlRequest, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.readRefreshMsg(WlStream, RefreshMsg, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.WlItemHandler.readMsg(WlStream, DecodeIterator, Msg, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.Watchlist.readMsg(WlStream, DecodeIterator, Msg, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.Reactor.processRwfMessage(TransportBuffer, Buffer, ReactorChannel, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.Reactor.performChannelRead(ReactorChannel, ReadArgs, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.Reactor.dispatchChannel(ReactorChannel, ReactorDispatchOptions, ReactorErrorInfo)
at com.refinitiv.eta.valueadd.reactor.ReactorChannel.dispatch(ReactorDispatchOptions, ReactorErrorInfo)
at com.refinitiv.ema.access.OmmBaseImpl.rsslReactorDispatchLoop(long, int)
at com.refinitiv.ema.access.OmmBaseImpl.run()
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker)
at java.util.concurrent.ThreadPoolExecutor$Worker.run()
at java.lang.Thread.run()
---
Waiting for your response.
Best Answer
-
It could be a problem in the content or in the API.
The summary data may not contain data so the application must check it before accessing the summary data. The code looks like this:
if (refreshMsg.payload().map().summaryData().dataType() != DataTypes.NO_DATA) {
FieldList fl = refreshMsg.payload().map().summaryData().fieldList();
...
}However, to verify the problem, the client needs to enable XML tracing in the EMA by adding the XmlTraceToStdout configuration in the consumer.
<Consumer>
<Name value="Consumer_4"/>
<Channel value="Channel_4"/>
<Dictionary value="Dictionary_2"/>
<XmlTraceToStdout value="1"/>
</Consumer>With this configuration, the XML trace will display on the console, and then we can verify the content retrieved by EMA.
<!-- Incoming Reactor message -->
<!-- java.nio.channels.SocketChannel[connected local=/192.168.0.184:58695 remote=us-east-1-aws-3-med.optimized-pricing-api.refinitiv.net/18.213.196.167:14002] -->
<!-- Wed Jul 06 12:28:46 ICT 2022 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<REFRESH domainType="SOURCE" streamId="2" containerType="MAP" flags="0x168 (HAS_MSG_KEY|SOLICITED|REFRESH_COMPLETE|CLEAR_CACHE)" groupId="0" State: Open/Ok/None - text: "" dataSize="881">
<key flags="0x08 (HAS_FILTER)" filter="63"/>
<dataBody>
<map flags="0x00" countHint="0" keyPrimitiveType="UINT" containerType="FILTER_LIST" >
<mapEntry flags="0x00" action="ADD" key="257" >
<filterList containerType="ELEMENT_LIST" countHint="0" flags="0x00">
<filterEntry id="1" action="SET" flags="0x00" containerType="ELEMENT_LIST">
<elementList flags="0x08 (HAS_STANDARD_DATA)">
<elementEntry name="Name" dataType="ASCII_STRING" data="ELEKTRON_DD"/>
<elementEntry name="SupportsQoSRange" dataType="UINT" data="0"/>
<elementEntry name="Capabilities" dataType="ARRAY">
<array itemLength="1" primitiveType="UINT">
<arrayEntry data="5"/>
<arrayEntry data="6"/>
<arrayEntry data="7"/>Otherwise, if the client has RDC contacts, the client can submit this issue directly to the API Support team via Contact Premium Support.
0
Answers
-
Hello @raymund tan
Please be informed that if the client is an RDC contact, the "Contact premium support" button will be available on the RTSDK Java (and C++) page.
0 -
Hi, yes we have confirmed that we received another depth message without summary data (and only in production - other envs are fine). We need the summary data to extract a timestamp so we will now drop the message and log it as malformed. Odd that it is present for 99% of depth messages.0
Categories
- All Categories
- 6 AHS
- 37 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 中文论坛