[#4726] Fail fast when Configuration is queried before promotion - #5062
Open
wadhwaroh-lang wants to merge 1 commit into
Open
wadhwaroh-lang wants to merge 1 commit into
wadhwaroh-lang wants to merge 1 commit into
Conversation
Lookups during the enhancer phase only see the Spring context, so a locally registered Axon component looks missing. Reject those calls with a message that points at the @bean construction mistake.
wadhwaroh-lang
requested review from
MateuszNaKodach,
hjohn and
smcvb
and removed request for
a team
September 14, 2026 01:29
Contributor
|
thx @wadhwaroh-lang for tackling this issue with a PR, we'll have a look on it and make sure to assign it to one of our upcoming milestone if it aligns |
hatzlj
self-requested a review
September 14, 2026 16:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Configurationlookups onSpringComponentRegistrywhile enhancers are still running and local components have not been promoted to Spring bean definitionsinitialize()unchanged so optional probes still return empty@Beanconstruction that injectsConfigurationand callsgetComponent(...)too earlyFixes #4726