[jboss-user] [JBoss AOP] - Re: execution pointcut....class context?
robotics80
do-not-reply at jboss.com
Wed Jan 3 07:03:03 EST 2007
Ok Kabir, I have downloaded the new example classes fixed from cvs and I see that the TestCase you done, works well. But if you change the code of jboss-aop.xml file from:
<interceptor class="org.jboss.test.aop.regression.jbaop336callnpe.LogInterceptor"/>
| <bind pointcut="call(org.jboss.test.aop.regression.jbaop336callnpe.Log->new(java.lang.String))">
| <interceptor-ref name="org.jboss.test.aop.regression.jbaop336callnpe.LogInterceptor"/>
| </bind>
to:
<interceptor class="org.jboss.test.aop.regression.jbaop336callnpe.LogInterceptor"/>
| <bind pointcut="call(org.jboss.test.aop.regression.jbaop336callnpe.Log->new(..))">
| <interceptor-ref name="org.jboss.test.aop.regression.jbaop336callnpe.LogInterceptor"/>
| </bind>
the java NullPointerException in _getInstanceAdvisor() will occour!!
Could you fix this problem? Otherwise it's impossible to use call expression pointcuts.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997520#3997520
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997520
More information about the jboss-user
mailing list