anonymous wrote :
| Caused by: java.lang.NullPointerException
| at com.telecom_m.util.log.AspectLogger.invoke(AspectLogger.java:36)
|
I cannot tell which line that is from your post.
Regarding your pointcut, it will ignore all the following classes.
| public boolean isNonAdvisableClassName(String classname)
| {
| if (ignoreClass(classname)) return true;
| if (includeClass(classname)) return false;
| if (excludeClass(classname)) return true;
| return (classname.startsWith("org.jboss.aop.") ||
| classname.endsWith("$aop") ||
| classname.startsWith("javassist") ||
| classname.startsWith("org.jboss.util.") ||
| classname.startsWith("gnu.trove.") ||
| classname.startsWith("EDU.oswego.cs.dl.util.concurrent.") ||
| // System classes
| classname.startsWith("org.apache.tools.ant") ||
| classname.startsWith("org.apache.crimson") ||
| classname.startsWith("org.apache.xalan") ||
| classname.startsWith("org.apache.xml") ||
| classname.startsWith("org.apache.xpath") ||
| classname.startsWith("org.ietf.") ||
| classname.startsWith("org.omg.") ||
| classname.startsWith("org.w3c.") ||
| classname.startsWith("org.xml.sax.") ||
| classname.startsWith("sunw.") ||
| classname.startsWith("sun.") ||
| classname.startsWith("java.") ||
| classname.startsWith("javax.") ||
| classname.startsWith("com.sun.") ||
| classname.startsWith("junit") ||
| classname.startsWith("jrockit.") ||
| classname.startsWith("com.bea.vm.") ||
| classname.startsWith("$Proxy")
| );
| }
|
By default in AS it will also ignore all classes that start with org.jboss.
If you want to intercept all your classes, you need to use AOP as you are attempting. If
you just want to trace log your EJB calls, you can use an EJB3 @Interceptor
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150993#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...