spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

CglibAopProxy errors should be logged as warning

Open fvigotti opened this issue 2 years ago • 0 comments

Good morning ,

I'm not a usual committer, but if someone has 5 minutes...

The following types of errors should be logged as WARNING or ERROR instead of INFO.

INFO 67074 --- [ main] o.s.aop.framework.CglibAopProxy : Unable to proxy interface-implementing method [public final void org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices.loginFail(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)] because it is marked as final: Consider using interface-based JDK proxies instead!

I've spent 2 days investigating the issue, and it was an @Transactional annotation added to my (Kotlin ) custom implementation of the AbstractRememberMeServices which together with final methods in the abstract class caused this very difficult to spot behavior.

fvigotti avatar Nov 09 '22 10:11 fvigotti