logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Thomas" <debussy...@gmail.com>
Subject log4j:ERROR setFile(null,true) call failed.
Date Thu, 30 Nov 2006 12:45:28 GMT
Hi,

In my web application I have a "log4j.properties" in
"C:\UserTemp\crawlerdata\helloworld"
I have also a diretory "log" in "C:\UserTemp\crawlerdata\helloworld"

I have, in the file "log4j.properties", these lines :

# Path of the log-file
log4j.appender.file.File=log/myLog.log

But whern I run my program and when it executes this line :

PropertyConfigurator.configure
(C:/UserTemp/crawlerdata/helloworld/log4j.properties);

I have the following exceptions, can someone help me please ?


[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R log4j:ERROR
setFile(null,true) call failed.
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R
java.io.FileNotFoundException: log\regain.log (The system cannot find the
path specified)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
java.io.FileOutputStream.openAppend(Native Method)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
java.io.FileOutputStream.<init>(FileOutputStream.java:194)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
java.io.FileOutputStream.<init>(FileOutputStream.java:122)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.FileAppender.setFile(FileAppender.java:282)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:161)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java
:132)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.parseAppender(
PropertyConfigurator.java:654)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.parseCategory(
PropertyConfigurator.java:612)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.configureRootCategory(
PropertyConfigurator.java:509)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java
:415)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java
:316)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java
:324)
[...]

Mime
View raw message