[jboss-user] [JBoss AOP] - duplicate method: _getAdvisor

Sharoni do-not-reply at jboss.com
Tue Oct 2 04:48:44 EDT 2007


Hey!

I?ve start working with JBoss Aop not long ago, so I?m just another newbie. :)
When trying to run my program with this jboss-aop.xml : 
<aop>
  |     <bind pointcut="execution(void $instanceof{com.blabla.ManagedElement}->set*(..))">
  |         <interceptor class="com.blabla.listener.AopObserver"/>
  |     </bind>
  | </aop>
I get the following exception :
?10:03:06,351 ERROR [STDERR] [warn] AOP Instrumentor failed to transform com.blabla.rules.Rule_$$_javassist_231
10:03:06,351 ERROR [STDERR] javassist.bytecode.DuplicateMemberException: duplicate method: _getAdvisor in com.blabla.rules.Rule_$$_javassist_231?

Except to this exception ? everything works just fine!
I?ve notice that if I remove the $instanceof, no exception is thrown at all (Yet, I lose utilities).

How can I slove this problem?

Thanks!
Sharon.

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

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



More information about the jboss-user mailing list