-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some components trigger BeanPostProcessorChecker warning "is not eligible for getting processed by all BeanPostProcessors" [INT-3640] #7602
Comments
Gabriele Del Prete commented As an additional remark: in a slightly more complicate app using JPA and a transaction manager, the warnings are emitted for transaction-related beans too, which is more scary. |
Artem Bilan commented Gabriele Del Prete, sorry for not getting you so quickly. So, what is your concern? Sorry, I don't see a bug |
Artem Bilan commented Regarding JPA and And I guess that |
Gabriele Del Prete commented No, just the standard Spring Framwork support for JPA (EntityManagerFactoryBean and the JPA transaction manager, plus Jpa Outbound Adapter I'm building manually as the Java DSL does not give support for that at the moment):
It looks like the application is working, just wanted to signal that it looks like IntegrationRegistrar is triggering those warnings. You can downgrade or close this issue if you want. |
Artem Bilan commented Gabriele Del Prete, thank you very much for pointing this! Even if it is just an One of our issues on the matter looks like:
The The same we have with I think we really have to investigate our code and get rid of such a wrong usage, but for those JPA and TX issues we need an input from Spring Core team: maybe there we should raise a similar issue, too. And one more point: since we see that only with our internal beans and they are really designed for the infrastructure I don't see reason to worry very much, because it was here for a long time already and I can't figure out any case how they can be adjusted with some custom |
Artem Bilan commented One more progress: I see that issue appears only when we have |
Artem Bilan commented
|
Gabriele Del Prete opened INT-3640 and commented
Using Spring Framwork 4.1.4 + Spring Integration 4.1.2 triggers the warning from BeanPostProcessorChecker about early configuration of bean and their inability to be processed by BeanPostProcessors.
This happens even with a very trivial app consisting only of a inbound stdin adapter, a channel and a poller: add int:annotation-config/ to the context XML and you'll get the warning. Same thing happens using AnnotationConfigApplicationContext and the
@EnableIntegration
annotation (since both it and the xml directive just defers to IntegrationRegistrar).I've created a simple project on GitHub to reproduce the problem.
Affects: 4.1.2
Reference URL: https://github.com/gdelprete/integrationregistrar-sample
Sub-tasks:
Fix early BeanFactory access from BeanPostProcessors: Phase I (Core and dependents) [INT-3661] #7620 Fix early BeanFactory access from BeanPostProcessors: Phase I (Core and dependents)
Fix early BeanFactory access from BeanPostProcessors: Phase II (JPA) [INT-3662] #7621 Fix early BeanFactory access from BeanPostProcessors: Phase II (JPA)
Fix early BeanFactory access from BeanPostProcessors: Phase III (Security) [INT-3663] #7622 Fix early BeanFactory access from BeanPostProcessors: Phase III (Security)
Fix early BeanFactory access from BeanPostProcessors: Phase IV (JMX) [INT-3664] #7623 Fix early BeanFactory access from BeanPostProcessors: Phase IV (JMX)
Issue Links:
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: