DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28276>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28276

FileGenerator blocks xml-files, does not close them properly

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2004-04-08 17:44 -------
I've tested this somewhat further and there doesn't seem to be a real big problem.

I've wrapped the inputstream to log the close calls and they are properly called
(by the parser, xerces). This is also the case if the XML file contains an error
and thus a parse exception is thrown. I've checked the xerces source and this is
done properly in a try/finally block.

The only case in which the inputstream could be left open is if an error occurs
between the moment the inputstream is opened and the parser is called, but this
is an unlikely situation, and I'm quite sure this is not the case here otherwise
you would have seen this error.

The problem is probably caused by something else, i.e. your editor, windows, or
whatever. In Linux there's this utility called fuser that can show who's using a
file -- don't know if there's a Windows equivalent.

Reply via email to