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:

  1. update spring 4
  2. 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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -