lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lu <chris...@gmail.com>
Subject when indexing, java.io.FileNotFoundException
Date Wed, 02 Feb 2005 06:03:12 GMT
Hi,
I am getting this exception now and then when I am indexing content.
It doesn't always happen. But when it happens, I have to delete the 
index and start over again.
This is a serious problem.

In this email, Doug was say it has something to do with win32's lack of 
atomic renaming.
http://java2.5341.com/msg/1348.html

But how can I prevent this?

Chris Lu


java.io.FileNotFoundException: C:\data\indexes\customer\_temp\0\_1e.fnm 
(The system cannot find the file specified)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:204)
    at 
org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
    at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
    at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
    at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:53)
    at 
org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:109)
    at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:94)
    at 
org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:480)
    at 
org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:458)
    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:310)
    at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:294)


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message