question

Upvotes
Accepted
1.2k 23 31 44

IllegalStateException on OMMConnectionIntSpec

With a non-interactive RFA/Java provider trying to register a OMMConnectionIntSpec before sending a login request yields the following exception:

Exception in thread "main" java.lang.IllegalStateException: Must register OMMErrorIntSpec after Login request or OMMActiveClientSessionIntSpec
	at com.reuters.rfa.internal.session.ommp.OMMProviderImpl.registerClient(Unknown Source)

Also, similarly OMMConnectionStatsIntSpec raises the same exception.

The exception text should be updated appropriately to cover these two new subscriptions.

treprfarfa-api
icon clock
10 |1500

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

Hi Steven,

There is a known issue about IllegalStateException. You can see it in RFA Java 8.0.E1 ReadMe under “Known Issues’ Section. The issue will be fixed eventually.

1 Answer

· Write an Answer
Upvote
Accepted
9.6k 10 7 7

I can reproduce the problem on the latest RFAJ(8.0.1.E1). RFAJ always throws "Must register OMMErrorIntSpec after Login request or OMMActiveClientSessionIntSpec" regardless OMMConnectionStatsIntSpec or OMMConnectionIntSpec is registered. Your feedback will be passed to the development team. Anyway, to avoid this exception, please make sure that you register them after sending a login request.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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