You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: Bean 'scheduler' of type [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected/applied to a currently created BeanPostProcessor [org.springframework.context.annotation.internalScheduledAnnotationProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
Unfortunately, I haven't found any way to mark this bean as infrastructure using only XML.
Thanks for the report, I can reproduce the problem based on the code snippet you've shared. Going forward, it would be very much appreciated to share a small sample we can run ourselves (zip or link to a GitHub project) rather than having to piece things together from code in text.
Hello!
Seems like XML-based scheduling configuration from documentation produces well-known "is not eligible" warning.
Minimal sample
Tested on Spring Core versions: 6.1.15, 6.2.0.
applicationContext.xml
:Reference: https://docs.spring.io/spring-framework/reference/integration/scheduling.html#scheduling-enable-annotation-support
Main.java
:Starting results in singular log message:
Unfortunately, I haven't found any way to mark this bean as infrastructure using only XML.
Related: #32055, spring-projects/spring-integration#7602
Best regards!
The text was updated successfully, but these errors were encountered: