https://bz.apache.org/bugzilla/show_bug.cgi?id=57200

--- Comment #10 from Audun Røe <audun...@gmail.com> ---
Just ran into this with our java server app on Linux/RHEL, featuring Excel
report generation that's used once in a blue moon.. External to the Java
process, cron.daily runs tmpwatch to clean up /tmp, taking /tmp/poifiles with
it. 

For a workaround, we'll probably use a pluggable strategy as suggested in the
comments. I've tested on a direct fork of DefaultTempFileCreationStrategy from
POI source, with the only modification being the addition of || !dir.exists()
in createTempFile. This seems to work OK so far, and is essentially Yaniv's
suggestion #2 I guess. #1 seems like a less safe alternative to me, with all
file systems not necessarily behaving the same. And deletions then making
/tmp/poifiles essentially invisible on Linux systems until the java process
terminates and releases its file descriptors.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to