I am trying to use AOP to profile some of the work I am doing. This question is answered quite a few times in this forum but answers doesn't really fit in my situation.
I have a ConcreteClass that extends an abstract class which in-turn implements an interface. I am trying to write an around advice on a method in the ConcreteClass. Here is my ConcreteClass bean definition with pointcut expression I am using
Now running this through is causes exception
<bean id="concreteClass" class="com.mycompany.ConcreteClass"/>
Some of the threads in the forum suggested doing this
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy56 implementing com.mycompany.SomeInterface,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.mycompany.ConcreteClass] for property 'concreteClass': no matching editors or conversion strategy found
Now I don't want to change the proxy setting which causes rest of the application to fail.