grails-core icon indicating copy to clipboard operation
grails-core copied to clipboard

Grails 7: Bean 'X' of type [Y] is not eligible for getting processed by all BeanPostProcessors

Open jamesfredley opened this issue 1 year ago • 5 comments

Issue description

Sample App: https://github.com/jamesfredley/grails-website-test/tree/7.0.0-SNAPSHOT

Start with: ./gradlew bootRun or ./grailsw run-app

2024-09-19T08:56:45.142-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsPromiseFactory' of type [org.grails.plugins.web.async.spring.PromiseFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.149-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsPromiseFactory' of type [org.grails.async.factory.future.CachedThreadPoolPromiseFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.152-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsEventBus' of type [org.grails.events.bus.spring.EventBusFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.152-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsEventBus' of type [org.grails.events.bus.ExecutorEventBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.169-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'dataSourceConnectionSourceFactory' of type [org.grails.datastore.gorm.jdbc.connections.CachedDataSourceConnectionSourceFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.169-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateConnectionSourceFactory' of type [org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.191-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateDatastore' of type [org.grails.orm.hibernate.HibernateDatastore] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.193-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsDomainClassMappingContext' of type [org.grails.orm.hibernate.cfg.HibernateMappingContext] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.196-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'messageSource' of type [org.grails.spring.context.support.PluginAwareResourceBundleMessageSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.202-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.plugins.domain.support.DefaultConstraintEvaluatorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.205-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.datastore.gorm.validation.constraints.eval.DefaultConstraintEvaluator] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.263-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlConverter' of type [grails.web.CamelCaseUrlConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.267-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#122774d5' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.267-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#122774d5' of type [org.grails.web.mapping.mvc.GrailsControllerUrlMappings] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.268-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.grails.spring.beans.factory.HotSwappableTargetSourceFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.268-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.springframework.aop.target.HotSwappableTargetSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:46.270-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlMappingsHolder' of type [org.springframework.aop.framework.ProxyFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.

6/26/2025 Update with snapshot after 7.0.0-M4: Sample App: https://github.com/jamesfredley/beanpostprocessorswarn

2025-06-26T15:57:25.056-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'dataSourceConnectionSourceFactory' of type [org.grails.datastore.gorm.jdbc.connections.CachedDataSourceConnectionSourceFactory] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.056-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateConnectionSourceFactory' of type [org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.683-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateDatastore' of type [org.grails.orm.hibernate.HibernateDatastore] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.684-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'grailsDomainClassMappingContext' of type [org.grails.orm.hibernate.cfg.HibernateMappingContext] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.688-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.grails.plugins.i18n.I18nAutoConfiguration' of type [org.grails.plugins.i18n.I18nAutoConfiguration] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.691-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'messageSource' of type [org.grails.spring.context.support.PluginAwareResourceBundleMessageSource] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.693-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.plugins.domain.support.DefaultConstraintEvaluatorFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.696-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.datastore.gorm.validation.constraints.eval.DefaultConstraintEvaluator] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.743-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.grails.plugins.web.mapping.UrlMappingsAutoConfiguration' of type [org.grails.plugins.web.mapping.UrlMappingsAutoConfiguration] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.743-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlConverter' of type [grails.web.CamelCaseUrlConverter] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.746-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#34652065' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.746-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#34652065' of type [org.grails.web.mapping.mvc.GrailsControllerUrlMappings] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.747-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.grails.spring.beans.factory.HotSwappableTargetSourceFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.747-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.springframework.aop.target.HotSwappableTargetSource] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2025-06-26T15:57:25.749-04:00  WARN 27716 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlMappingsHolder' of type [org.springframework.aop.framework.ProxyFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.

jamesfredley avatar Sep 19 '24 13:09 jamesfredley

The first 4 are no longer occurring

2024-09-19T08:56:45.142-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsPromiseFactory' of type [org.grails.plugins.web.async.spring.PromiseFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.149-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsPromiseFactory' of type [org.grails.async.factory.future.CachedThreadPoolPromiseFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.152-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsEventBus' of type [org.grails.events.bus.spring.EventBusFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-19T08:56:45.152-04:00  WARN 13688 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsEventBus' of type [org.grails.events.bus.ExecutorEventBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.

new list

2024-10-16T17:25:13.063-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'dataSourceConnectionSourceFactory' of type [org.grails.datastore.gorm.jdbc.connections.CachedDataSourceConnectionSourceFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:13.064-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateConnectionSourceFactory' of type [org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.315-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateDatastore' of type [org.grails.orm.hibernate.HibernateDatastore] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.316-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsDomainClassMappingContext' of type [org.grails.orm.hibernate.cfg.HibernateMappingContext] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.320-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'messageSource' of type [org.grails.spring.context.support.PluginAwareResourceBundleMessageSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.322-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.plugins.domain.support.DefaultConstraintEvaluatorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.325-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.datastore.gorm.validation.constraints.eval.DefaultConstraintEvaluator] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.362-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlConverter' of type [grails.web.CamelCaseUrlConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.367-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#32bdbb78' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.367-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#32bdbb78' of type [org.grails.web.mapping.mvc.GrailsControllerUrlMappings] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.367-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.grails.spring.beans.factory.HotSwappableTargetSourceFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.368-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.springframework.aop.target.HotSwappableTargetSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-10-16T17:25:14.370-04:00  WARN 28096 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlMappingsHolder' of type [org.springframework.aop.framework.ProxyFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.

jamesfredley avatar Oct 16 '24 21:10 jamesfredley

This is being caused by eager initialization of UrlMappings from a proxy. It does not happen in a live configuration, but should still be addressed.

The offending code is here: https://github.com/grails/grails-core/blob/b8c89b401d2e5c3869546997f61bf2b0094edffa/grails-plugin-url-mappings/src/main/groovy/org/grails/plugins/web/mapping/UrlMappingsGrailsPlugin.groovy#L89-L100

codeconsole avatar Nov 16 '24 06:11 codeconsole

https://github.com/grails/grails-core/pull/13845

codeconsole avatar Nov 16 '24 07:11 codeconsole

List after https://github.com/grails/grails-core/pull/13845

2024-11-18T12:29:47.845-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'dataSourceConnectionSourceFactory' of type [org.grails.datastore.gorm.jdbc.connections.CachedDataSourceConnectionSourceFactory] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:47.864-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateConnectionSourceFactory' of type [org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.189-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'hibernateDatastore' of type [org.grails.orm.hibernate.HibernateDatastore] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.190-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsDomainClassMappingContext' of type [org.grails.orm.hibernate.cfg.HibernateMappingContext] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.194-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'messageSource' of type [org.grails.spring.context.support.PluginAwareResourceBundleMessageSource] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.196-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.plugins.domain.support.DefaultConstraintEvaluatorFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.199-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'validateableConstraintsEvaluator' of type [org.grails.datastore.gorm.validation.constraints.eval.DefaultConstraintEvaluator] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.247-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.grails.plugins.web.mapping.UrlMappingsAutoConfiguration' of type [org.grails.plugins.web.mapping.UrlMappingsAutoConfiguration] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.248-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlConverter' of type [grails.web.CamelCaseUrlConverter] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.252-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#3d689af2' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.252-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#3d689af2' of type [org.grails.web.mapping.mvc.GrailsControllerUrlMappings] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.253-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.grails.spring.beans.factory.HotSwappableTargetSourceFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.253-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'urlMappingsTargetSource' of type [org.springframework.aop.target.HotSwappableTargetSource] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
2024-11-18T12:29:49.255-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'grailsUrlMappingsHolder' of type [org.springframework.aop.framework.ProxyFactoryBean] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.

the addition:

2024-11-18T12:29:49.247-05:00  WARN 16796 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.grails.plugins.web.mapping.UrlMappingsAutoConfiguration' of type [org.grails.plugins.web.mapping.UrlMappingsAutoConfiguration] 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 [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.

jamesfredley avatar Nov 18 '24 17:11 jamesfredley

@jamesfredley https://github.com/grails/grails-core/pull/13845 wasn’t supposed to fix the problem. It just identifies the cause and isolates it

codeconsole avatar Nov 18 '24 17:11 codeconsole