Guest User

Untitled

a guest
Oct 22nd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. @CacheFetch(cacheName = CacheManager.CACHE_DATASOURCE_INFO)
  2. @TenantAware(method = OperationMethod.OPERATION, operation = OperationType.GET)
  3. public DataSourceInfo fetchDataSource(String sourceId) {...}
  4.  
  5. @Around("within(com.xx.yy.zz..*) && @annotation(fetch)")
  6. public Object fetchFromCache(ProceedingJoinPoint pjp, CacheFetch fetch) throws Throwable {...}
  7.  
  8. @Around("isXXX() && @annotation(tenantAware)")
  9. public Object handleTenantAware(ProceedingJoinPoint pjp, TenantAware tenantAware) throws Throwable {...}
  10.  
  11. java.lang.IllegalStateException: Required to bind 2 arguments, but only bound 1 (JoinPointMatch was NOT bound in invocation)
  12. at org.springframework.aop.aspectj.AbstractAspectJAdvice.argBinding(AbstractAspectJAdvice.java:591)
  13. at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
  14. at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
  15. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168)
  16. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
Add Comment
Please, Sign In to add comment