When retrieval of a LoadTimeWeaverAware bean fails the resulting exception message may not indicate why it was being created #32470
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Affects: 6.1.4
The problem can be reproduced using the sample project that's attached to this Spring Boot issue. When the failure occurs, the following stack trace is logged:
Missing from this exception message is the fact that the
getBean
call that ultimately failed due to being unable to create theDataSource
was for the loader-time weaver awareentityManagerFactory
. It does appear in the stack trace:It would ease problem diagnosis if the exception message (and possibly the chain of exceptions) captured this information as well.
The text was updated successfully, but these errors were encountered: