Commons Logging
  1. Commons Logging
  2. LOGGING-2

exception when logging in JDK 1.3 with Lumberjack

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.0.4
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      The JDK 1.4 logging tests do not test for the Throwable class having the method
      getStackTrace() which is only available in 1.4. Below is the exception and
      sample source code to recreate. (first encountered in generic initialization of
      the struts 1.1 ActionServlet which throws an empty ServletException when this
      happens)

      Exception in thread "main" java.lang.NoSuchMethodError
      at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:116)
      at org.apache.commons.logging.impl.Jdk14Logger.fatal
      (Jdk14Logger.java:177)
      at CommonsLoggingTest.main(CommonsLoggingTest.java:19)

      import org.apache.commons.logging.Log;
      import org.apache.commons.logging.LogFactory;

      import java.util.logging.*;

      public class CommonsLoggingTest {
      protected static Log log = LogFactory.getLog(SchemaTest.class);

      public static void main(String[] args)

      { log.fatal("testing", new Exception("test")); }

      }

        Activity

        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Lundberg made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Dennis Lundberg made changes -
        Status Closed [ 6 ] Reopened [ 4 ]
        Dennis Lundberg made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Lundberg made changes -
        Fix Version/s 1.0.4 [ 12311713 ]
        Bugzilla Id 21455
        Henri Yandell made changes -
        Affects Version/s Nightly Builds [ 12311790 ]
        Henri Yandell made changes -
        Key COM-696 LOGGING-2
        Affects Version/s Nightly Builds [ 12311648 ]
        Project Commons [ 12310458 ] Commons Logging [ 12310484 ]
        Component/s Logging [ 12311124 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 21455 12340847
        Vince Eagen created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Vince Eagen
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development