EMA:dictionary retrieval failed (timed out after waiting 45000 milliseconds) for 192.168.1.133:14002

loggerMsg

ClientName: EmaConsumer_15

Severity: Error

Text: dictionary retrieval failed (timed out after waiting 45000 milliseconds) for 192.168.1.133:14002)

loggerMsgEnd

three question:

one:Why does this happen?

two:How do I catch this exception error?

three:How to handle this error? (Code examples would be great)

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @zhangqingfeng

    It is a dictionary request timeout, as mentioned on this thread. You may need to check the error in the LPC log file.

    This error is thrown in the OmmInvalidUsageException with the OmmInvalidUsageException.ErrorCode.DICTIONARY_REQUEST_TIME_OUT error code. You can catch this exception in the code.

    1658129682191.png

    To handle it, you need to create a new consumer. Otherwise, you can load dictionary from the local files instead.

    <Dictionary>
                <Name value="Dictionary_2"/>
                <DictionaryType value="DictionaryType::FileDictionary"/>
                <!-- dictionary names are optional: defaulted to RDMFieldDictionary and enumtype.def -->
                <RdmFieldDictionaryFileName value="./RDMFieldDictionary"/>
                <EnumTypeDefFileName value="./enumtype.def"/>
            </Dictionary>