java - Spring AspectJ Exception: Could not generate CGLIB subclass of class -
i trying write spring aspectj pointcut execution(* com..*(..))
i using
<aop:aspectj-autoproxy />
i've got following exception:
could not generate cglib subclass of class [class pl.codeleak.services.someservice]: common causes of problem include using final class or non-visible class; nested exception java.lang.illegalargumentexception: superclass has no null constructors no arguments given
i've checked internet , found cglib can't proxy final classes or classes no default constructor.
the solutions i've found far:
- update spring 4
- make classes implement interface.
the above solutions not option in case.
does have solution problem? in case there no solution, best way write aspect covers functions in project (including external jars functions)?
Comments
Post a Comment