[pylucene-dev] ValueError: java.io.IOException: CreateFile failed
aurora00 at gmail.com
Thu Oct 27 08:52:47 PDT 2005
I'm still using 0.9.6 : )
Will try the Python Directory. Since I'm using FSDirectory without any
need of customerization, I guess the benefit would be having the
flexibility running Python source code v.s. black box gcj code in some
non-performance intensive logic?
Also I have track the problem down further. It gets down into Lucene
detail but I'm posting my finding hoping it maybe be useful in the
In FSDirectory.java: 307
javadoc says File.createNewFile() returns true if the named file does
not exist and was successfully created; false if the named file
already exists. I suspect the Windows version of gcj call some win32
api that do not return false but throws the 'CreateFile failed'
exception without the offending filename. Otherwise Java Lucene would
output an helpful error message:
java.io.IOException: java.io.IOException: Lock obtain timed out:
Lock at C:\DOCUME~1\wtung\LOCALS~1\Temp\lucene-2c18dbaca5d0c304
In anycase the underlying problem maybe that it is not allowed to
create two IndexWriter on the same directory.
More information about the pylucene-dev