I have a working test app which, when AOP is configured, throws an error:
Could not convert constructor argument value of type $Proxy10 to required type Account
This has come up twice before in the archives but it isn't obvious what was fixed.
Modified stack trace:
UnsatisfiedDependencyException:Error creating bean with name User Unsatisfied dependency expressed through constructor argument of type Account Could not convert constructor argument value of type [$Proxy10] to required type Account
Failed to convert value of type [$Proxy10 implementing org.springframework.beans.factory.DisposableBean,o rg.springframework.aop.SpringProxy,org.springframe work.aop.framework.Advised]to required type Account no matching editors or conversion strategy found
I've tried various different things but it looks like my introduction of a wildcard PointCut (to log every method call in the app) has resulted in all the spring beans being converted to proxies - which is messing up the dependency injection.
AOP Config is:
<bean id="logAll" class="com.self.aspects.LogAllMethods"/>