Error in EmaConfig.xml after upgrading to version 3.8.3.0

dimple.shah
dimple.shah Newcomer
edited March 4 in EMA

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

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @dimple.shah

    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"/>
  • dimple.shah
    dimple.shah Newcomer

    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.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @dimple.shah

    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 -->

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.