how to get rid of Spring BeanPostProcessor Warnings?

Solution Verified - Updated -

Issue

  • During the execution of the our service , several warnings were logged related to Spring's BeanPostProcessor. The warnings indicate that certain beans, such as LoggingFeature, LoggingInInterceptor, LoggingOutInterceptor, and SpringBus, are not eligible for processing by all BeanPostProcessors.
WARN org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker
Bean 'org.apache.cxf.ext.logging.LoggingFeature' of type [org.apache.cxf.ext.logging.LoggingFeature] 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.

Environment

  • Red Hat build of Apache Camel for Spring Boot
    • 4.10.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content