3 Replies Latest reply on Aug 17, 2005 9:14 AM by Kabir Khan

    using aop on web app w/ log4j

    Mark Lybarger Apprentice

      i'm trying to use dynamic aop on a web application that uses log4j, and get this message on classes that are instrumented (non instrumented classes log just fine. The line of code that's in the is just:

      code:
      public static Logger LOG = Logger.getLogger(BaseAction.class);

      error:
      Caused by: java.lang.NullPointerException
      at org.apache.log4j.Logger.getLogger(Logger.java:94)
      at com.mlybarger.base.BaseAction.(BaseAction.java:50)
      ... 48 more

      any ideas why this would be happening? From what I can tell the Logger.getLogger method just calls LogManager.getLogger()