output file path
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, December 10, 2002 10:19 AM

I can't seem to get log4j to find my log file.
It's in the classpath and it has full permissions.
Yet I keep getting the error message:

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: A1.log (Permission denied)

I'm using the second example xml file (sample2.xml) pretty much as is.

I'm using JDeveloper in an HP-UX environment.

I don't remember having this much trouble with previous versions of log4j.


Zoa Buske

Re: output file path

Posted By:   Benoit_Quintin  
Posted On:   Tuesday, December 10, 2002 11:12 AM

I assume you are using a RollingFileAppender or something like that... The error you are getting seems to be related to the Appender's setFile method, and you seem to be passing null to the appender as a filename... Now I'm pretty sure Log4J doesn't like file whose names are null... Check your code again, to see if you are not overwriting the filename with null...
About | Sitemap | Contact