[ http://issues.apache.org/jira/browse/LOGGING-2?page=all ]

Dennis Lundberg closed LOGGING-2.
---------------------------------


> exception when logging in JDK 1.3 with Lumberjack
> -------------------------------------------------
>
>                 Key: LOGGING-2
>                 URL: http://issues.apache.org/jira/browse/LOGGING-2
>             Project: Commons Logging
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Operating System: All
> Platform: All
>            Reporter: Vince Eagen
>             Fix For: 1.0.4
>
>         Attachments: Jdk13LumberjackLogger.java, lumberjackcheck.txt
>
>
> 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"));
>    }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to