Consider that you have a base class like this, public class MockListner { public void onMsg(Object msg) { } }
Then you create execution pointcut of onMsg method. So far, so good. But if you derive a class from MockListner and define a call pointcut of the constructor you get an Exception. public static class MockComponent extends MockListner { } The problem is in getTempClassAdvisorIfNotExist method. Could anybody help me? Caused by: java.lang.RuntimeException: for class: test.com.net2s.fs.midas.common.cache.ACacheFactoryDepTest$MockComponent at org.jboss.aop.AspectManager.getTempClassAdvisorIfNotExist(AspectManager.java:984) at org.jboss.aop.pointcut.ConstructorCallMatcher.visit(ConstructorCallMatcher.java:54) ... 21 more Caused by: java.lang.NoSuchFieldException: aop$classAdvisor$aop at java.lang.Class.getDeclaredField(Class.java:1854) at org.jboss.aop.AspectManager.getTempClassAdvisorIfNotExist(AspectManager.java:978) ... 22 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914588#3914588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914588 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user