logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re:log4j-1.2.8 and jdk1.2.2
Date Tue, 15 Apr 2003 12:15:33 GMT


Thank you very much for letting us know about this peculiar phenomenon. I 
wonder if this is a known problem...

At 02:08 PM 4/15/2003 +0200, you wrote:
>It appears that if I recompile log4j-1.2.8 classes with my jdk1.2.2, put 
>them in a new jar file and use it instead log4j-1.2.8.jar, my test class 
>works correctly...
>Strange, no ?
>---------- Initial Header -----------
>>From      : "muriel.klein@libertysurf.fr" <muriel.klein@libertysurf.fr>
>To          : "log4j-user" <log4j-user@jakarta.apache.org>
>Cc          :
>Date      : Tue, 15 Apr 2003 10:52:47 +0200
>Subject : log4j-1.2.8 and jdk1.2.2
>I am trying to use log4j1.2.8 with my jdk1.2.2.
>I have a basic class which only configure the PropertyConfigurator:
>public class test {
>  public static  void main(String[] args) {
>         PropertyConfigurator.configure("log4j.properties");
>I only have log4j.1.2.8.jar and my class test in my classpath, and I get a 
>"current thread not owner" exception:
>D:\Temp>java -Dlog4j.debug -classpath log4j-1.2.8.jar;. test
>log4j: Trying to find [log4j.xml] using context classloader 
>log4j: Trying to find [log4j.xml] using 
>a class loader.
>log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
>log4j: Trying to find [log4j.properties] using context classloader 
>log4j: Using URL [file:/D:/Temp/log4j.properties] for automatic log4j 
>log4j: Reading configuration from URL file:/D:/Temp/log4j.properties
>log4j: Parsing for [root] with value=[, out].
>log4j: Parsing appender named "out".
>log4j: Parsing layout options for "out".
>log4j: Setting property [conversionPattern] to [%d %-5p %C (%F:%L) - %m%n].
>log4j: End of parsing for "out".
>log4j: Parsed "out" options.
>Exception in thread "main" java.lang.ExceptionInInitializerError: 
>java.lang.IllegalMonitorStateException: current thread not owner
>         at 
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
>         at 
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
>         at 
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
>         at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
>         at 
> org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
>         at test.main(test.java:9)
>I have the same result when using Logger.getLogger(...) method.
>I read in the archives somebody else had the same trouble, but did not get 
>any answer...
>Is log4j-1.2.8 not compatible with jdk1.2.2 or did I miss something ?
>Thanks for your answer,

Ceki  For log4j documentation consider "The complete log4j manual"

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message