java.lang.NoSuchFieldError: level

james-server-user | Thomas Dudziak | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to use Log4j in a mailet ?

    james-server-user | 1 decade ago | Thomas Dudziak
    java.lang.NoSuchFieldError: level

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      level

      at org.apache.log4j.spi.RootLogger.setLevel()
    2. Apache Log4j
      LogManager.<clinit>
      1. org.apache.log4j.spi.RootLogger.setLevel(RootLogger.java:65)
      2. org.apache.log4j.spi.RootLogger.<init>(RootLogger.java:44)
      3. org.apache.log4j.LogManager.<clinit>(LogManager.java:78)
      3 frames
    3. my.mailet
      TestMailet.<clinit>
      1. my.mailet.TestMailet.<clinit>(TestMailet.java:16)
      1 frame
    4. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:242)
      2 frames