Wednesday, May 31, 2006 10:12 AM
In an attempt to re-create my index, I'm receiving the exception:
java.io.IOException: Cannot delete _2s.cfs
The line of code throwing the exception is:
IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(), true);
also seen in
When I attempt to delete the indicated file via Windows explorer, I receive an error indicating the file is in use by another process.
Once I stop Tomcat, I am able to delete the file via Windows Explorer.
1) Is there a way to determine what process is using the file?
2) Is this a Lucene bug, or am I miss using lucene?
I've seen many post around the web on this same issue, but never a clear explanation as to the cause or the solution.
As always, any help greatly appreciated.
Re: java.io.IOException: Cannot delete
Wednesday, May 31, 2006 06:41 PM