AopConfigException - Superclass has no null constructors but no arguments were given
After upgrading to the 3.1.3, I run into the following error during the start up.
This problem is solved after adding a non-argument constructor.
org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.abc.myapp.mypackage.service.aop.BeforeDoingIt]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
Any document on this change?
Is the following the reason? If so, why it didn't occur before?
Since Spring AOP uses either J2SE dynamic proxies basing on an interface or aspectj CGLIB proxies, every class will either need an interface (for simple proxy based aspect weaving) or a constructor without any parameters (for cglib weaving). The constructor can be private.
Last edited by vw729; Nov 21st, 2012 at 06:39 PM.