Skip to content

WARN BeanPostProcessorChecker:Bean 'x' of type [y] 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 [projectingArgumentResolverBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies. #3244

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

Closed
billschen opened this issue Nov 27, 2023 · 9 comments
Labels
for: external-project For an external project and not something we can fix

Comments

@billschen
Copy link

I upgrade my code to spring-boot 3.2.0
dependencies:
starter-data-jdbc,starter-data-jpa,starter-data-redis,starter-jdbc,starter-security,starter-web....
when use gradle bootRun command ,out put so many WARN mesage like:

2023-11-27T15:40:01.396+08:00 WARN 20020 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'liaisonInCustomerRoleService' of type [com.gdtech.oadingtalk.service.contractmanager.fundamentals.LiaisonInCustomerRoleService] 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 [projectingArgumentResolverBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2023-11-27T15:40:01.430+08:00 WARN 20020 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'customerRoledLiaisonRepository' of type [jdk.proxy2.$Proxy1478] 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 [projectingArgumentResolverBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.

2023-11-27T15:56:28.592+08:00 WARN 23981 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'jpa.named-queries#2280' of type [org.springframework.data.repository.core.support.PropertiesBasedNamedQueries] 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 [projectingArgumentResolverBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.

almost every calss annotation with Service or Repoistory ouput WARN message like above.

I don't define a BeanPostProcessor name ProjectingArgumentResolverBeanPostProcessor in my code.
those WARN message seriously slowing down the startup speed.
Are there any suggestions about how best to tackle the problem? thanks a lot!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 27, 2023
@mp911de
Copy link
Member

mp911de commented Nov 27, 2023

From which version are you upgrading? The configuration class and ProjectingArgumentResolverBeanPostProcessor haven't been changed in the past couple of years.

Leaving the link to spring-projects/spring-boot#38558 here.

@billschen
Copy link
Author

I update my code many times ,my be 2.1

@shivtrpm
Copy link

shivtrpm commented Nov 28, 2023

I have the same problem too. Almost all of the beans are getting warnings after upgrading to spring boot 3.2

@shivtrpm
Copy link

shivtrpm commented Nov 28, 2023

need help asap, before we roll it out to prod by end of this week.

@underbell
Copy link

underbell commented Nov 28, 2023

I have the same problem too. my before version is 3.1.5

spring-projects/spring-batch#4489

@billschen
Copy link
Author

my be the problem is the deprecated springframework.security annotation like EnableGlobalMethodSecurity or GlobalMethodSecurityConfiguration .
I comment the code and WARN message gone!

@mp911de
Copy link
Member

mp911de commented Nov 28, 2023

@billschen can you continue the discussion please on the Boot ticket? Spring Data doesn't seem to be the right place.

@mp911de mp911de added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 28, 2023
@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
@wilkinsona
Copy link
Member

@shivtrpm If you need help then you have to make it as easy as you can for people to provide that help. The best way to do so is by creating a minimal, reproducible example and sharing it with us. You can do so by adding a link to it on the Spring Boot issue.

@gbvbahia01
Copy link

gbvbahia01 commented Dec 28, 2023

on version 3.1.7 there is no warns, but after upgrade to 3.2.1 there are some.
In my case indicating the bean jobRegistryBeanPostProcessor as root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

7 participants