3 Replies Latest reply on Aug 17, 2005 6:48 PM by Kabir Khan

    First time user:There are no caller pointcuts! error

    johnptoohey Newbie


      I am trying to apply an interceptor to a production application. I have a simple interceptor that simply logs when it is called and calls invoke.

      I'm using JDK 1.4, latest build of JBoss. I get the following error :-

      [aopc] [trying to transform] com.metarisk.interceptors.GetGamesInterceptor
      [aopc] [debug] There are no caller pointcuts!
      [aopc] [debug] was com.metarisk.interceptors.GetGamesInterceptor converted: false
      [aopc] [no comp needed] /Users/john/Dev/parspro-core-cache/build/classes/com/metarisk/interceptors/GetGamesInterceptor.class

      My jboss-aop.xml file looks like this :-

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE aop PUBLIC "-//JBoss//DTD JBOSS AOP 1.0//EN" "http://www.jboss.org/aop/dtd/jboss-aop_1_0.dtd">
       <bind pointcut="execution(* com.simplydeliver.ppt.gamemgr.GamesBean->getGames(..))">
       <interceptor class="com.metarisk.interceptors.GetGamesInterceptor"/>
       </bind >

      My Ant code is like this :-
       <target name="aopc" depends="compile">
       <aopc compilerclasspathref="project.class.path" classpathref="project.class.path" verbose="true">
       <classpath refid="run.class.path" />
       <src path="${build.dir}/classes" />
       <aoppath path="src/conf/jboss-aop.xml" />

      Any pointers would be appreciated.