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

Bean 'com.example.demo.Client' of type [org.springframework.cloud.openfeign.FeignClientFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) #416

Closed
BigMichi1 opened this issue Oct 9, 2020 · 5 comments

Comments

@BigMichi1
Copy link
Contributor

Describe the bug
we have a lot of FeignClients in our application which are triggering a lot of INFO log messages regarding the problem then the clients are not eligible for being processed by all bean post-processors. these messages indicate that something is going wrong but not exactly what is the problem.

as this message is triggered by the core springframework it would be nice that the feign clients can be created in such a way that they are not triggering the information log message.

Sample
sample project: https://github.com/BigMichi1/openfeign-warning
the problem is when @EnableAsync annotation is added then the info message is triggered, if it is removed then no message is shown

@BigMichi1
Copy link
Contributor Author

a similiar issue was reported already in #361 but when I debugged it this was not true anymore that a null was returned

@OlgaMaciaszek
Copy link
Collaborator

Hi, @BigMichi1 if I understand your comment correctly, the only issue here is that a warning or info log appears?

@BigMichi1
Copy link
Contributor Author

@OlgaMaciaszek as far as i can tell yes it might be the "only" issue that a message is displayed tellingme that something is fishy even if it is not. But i have a feeling that there might be something else that has an influence on the functionallity of the created clients. this is the thing i do not know. i have only seen during debugging that 8 out of 12 postprocessors were called for the created client bean and 4 were just skipped. Do they have an impact on the client bean, i can not tell for sure as during mytesting it "seems" that everything works.
What the most confuses me and other devs inmy project is that no message is shown until someone adds an '@EnableAsync' annotation to one configuration and then the log file is full of these messages during the startup.

@OlgaMaciaszek
Copy link
Collaborator

@BigMichi1 Thanks for the answer. These warnings are a known issue, but since we have not observed that the behaviour is hindered in any way, it has a very low priority, and we will not be working on it at this time.

@BigMichi1
Copy link
Contributor Author

looks like this behaviour has been fixed now in spring-framework 5.3.14 with spring-projects/spring-framework#27808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants