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 alan.bain · Jun 20, 2017 at 05:05 AM · RFAJpostingconsumerommpool

RFAJ gives "Released MSG into wrong OMMPool" error message on the encoder.initialize call

Simple OMM Posting consumer application; first POST works, in preparing the next post the call to encoder.initialize gives this error

com.reuters.rfa.omm.OMMException

: Released MSG into wrong OMMPool

at com.reuters.rfa.internal.rwf.RwfPool.release(Unknown Source)

at com.reuters.rfa.internal.rwf.RwfEncoder.clear(Unknown Source)

at com.reuters.rfa.internal.rwf.RwfEncoder.initialize(Unknown Source)

which I cannot find documented anywhere

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.

3 Replies

  • Sort: 
avatar image
Best Answer
Answer by alan.bain · Jul 05, 2017 at 08:45 AM

Finally tracked this down. I was releasing the POST message to the pool

OMMMsg msg = (OMMMsg) encoder.getEncodedObject();

....

ommpool.releaseMsg(msg);

This then caused an exception the next time I tried to call

encoder.initialize(OMMTypes.MSG, 1000);

Comment
umer.nalla

People who like this

1 Show 0 · 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
REFINITIV
Answer by umer.nalla · Jun 20, 2017 at 06:07 AM

Hi @alan.bain

Can you recreate this using one of our RFA Java examples e.g. com.reuters.rfa.example.omm.postingConsumer ?

I have a vague recollection of another developer having a similar issue when they had acquired two OMMEncoders and accidentally transposed them in his code in one location.

e.g. the above example has a _payloadOMMEncoder and _postOMMEncoder declared....

Comment

People who like this

0 Show 0 · 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
Answer by alan.bain · Jun 20, 2017 at 08:14 AM

It's definitely the same encoder & pool being used in both times. I don't have the separate _payload and _post encoders. Turning on IPC tracing I see the first message going out

---DATA TRACE---

MESSAGE

Msg Type: MsgType.POST

Msg Model Type: MARKET_PRICE

Indication Flags: POST_INIT | POST_COMPLETE

Hint Flags: HAS_ATTRIB_INFO | HAS_SEQ_NUM | HAS_PUBLISHER_INFO

SeqNum: 1

Publisher Address: 0xa65fce0

Publisher Id: 18028

AttribInfo

ServiceId: 8032

Name: EURUSDV1M=BBG

NameType: 1 (RIC)

Payload: 44 bytes

FIELD_LIST

FIELD_ENTRY 2: 40

FIELD_ENTRY 4: 02

FIELD_ENTRY 38: 190c07d8

FIELD_ENTRY 22: 40a317999999999a

FIELD_ENTRY 25: 40a3180000000000

Comment

People who like this

0 Show 1 · 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
REFINITIV
Nipat Kunvutipongsak ♦♦ · Jun 21, 2017 at 02:48 AM 0
Share

Can I get the source code to reproduce this problem in my environment?

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 >
9 People are following this question.

Related Questions

What is this state meant by "(409) String Too Big"

Different response for item not available

Issue using service groups to return realtime or delayed data depending on user access

IndexOutOfBoundsException publishing a large RFA SymbolList

RFA login request

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges