2 Replies Latest reply on Dec 4, 2006 5:27 PM by Eric Ray

    NullPointerException in LogImpl

    Eric Ray Novice

      During activation of a passivated bean I get the following exception.

      My code:

      @Logger
      private Log log;
      
      @PostActivation
      public void activate() {
       log.info("activating bean");
      }
      


      The exception:
      Caused by: java.lang.NullPointerException
       at org.jboss.seam.log.LogImpl.isInfoEnabled(LogImpl.java:45)
       at org.jboss.seam.log.LogImpl.info(LogImpl.java:92)
       at com.vicor.distributedcapture.session.PackageAction.activate(PackageAction.java:728)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:159)
       at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postActivate(LifecycleInterceptorHandler.java:139)
      


      Am I not allowed to have code like that or is this an issues with the seam logger?

      Thanks.
      Eric