Mantis - Resin
Viewing Issue Advanced Details
4216 minor always 09-16-10 10:15 09-30-10 10:58
alex  
alex  
normal  
closed 3.1.9  
fixed  
none    
none 4.0.12  
0004216: Windows: log rotation error in zip format error
A error occurs on windows for log rotation in zip format.

zip file created empty

Configuration:
      <access-log path="logs/access.log"
            format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
            rollover-size="1024B"
        auto-flush="true"
            archive-format="access-%Y%m%d%H%M%S-.log.zip"/>


Exception:

[2010-09-16 10:12:15] Error rotating logs
java.util.zip.ZipException: no current ZIP entry
    at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:267)
    at com.caucho.vfs.Path.writeToStream(Path.java:1212)
    at com.caucho.log.AbstractRolloverLog.movePathToArchive(AbstractRolloverLog.java:562)
    at com.caucho.log.AbstractRolloverLog.access$100(AbstractRolloverLog.java:59)
    at com.caucho.log.AbstractRolloverLog$ArchiveTask.run(AbstractRolloverLog.java:827)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
    at java.lang.Thread.run(Thread.java:619)
[10:12:18.662] {http--8080-4$768974140} Tcp[,4] keepalive (thread)

Notes
(0004770)
alex   
09-30-10 10:58   
server/02ec.qa