Skip to content
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

BeanPostProcessorChecker detected Grails Beans are not eligible for getting processed by all BeanPostProcessors #12534

Closed
rainboyan opened this issue May 27, 2022 · 0 comments

Comments

@rainboyan
Copy link
Contributor

rainboyan commented May 27, 2022

Expected Behavior

Ideally the message should not be logged. Spring use BeanPostProcessorChecker to notify the user whenever a bean that is neither a BeanPostProcessor nor an infrastructure bean.

In Grails Plugins, we could define an infrastructure bean like this:

    Closure doWithSpring() {{->
        validateableConstraintsEvaluator(DefaultConstraintEvaluatorFactoryBean) { bean ->
            bean.lazyInit = true
            bean.role = BeanDefinition.ROLE_INFRASTRUCTURE
        }
    }}

Actual Behaviour

2022-05-20 18:44:56.070  INFO --- [  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)
2022-05-20 18:44:56.076  INFO --- [  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)
2022-05-20 18:44:56.078  INFO --- [  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)
2022-05-20 18:44:56.078  INFO --- [  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)
2022-05-20 18:44:56.092  INFO --- [  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)
2022-05-20 18:44:56.102  INFO --- [  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)
2022-05-20 18:44:56.102  INFO --- [  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)
2022-05-20 18:44:56.226  INFO --- [  restartedMain] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.5.Final
2022-05-20 18:44:56.343  INFO --- [  restartedMain] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-05-20 18:44:56.384  INFO --- [  restartedMain] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2022-05-20 18:44:56.490  INFO --- [  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)
2022-05-20 18:44:56.491  INFO --- [  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)
2022-05-20 18:44:56.491  INFO --- [  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)
2022-05-20 18:44:56.494  INFO --- [  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)
2022-05-20 18:44:56.519  INFO --- [  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)
2022-05-20 18:44:56.521  INFO --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#78b16485' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-20 18:44:56.522  INFO --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean '(inner bean)#78b16485' of type [org.grails.web.mapping.mvc.GrailsControllerUrlMappings] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-20 18:44:56.523  INFO --- [  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)
2022-05-20 18:44:56.523  INFO --- [  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)
2022-05-20 18:44:56.526  INFO --- [  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)

Steps To Reproduce

  1. grails create-app org.grails.demo.grails-bean-not-eligible-issue
  2. grails run-app

Environment Information

MacOS 11.6
JDK 11.0.15

Example Application

https://github.com/rainboyan/grails-bean-not-eligible-issue

Version

Grails 3, 4, 5

@rainboyan rainboyan changed the title Many grails beans are not eligible for getting processed by all BeanPostProcessors BeanPostProcessorChecker detected Grails Beans are not eligible for getting processed by all BeanPostProcessors May 28, 2022
@rainboyan rainboyan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant