[ https://issues.apache.org/jira/browse/VFS-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553977#comment-13553977 ]
Thomas Neidhart commented on VFS-209: ------------------------------------- Did you also call FileContent.close() after the write operation has finished? Closing the OutputStream alone is not sufficient, and subsequent calls to FileContent.getOutputStream() will fail with the mentioned exception. > RAM file system writes to a RAM file fail under heavy load > ---------------------------------------------------------- > > Key: VFS-209 > URL: https://issues.apache.org/jira/browse/VFS-209 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 1.0 > Environment: Fails on all platforms > Reporter: Rakshith N > Priority: Critical > > Simple writes to a RAM file using the Microsoft Web Stress tool fails by > throwing a FileSystemException which says that the file is already in use. > I have double checked the streams. In happens, in spite of close being called > each time on the outputstream. > org.apache.commons.vfs.FileSystemException: Could > not write to ""ram:///dynamic.cfm"" because it is currently in use. > It fails while trying to get the OutputStream from the FileContent. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira