IndexOutOfBoundsException publishing a large RFA SymbolList

Options

The following exception appears in RFA/Java when publishing a symbol list with ~3,000 instruments as the constituents of NYSE:

2016-06-22 13:04:19,034 ERROR [main] Shinboru(Shinboru.java:466): catching
java.lang.IndexOutOfBoundsException
at com.reuters.io.ArrayWriter.checkRemaining(Unknown Source)
at com.reuters.io.DataArrayWriterWireFormatV1.writeByte(Unknown Source)
at com.reuters.io.DataArrayWriter.writeByte(Unknown Source)
at com.reuters.rfa.internal.rwf.RwfEncoder.encodeFieldListInit(Unknown Source)
at Shinboru.OnRequest(Shinboru.java:510)
at Provider.republish(Provider.java:749)
at Provider.OnDictionaryResponse(Provider.java:735)
at Provider.OnRespMsg(Provider.java:588)
at Provider.OnOMMItemEvent(Provider.java:565)
at Provider.processEvent(Provider.java:534)
at com.reuters.rfa.internal.common.ResponseMessage.dispatchToClient(Unknown Source)
at com.reuters.rfa.internal.common.ResponseMessage.dispatch(Unknown Source)
at com.reuters.rfa.internal.common.EventQueueImpl.localDispatch(Unknown Source)
at com.reuters.rfa.internal.common.EventQueueImpl.dispatch(Unknown Source)
at Shinboru.mainloop(Shinboru.java:460)
at Shinboru.run(Shinboru.java:432)
at Shinboru.main(Shinboru.java:570)

Re-implementing the provider in UPA/Java did not encounter similar issues.

RFA/Java provider source code, UPA/Java provider source code (please note the line numbers differ from the above trace).

edit: With additional trace the symbol list fails at item #2957.

edit #2: Tried with increased buffer 65,535 bytes to no avail.

The actual source code used above, basically adds DSS/REST request: shinborujava.txt

Tagged:

Best Answer

  • Lars-at-Addicticks
    Answer ✓

    What happens if your increase the size of your encoder ?

    Currently you have it at 5000 bytes. (OMM_PAYLOAD_SIZE)

Answers