Skip to content

Vaadin I18N Provider is not instantiated even though it should #38726

Answered by gsmet
ckosmowski asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah so your problem is that beans that look useless to our CDI layer are removed. That's why adding an injection point somewhere makes it work as when the injection point is detected, it says our CDI layer that the bean is consumed and shouldn't be removed.
Most probably, Vaadin is checking the beans dynamically without an injection point.

What you can do for the time being is add the @Unremovable annotation to your bean and drop the injection point you added.

I think it's also worth reporting this issue to the Vaadin extension author so that they make use of the UnremovableBeanBuildItem to mark the beans they actively consume as unremovable automatically.

HTH.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ckosmowski
Comment options

@ckosmowski
Comment options

@gsmet
Comment options

Comment options

You must be logged in to vote
2 replies
@gsmet
Comment options

Answer selected by ckosmowski
@ckosmowski
Comment options

Comment options

You must be logged in to vote
2 replies
@gvirtuoso
Comment options

@gvirtuoso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants