ProxyFactoryBean
declaration may lead to unexpected non-fatal "FactoryBean threw exception from getObjectType" stacktrace output
#31473
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Affects: Spring Boot 3.1.4 / Spring 6.0.12
We have a Spring application that defines some beans using a
BeanFactoryPostProcessor
. Using Spring 6 (Spring Boot 3), a non-fatal INFO level stacktrace is printed at startup like this:The same code works fine (without the stacktrace being output) in Spring 5 (Spring Boot 2). What the application does is basically
ApplicationContextInitializer
is configuredBeanFactoryPostProcessor
A small demonstration of the issue using a distilled version started from Spring Initializr is shown here: https://github.com/smurf667/test-spring-boot3-aop-issue
This was asked on Stackoverflow, and some helpful feedback was already given (including the recommendation to open an issue to get this behavior checked):
Is there a problem with the way we use Spring, should the stacktrace be logged with a more lenient level (lower than INFO), or is this potentially a bug?
Thanks!
The text was updated successfully, but these errors were encountered: