DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6863>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6863 FOP does not close file stream, hence cannot delete XML file [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2002-04-17 20:37 ------- I attached my sample source Java code that I am using.I did not know that attaching it would actually send you an -email so you may have received the sample code in an earlier e-mail too. As you can see I creating an XML file and passing it as an argument to my method called "generatePDF". I pass that File object as an argument to the constructor of XSLTInputHandler, then I perform the FOP conversion. Then in the finally clause of the "print" method I am deleting the XML file since I no longer need it. I have been noticing that the "delete" method in the File class has been returning true (successful) on Unix but has been returning false (Failed) on NT. Also the file itself is actually deleted on Unix but not deleted on NT. I thought this could be happening because of threading that may be taking place in the FOP library and hence introduced a sleep just before the delete, did not help. I would appreciate it if you could let me know how to fix this proble. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]