question

Upvotes
Accepted
3 0 0 3

could not construct configuration from file when publish data to Reuters

hi Team,

we have encountered an issue when we published data to Reuters at HKT 2024-04-19 18:46:01.

the issue message:


2024-04-19 18:46:01(no unique labels)

com.refinitiv.ema.access.OmmInvalidConfigurationExceptionImpl: could not construct configuration from file [/tmp/EmaConfig.xml]; working directory was [/opt/disk1/fot/deploy/reuters-service_fr_gbl25047200/reuters-service_1.0.31_fr_gbl25047200_20240312233559]


another question:

now we using same EMA ID for multiple site, is it ok?

would you help to provide some advise for me when you are free? thanks a lot.

ema-api#product
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @denny.w.h.zhong ,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thank you,

AHS

Upvotes
Accepted
79.4k 253 52 74

@denny.w.h.zhong

I got the same error if the syntax in the EmaConfig.xml is incorrect.

[Fatal Error] EmaConfig.xml:13:1: XML document structures must start and end within the same entity.
could not construct configuration from file [c:\windows\/EmaConfig.xml]; working directory was [C:\D_DRIVE\temp\Real-Time-SDK-2.1.2.L1.java\Real-Time-SDK-2.1.2.L1.java\setup\RTSDK-2.1.2.L1.java.rrg\RTSDK-2.1.2.L1.java.rrg\Java\Ema\Examples\src\main\java]

It can happen when the application calls the EmaFactory.createOmmConsumerConfig method.

Please share the /tmp/EmaConfig.xml file from the machine that cause this error.

I will test it on my machine.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi Jirapongse,

Thanks a lot for your reply again, your reply is very valuable!

i will test it on my side.

Upvotes
79.4k 253 52 74

@denny.w.h.zhong

Thank you for reaching out to us.

According to the error, the API was unable to load the EMA configuration file at /tmp/EmaConfig.xml.

2024-04-19 18:46:01(no unique labels)
com.refinitiv.ema.access.OmmInvalidConfigurationExceptionImpl: could not construct configuration from file [/tmp/EmaConfig.xml]; working directory was [/opt/disk1/fot/deploy/reuters-service_fr_gbl25047200/reuters-service_1.0.31_fr_gbl25047200_20240312233559]

You may check the content in that file or verify the permission of that file.

What is EMA ID? Is it a DACS username or RTO account(client id/username and client secret/password).

If it is a DACS username, it depends on DACS settings. If it is a RTO account, please refer to this Account authorization V1 to V2 migration cheat sheet account article.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi Jirapongse,

thanks for your feedback!

I have checked the file and not found any problem, this issue not happened for each publication, in fact, this issue occurs for the first time. however it resume normally after this time.

so if the file is invalid or not have permission, it should always throw this issue, right?

according to your explanation, i think it is not RTO account, should be DACS username

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.