[jboss-user] [JBoss AOP] - Unable to resolve pointcut reference

sandello do-not-reply at jboss.com
Wed Sep 13 02:07:14 EDT 2006


My aspect:

  | package com.company.cms;
  | 
  | @Aspect(scope=Scope.PER_INSTANCE)
  | public class ChangesReporterAspect {
  |   private Logger debugger=Logger.getLogger(ChangesReporterAspect.class);
  | 
  |   private JmsRepoter reporter;
  | 
  |   @PointcutDef(
  |       "execution(* $instanceof{com.company.IDataManager}->save()) OR execution(* $instanceof{com.company.IDataManager}->erase())"
  |   )
  |   public static Pointcut updateMethods;
  | 
  | 
  |   public ChangesReporterAspect()
  |       throws CmsException {
  |     reporter=new JmsRepoter();
  |     reporter.init();
  |   }
  | 
  |   @Bind(pointcut="com.company.cms.ChangesReporterAspect.updateMethods")
  |   public Object update(Invocation invocation) {...}
  | }
  | 

when deploing, Jboss writting:


  | 11:58:58,569 ERROR [STDERR] java.lang.RuntimeException: Unable to resolve pointcut reference: com.company.cms.ChangesReporterAspect.updateMethods
  | 11:58:58,570 ERROR [STDERR]     at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:142)
  | 11:58:58,570 ERROR [STDERR]     at org.jboss.aop.pointcut.ast.ASTPointcut.jjtAccept(ASTPointcut.java:41)
  | 11:58:58,570 ERROR [STDERR]     at org.jboss.aop.pointcut.MatcherHelper.visit(MatcherHelper.java:88)
  | 11:58:58,570 ERROR [STDERR]     at org.jboss.aop.pointcut.MatcherHelper.matches(MatcherHelper.java:83)
  | 11:58:58,571 ERROR [STDERR]     at org.jboss.aop.pointcut.PointcutExpression.matchesCall(PointcutExpression.java:99)
  | 11:58:58,571 ERROR [STDERR]     at org.jboss.aop.instrument.CallerTransformer$CallerExprEditor.edit(CallerTransformer.java:343)
  | 11:58:58,571 ERROR [STDERR]     at javassist.expr.ExprEditor.loopBody(ExprEditor.java:178)
  | 11:58:58,571 ERROR [STDERR]     at javassist.expr.ExprEditor.doit(ExprEditor.java:90)
  | 11:58:58,571 ERROR [STDERR]     at javassist.CtBehavior.instrument(CtBehavior.java:468)
  | ...
  | 

What I do wrong?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971174#3971174

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971174



More information about the jboss-user mailing list