Locales/Message Bundles stopped working

Hello,

somehow, my message files no longer work.

I have already tried to find hints in the debug log but no chance, there are no error messages.

Even the JMIX internal messages are not loaded, and there are no errors in the browser console.

Image

Any Idea to debug/handle this?

Hello.

  • What preceded this issue? Maybe update or something? If it was Jmix update - please provide from-to Jmix versions.
  • Does it reproduce on a brand new Jmix project?
  • Can you provide some sample project with this issue?

Regards,
Ivan

Hey Ivan,

  1. I think it was an Update from an EAP Version to 2.3.4.
  2. Nope
  3. Sadly not, the Project is internal.

Comparing both Projects in Debug Mode:

Non-Working:
image

Fresh and Working:
image

I think it won’t load the Message Bundles but it throws no error / exception ;(

When using Debug Argument:

   CoreAutoConfiguration#messageSource matched:
      - @ConditionalOnMissingBean (types: org.springframework.context.MessageSource; SearchStrategy: all) did not find any beans (OnBeanCondition)

   MessageSourceAutoConfiguration:
      Did not match:
         - ResourceBundle did not find bundle with basename messages (MessageSourceAutoConfiguration.ResourceBundleCondition)

Hello,

Please clarify (on project with issue): does it go into io.jmix.autoconfigure.core.CoreAutoConfiguration#messageSource bean declaration and create JmixMessageSource implementation or ignore it due to condition failure?
Cause screens (wrong message source bean implementation but matched condition) are confusing a little.

Regards,
Ivan