[MAGNOLIA-7537] Random ClassCastException upon Magnolia install Created: 07/May/19  Updated: 08/May/19

Status: Open
Project: Magnolia
Component/s: core
Affects Version/s: 5.7.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Federico Grilli Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

While doing a final QA test on 5.7.3 CE, the following exception has been observed.
Despite the error, installation went through and Magnolia seemed to start up and work fine.
I could not reproduce it on a second run. Some claim to have seen the same exception occasionally.

It may be a time-based race condition, possibly related to the usage of the JR workspace observation mechanism during install's initial phase.

2019-05-07 13:32:55,185 INFO  info.magnolia.cms.i18n.DefaultMessagesManager     : Loading i18n configuration - /server/i18n/system
2019-05-07 13:32:55,209 ERROR org.apache.jackrabbit.core.ItemManager            : cbed08d7-10ae-43ef-96c7-8661dea74ae3: failed to determine path to
2019-05-07 13:32:55,240 ERROR info.magnolia.cms.i18n.DefaultMessagesManager     : Failed to load i18n configuration - /server/i18n/system
java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to info.magnolia.cms.i18n.LocaleDefinition
    at info.magnolia.cms.i18n.DefaultMessagesManager.load(DefaultMessagesManager.java:213) [magnolia-core-5.7.3.jar:?]
    at info.magnolia.cms.i18n.DefaultMessagesManager.reload(DefaultMessagesManager.java:253) [magnolia-core-5.7.3.jar:?]
    at info.magnolia.cms.i18n.DefaultMessagesManager$3.onEvent(DefaultMessagesManager.java:233) [magnolia-core-5.7.3.jar:?]
    at org.apache.jackrabbit.core.observation.EventConsumer.consumeEvents(EventConsumer.java:249) [jackrabbit-core-2.18.1.jar:2.18.1]
    at org.apache.jackrabbit.core.observation.ObservationDispatcher.run(ObservationDispatcher.java:161) [jackrabbit-core-2.18.1.jar:2.18.1]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]

Generated at Mon Feb 12 04:24:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.