This looks like one of the issues that was fixed in 2.1. Is
it possible to test 2.1
to see if it still happens?
Mike
"Mohammad Norouzi" <mnrz57 gmail.com> wrote:
> Hi
> I am using Lucene 2.0.0
> I get following exception while indexing...
> is there anyone has faced this exception?
> thanks
>
>
>
>
> java.io.IOException: Cannot rename
E:index-labsegments.new to
> E:index-labsegments
> at
>
org.apache.lucene.store.FSDirectory.renameFile(FSDirectory.j
ava
> :294)
> at
>
org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java
:95)
> at
org.apache.lucene.index.IndexWriter$4.doBody(IndexWriter.jav
a
> :726)
> at
org.apache.lucene.store.Lock$With.run(Lock.java:99)
> at
org.apache.lucene.index.IndexWriter.mergeSegments(
> IndexWriter.java:724)
> at
org.apache.lucene.index.IndexWriter.mergeSegments(
> IndexWriter.java:686)
> at
org.apache.lucene.index.IndexWriter.maybeMergeSegments(
> IndexWriter.java:674)
> at
>
org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.
java
> :479)
> at
>
org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.
java
> :462)
> at
>
com.payvand.lucene.SingleIndexer.addDocument(SingleIndexer.j
ava
> :70)
> at
com.payvand.lucene.MainIndexing.indexinPatientLabView(
> MainIndexing.java:183)
> at
com.payvand.lucene.MainIndexing.main(MainIndexing.java:56)
> Caused by: java.io.FileNotFoundException:
E:index-labsegments (Access
> is
> denied)
> at java.io.FileOutputStream.open(Native
Method)
> at
java.io.FileOutputStream.<init>(Unknown Source)
> at
java.io.FileOutputStream.<init>(Unknown Source)
> at
>
org.apache.lucene.store.FSDirectory.renameFile(FSDirectory.j
ava
> :278)
> ... 11 more
>
>
> --
> Regards,
> Mohammad
> --------------------------
> see my blog: http://brainable.blogs
pot.com/
------------------------------------------------------------
---------
To unsubscribe, e-mail: java-user-unsubscribe lucene.apache.org
For additional commands, e-mail: java-user-help lucene.apache.org
|