Plz Help! : Internal Error. Failed to allocated TransportBuffer in TunnelItem.submitSubItemMsg​

lenny.cm
lenny.cm Newcomer
ClientName: TunnelItem   
Severity: Error    
Text:    Internal Error. Failed to allocated TransportBuffer in TunnelItem.submitSubItemMsg

Best Answer

  • ohm.cm
    ohm.cm Newcomer
    Answer ✓

    Hello Khun @Jirapongse,

    I'm Ohm from the same team with @lenny.cm.

    How can we call the value of GuaranteedOutputBuffers in EmaConfig.xml to be used in tsr in our code?

    This is our code when creating a tunnel connection

        val consumer = EmaFactory
          .createOmmConsumer(
            EmaFactory
              .createOmmConsumerConfig("/path/to/EmaConfig.xml")
              .tunnelingKeyStoreFile(emaConfig.privateKey)
              .tunnelingKeyStorePasswd(emaConfig.privateKeyPassword)
          )

        val tsr: TunnelStreamRequest = EmaFactory
          .createTunnelStreamRequest()
          .classOfService(
            EmaFactory.createClassOfService
              .authentication(EmaFactory.createCosAuthentication.`type`(CosAuthentication.CosAuthenticationType.NOT_REQUIRED))
              .dataIntegrity(EmaFactory.createCosDataIntegrity.`type`(CosDataIntegrity.CosDataIntegrityType.RELIABLE))
              .flowControl(EmaFactory.createCosFlowControl.`type`(CosFlowControl.CosFlowControlType.BIDIRECTIONAL).recvWindowSize(1200))
              .guarantee(EmaFactory.createCosGuarantee.`type`(CosGuarantee.CosGuaranteeType.NONE))
          )
          .domainType(EmaRdm.MMT_SYSTEM)
          .name("tunnel")
          .serviceName("DDS_TRCE")

        //tunnel stream handle (a.k.a. parentHandle)
        val tunnelStreamHandle = consumer.registerClient(tsr, this)


    And this is our EmaConfig.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <EmaConfig>
    <!-- see EMAJ_ConfigGuide.pdf for details -->
    <ConsumerGroup>
        <DefaultConsumer value="Consumer_TRCC"/>
        <ConsumerList>
            <Consumer>
                <Name value="TRCC_CONSUMER"/>
                <Channel value="Channel_TRCC"/>
                <Dictionary value="Dictionary_TRCC"/>
                <XmlTraceToStdout value="0" />
            </Consumer>
        </ConsumerList>
    </ConsumerGroup>
    <ChannelGroup>
        <ChannelList>
            <Channel>
                <Name value="Channel_TRCC"/>
                <ChannelType value="ChannelType::RSSL_ENCRYPTED"/>
                <TcpNodelay value="1"/>
                <GuaranteedOutputBuffers value="5000"/>
                <ConnectionPingTimeout value="30000"/>
                <Host value="contrib01-apac1.platform.refinitiv.biz"/>
                <Port value="443"/>
            </Channel>
        </ChannelList>
    </ChannelGroup>
    <DictionaryGroup>
        <DictionaryList>
            <Dictionary>
                <Name value="Dictionary_TRCC"/>
                <DictionaryType value="DictionaryType::FileDictionary"/>
                <RdmFieldDictionaryFileName value="/path/to/RDMFieldDictionary"/>
                <EnumTypeDefFileName value="/path/to/enumtype.def"/>
            </Dictionary>
        </DictionaryList>
    </DictionaryGroup>
    </EmaConfig>


Answers