logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49693] New: Intermittently Log4j fails to bind with log file
Date Tue, 03 Aug 2010 14:53:14 GMT

           Summary: Intermittently Log4j fails to bind with log file
           Product: Log4j
           Version: 1.2
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: chirag.desai@ctg.com


We face a strange problem on our environments that when sometimes application
is started in Tomcat (v5.5.26) we see following error:

INFO: Deploying web application archive Xyz.war
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ../logs/xyz/xyz.log (No such file or directory)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)

Due to this although application starts properly and can be used by users, it
fails to update log file and also does not use daily rolling feature.

However if Tomcat is stopped and then started this problem goes away. Therefore
the issue is intermittent and only surfaces randomly when Tomcat is restarted,

We investigated this issue in detail and have verified that path/permissions
for the log file and folder is correct.

Could you please confirm is this is a bug in this version (1.2.8) or something
else needs correcting?

Any views/comments/experience on this would be much appreciated!

Chirag Desai

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message