You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/10/08 13:42:40 UTC

[Bug 57200] SXSSF saving fails sometimes as TempFile creation fails

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

Oliver.Moeller@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |3.13-dev

--- Comment #5 from Oliver.Moeller@gmx.de ---
Issue:
We've got two long-running parallel processes creating several Excel files
every few minutes via SXSSF.
After one of the processes terminates the other one cannot write Excel files
anymore due to the deletion of folder "C:\Windows\Temp\poifiles\".

Work-around:
As a work-around we call the processes with different "java.io.tmpdir" system
property values to use separate temporary folders.
We do not use "poi.keep.tmp.files=true" as we want the temporary files to be
deleted.

However, this is no long-term solution for us as our program is normally
installed by the customer who can run as many parallel processes as he wants.
We can't configure different temp folders for all of these.

Possible solutions:
a. Use temp folder "java.io.tmpdir" instead of its sub-folder "poifiles".
b. Use a unique temp folder name for each process instead of "poifiles".
c. Never delete sub-folder "poifiles".
d. Delete folder "poifiles" only if the user explicitely sets a corresponding
system property, e.g. "poi.delete.tmp.dirs" (setting this property must also
delete the contained temporary files even if "poi.keep.tmp.files" is
specified).

-- 
You are receiving this mail because:
You are the assignee for the bug.

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