Hi,
We are developing an adaptor application for Reuter Elektron in Integral.
At the time of login, we are creating an instance of OmmConsumer object in our application and doing subscription and unsubcription using that consumer object. At the time of logoff, we are calling the uninitialize() api on the consumer object.
The adaptor instance is up but not logged in to the Reuter Elektron. At the next login when adaptor trying to create the consumer object again using API EmaFactory.createOmmConsumer(config.consumerName(consumerName).username(userName).password(userPwd));
At this time our application is receiving the Channel_Up event for the new consumer object created but immediately after we are getting OmmException and login is not happening. Below is the Exception:
2020-01-24 06:37:50,657 INFO Thread-30 OmmConsumerImpl loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_4
Instance Name Consumer_3_2
Component Version ads3.2.1.L1.linux.tis.rrg 64-bit
loggerMsgEnd
2020-01-24 06:38:33,137 ERROR Thread-30 OmmConsumerImpl loggerMsg
ClientName: Consumer_3_2
Severity: Error
Text: login failed (timed out after waiting 45000 milliseconds) for :)
loggerMsgEnd
Exception Type='OmmInvalidUsageException', Text='login failed (timed out after waiting 45000 milliseconds) for :)'
at com.thomsonreuters.ema.access.OmmBaseImpl.ommIUExcept(OmmBaseImpl.java:1362)
at com.thomsonreuters.ema.access.OmmBaseImpl.handleLoginReqTimeout(OmmBaseImpl.java:1152)
at com.thomsonreuters.ema.access.OmmConsumerImpl.handleAdminDomains(OmmConsumerImpl.java:445)
at com.thomsonreuters.ema.access.OmmBaseImpl.initialize(OmmBaseImpl.java:270)
at com.thomsonreuters.ema.access.OmmConsumerImpl.<init>(OmmConsumerImpl.java:43)
at com.thomsonreuters.ema.access.EmaFactory.createOmmConsumer(EmaFactory.java:165)
at com.integral.adaptor.RTRELEKTRON.comm.ETRON.ETRONSessionManager$CreateMktDataSession.run(ETRONSessionManager.java:326)
at java.lang.Thread.run(Thread.java:745)
Now if we remove the uninitialize call at the time of logoff, then multiple login and logout will work properly and on each login a new instance of consumer is being provided and
the said exception is also not coming. But in this case we are continuously seeing the below exceptions being posted.
2020-01-24 06:34:40,678 WARN I/O dispatcher 5 OmmConsumerImpl loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received Channel warning event on channel Channel_4
Instance Name Consumer_3_3
RsslReactor @21e8abe9
RsslChannel @5d95ecf6
Error Id 0
Internal sysError 0
Error Location null
Error text Failed to request authentication token with refresh token for user: GE-A-00336937-3-2527. Will try again with user name and password.
loggerMsgEnd
2020-01-24 06:35:20,032 WARN I/O dispatcher 7 OmmConsumerImpl loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received Channel warning event on channel Channel_4
Instance Name Consumer_3_4
RsslReactor @7ed5f880
RsslChannel @37e4e5ce
Error Id 0
Internal sysError 0
Error Location null
Error text Failed to request authentication token with refresh token for user: GE-A-00336937-3-2527. Will try again with user name and password.
loggerMsgEnd
This exceptions are being posted for the consumer instances which are already logged out.
Please suggest us how to handle it.