2 Replies Latest reply on Mar 27, 2008 10:29 AM by ereztison

    problem with null logger in interceptor

    Alexander Kroch Newbie

      HI All,

      I'm newbie with JBoss Seam and I have problem with logger in my own interceptor class. I use this POJO class for the @AroundInvoke purpose. I declared @Logger private Log log field for logger logic but in my interceptor method I always receive null for log instance:(

      Why I receive null ?What can be a reason of this wrong behavior ?


      import javax.interceptor.AroundInvoke;
      import javax.interceptor.InvocationContext;
      import org.jboss.seam.annotations.Logger;
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.log.Log;
      public class LoggedInInterceptor {
           private Log log;
           public Object checkLoggedIn(InvocationContext invocation) throws Exception {
                // log is null here :(
                return invocation.proceed();