It seems you are trying to weave third-party classes that probably shouldn't be woven.
You should probably limit the use of your packages in META-INF/aop.xml
like this:
<?xml version="1.0"?> <aspectj> <weaver options="-showWeaveInfo"> <include within="com.yourpackage..*"/> </weaver> <aspects> <aspect name="org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect"/> <aspect name="org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspect"/> <aspect name="org.springframework.transaction.aspectj.AnnotationTransactionAspect"/> <aspect name="org.springframework.cache.aspectj.AnnotationCacheAspect"/> </aspects> </aspectj>
Where <include within="com.yourpackage..*"/>
is the restriction on your packages.
source share