Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by Jaydipkumar.pansuriya · Feb 12, 2020 at 06:37 AM · treprfarfa-apiOMMjson-payload

Null Payload in OmmMsg

Hi Team,

We are migrating from RFA 7.6 to 8.1. We recently found a scenario in which Payload from OmmMsg was null, causing NullPointerException. Below is the snippet that caused the issue. From which we already verify that event and msg are not null.

byte[] data = ommItemEvent.getMsg().getPayload().getBytes()

Also this scenario was never previously observed where payload can be null.

So I want to know that in which scenario we can get null payload like any event, connection issue (which I don't see on logs), or any issue on Reuters side.

Thanks.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Feb 12, 2020 at 10:19 AM

Hi @Jaydipkumar.pansuriya

You can receive message with no payload - e.g. a StatusMsg would have no payload.

Are you trying to extract a Payload from a StatusMsg?

As demonstrated in many of the RFA examples you should always check if a payload is blank before attempting to access the data e.g.

if ( respMsg.getPayload().isBlank() )



Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Jaydipkumar.pansuriya · Feb 13, 2020 at 07:27 AM 0
Share

I am getting this issue after all basic checks like Response MsgType is OMMMsg.MsgType.REFRESH_RESP & RDMMsgTypes is RDMMsgTypes.MARKET_PRICE. I have never seen this issue while getting payload from a REFRESH response.

avatar image
REFINITIV
umer.nalla ♦♦ Jaydipkumar.pansuriya · Feb 13, 2020 at 09:41 AM 0
Share

Hi @Jaydipkumar.pansuriya

Are you consuming Refinitiv Elektron data or some internally published data?

Please provide a IPCTrace file for when the above occurs so we can investigate further. For RFA Java you will need to set the ipcTrace Flag in your config for the RSSL connection you are using e.g.

<node name="consConnection">
      <map>
           <entry key="connectionType" value="RSSL"/>
           <entry key="serverList" value="<yourServer>"/>
           <entry key="portNumber" value="14002"/>
           <entry key="mountTrace" value="true"/>
           <entry key="ipcTraceFlags" value="7"/>
           <entry key="logFileName" value="rfa.log"/>
      </map>
 </node>   

If the problem is not easily recreatable and the trace file ends up being very large, please extract the Response message and corresponding Request message which causes the above exception. You can identify the Request message from service + instrument names. Make a note of the streamID for the Request and find the Response Message with the same StreamID.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

XML Payload over OMM

Provider accepting state interaction with ADH with discourageRequestsOnOutage enabled

How can I get updates to an instrument at a set interval

RFA Closure is null when large number of request are sent at the same time

When I use OMMMsgUtil.getRMTESString to retrieve the value inside ROW80_9, I see "B".

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges