This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes log4j addA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j addA" Watch "log4j addA" New topic

log4j addA

Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 99
I'm getting a null pointer exception when trying to instantiate a FileAppender using log4j 1.2 on windows 2K.

On the line that calls the constructor I get the following stack trace. I've included the code below to show that I verfied the file exists. What Am i doing wrong???

Sun Certified Java Programmer Java 2<P>Jeff Gaer
Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 99
never mind. Someday I will learn to type
logfile != logFile,
I agree. Here's the link:
subject: log4j addA
Similar Threads
How to use log across objects
issue with logging!!
using log4j in servlets
log4j -> fileAppender.getFile() to read unix log dir location