question

Upvotes
Accepted
3 0 0 3

offstream post: Failed to uninitialize OmmBaseImpl

When we do an offstream post, we get:

Text: Failed to uninitialize OmmBaseImpl (_executor.awaitTermination() timed out).

Create OmmConsumer, register login client, post message after refresh, get ack message, call ommConsumerUninitalize ends with the above error.

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

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

Upvotes
Accepted
3 0 0 3

Thanks for the update.

The code is based on the offstream post example.

Post messages are accepted and acknowledged with the ackMsg callback, then after a call to uninitialise is triggered and result in error.

The code runs in a java application hence a thread is created for the post, so when the uninitialize method is reached there is an active thread.

icon clock
10 |1500

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

Hello @niz,

I hear what you observe and understand the scenario in theory.

I have run the example several times (MS Win, ESDK 1.5, EMA Java consumr example 341) and was unable to reproduce "Text: Failed to uninitialize OmmBaseImpl (_executor.awaitTermination() timed out)." in uninit.

Next, I have shortened sleep/run from 60000 to 6000 and to 600, and still I could not reproduce.

I have also posted to invalid RIC, got a Nack, but still no such error.

What version of SDK do you test with? Anything special that you do?

Basically, to try to understand, we would need to be able to reproduce.

The code is running in a web application, as an example the post request comes from a web request, that is passed to a Class that has a client implementation in it, and it does post, after the ack is recieved it does uninitialize.

The REST example that is on refinitiv could be used, extended to accpet a post request.


The code uses EMA libs 3.5.1.0

Hello @niz,

My understanding now is, that you are able to use EMA postiing example 341, that came with SDK 1.5, to post successfully, and to uninitialize without issues?

Are you able to provide a minimal example, that we can run to reproduce the issue, or a way, to reproduce it with the standard example from SDK?

Iif the issue is with Realtime SDK, this will help us to troubleshoot and fix the issue, if the issue is with your custom app, it will help you to get to the bottom of the issue and fix it.

Show more comments
Upvotes
23k 22 9 14

Hello @niz,

As you are work with EMA Java, I would like to suggest:

1. Double-check that your recipient ( is it a custom provider) accepts posts.

2. In your Refinitiv Realtime SDK -> EMA -> Examples, select simple example 341, MarketPrice OffStream Post, and retest,

To confirm if by using the example you are able to post successfully and and consumer.uninitialize() without errors. If that works, then next you can modify the working example to implement your custom use case.

icon clock
10 |1500

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

Click below to post an Idea Post Idea