Error in EmaConfig.xml after upgrading to version 3.8.3.0

Hi team,
After upgrading to EMA_API version 3.8.3.0 from version 3.7.1.0 we are facing this error in our application while starting up:
aused by: com.refinitiv.ema.access.OmmInvalidConfigurationExceptionImpl:
Error validating XML configuration:
cvc-enumeration-valid: Value 'RSSL_SOCKET' is not facet-valid with respect to enumeration '[ChannelType::RSSL_SOCKET, ChannelType::RSSL_WEBSOCKET, ChannelType::RSSL_ENCRYPTED, ChannelType::RSSL_HTTP, ChannelType::RSSL_RELIABLE_MCAST, ChannelType::RSSL_WEBSOCKET]'. It must be a value from the enumeration.
at com.refinitiv.ema.access.EmaConfigBaseImpl.oommICExcept(EmaConfigImpl.java:71) ~[ema-3.8.3.0.jar:emaj3.8.3.L1.all.rrg]
at com.refinitiv.ema.access.ConfigReader$XMLConfigReader.loadFile(ConfigReader.java:965) ~[ema-3.8.3.0.jar:emaj3.8.3.L1.all.rrg]
at com.refinitiv.ema.access.EmaConfigImpl.readConfiguration(EmaConfigImpl.java:173) ~[ema-3.8.3.0.jar:emaj3.8.3.L1.all.rrg]
at com.refinitiv.ema.access.EmaConfigImpl.<init>(EmaConfigImpl.java:159) ~[ema-3.8.3.0.jar:emaj3.8.3.L1.all.rrg]
at com.refinitiv.ema.access.OmmConsumerConfigImpl.<init>(OmmConsumerConfigImpl.java:26) ~[ema-3.8.3.0.jar:emaj3.8.3.L1.all.rrg]
at com.refinitiv.ema.access.EmaFactory.createOmmConsumerConfig(EmaFactory.java:430) ~[ema-3.8.3.0.jar:emaj3.8.3.L1.all.rrg]
at com.msci.eqb.dss.ds.refinitiv.RefinitivDataServiceImpl.initContext(RefinitivDataServiceImpl.java:118) ~[classes/:?]
at com.msci.eqb.dss.ds.refinitiv.RefinitivDataServiceImpl.<init>(RefinitivDataServiceImpl.java:107) ~[classes/:?]
at com.msci.eqb.dss.config.RefinitivDataServiceConfig.streamingDataService(RefinitivDataServiceConfig.java:35) ~[classes/:?]
at com.msci.eqb.dss.config.RefinitivDataServiceConfig$$SpringCGLIB$$0.CGLIB$streamingDataService$0(<generated>) ~[classes/:?]
at com.msci.eqb.dss.config.RefinitivDataServiceConfig$$SpringCGLIB$$FastClass$$1.invoke(<generated>) ~[classes/:?]
Please help to fix it. I have attached the EmaConfig file which was being used with version 3.7.1.0
Answers
-
Thank you for reaching out to us.
The valid channel types in the configuration are:
- ChannelType::RSSL_SOCKET
- ChannelType::RSSL_HTTP
- ChannelType::RSSL_ENCRYPTED
- ChannelType::RSSL_WEBSOCKET
From the attached file, you are using RSSL_SOCKET which is incorrect.
<Name value="IE1Channel"/>
<!-- ChannelType possible values are: -->
<!-- ChannelType::RSSL_SOCKET - TCP IP connection type -->
<!-- ChannelType::RSSL_HTTP - Http tunnel connection type -->
<!-- ChannelType::RSSL_ENCRYPTED - Https tunnel connection type -->
<ChannelType value="RSSL_SOCKET"/>It should be:
<ChannelType value="ChannelType::RSSL_SOCKET"/>
0 -
Hi @Jirapongse,
Thanks for your prompt response.
I am also getting one more error - com.refinitiv.ema.access.OmmInvalidConfigurationExceptionImpl: OmmConsumerConfigImpl::consumerName parameter [1] is an non-existent consumer name
I have passed the consumer name but still I am getting it. Please help me to fix it.0 -
According to the error, it seems that you passed "1" as a consumer name.
I ran this code.
consumer = EmaFactory.createOmmConsumer(config.consumerName("TEST"));
I got this error.
OmmConsumerConfigImpl::consumerName parameter [TEST] is an non-existent consumer name
You need to use the name that is in the configuration file. For example:
<Consumer>
<Name value="IEStreamingConsumer"/> <!-- Name is mandatory -->0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 642 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 89 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛