Some message won't be shown properly in deployed systems

Hi,

I am using version 6.10.16 of the platform and facing a strange issue. We have quite a few entities and enumerations with the appropriate labels/captions in messages.properties files in the package folder, in the global module.
There is only English, we don’t have any other localization files. The labels, field captions, enumeration labels are shown properly when the web application is run locally, through the studio. But when it gets built into separate docker images and deployed on separate environments, some of them will show only the label identifiers and some others are correct on the UI. Same happens if I check the entities using the generic Entity Inspector. I really cannot find any pattern, and I have run out of ideas.

Could you please point me out how could I investigate this issue?

image

image

Thanks for your help:
Gabor

Hi,

I have met similar problem before.
You should not place message packs in the same package to different module: e.g. web and global.
E.g. if your entities and their message pack are in the com.company.project.entity package, then you should not create another message pack in web or core module in the same package tree level. Otherwise they can get messed up in runtime, randomly.

If it is not your case, you can investigate the problem by two ways:

  1. enable TRACE logging for the AbstractMessages class, and create/change one of appenders in logback.xml to output TRACE messages:
    com.haulmont.cuba.core.sys.AbstractMessages#log

  2. Debug the problem in the environment where the problem is reproduced.
    Open debug port in the container, start application with debug enabled, connect from IDE to the application and, again, debug AbstractMessages class.

Good morning Alex!
And you were so right, that was the issue, I didn’t have to do debugging.
Thank you very much for your help!

Cheers
Gabor