lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <luc...@mikemccandless.com>
Subject Re: exception while indexing
Date Sat, 26 May 2007 12:31:39 GMT

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-lab\segments.new to
> E:\index-lab\segments
>         at
>         org.apache.lucene.store.FSDirectory.renameFile(FSDirectory.java
> :294)
>         at
>         org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:95)
>         at org.apache.lucene.index.IndexWriter$4.doBody(IndexWriter.java
> :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.java
> :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-lab\segments (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.java
> :278)
>         ... 11 more
> 
> 
> -- 
> Regards,
> Mohammad
> --------------------------
> see my blog: http://brainable.blogspot.com/

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


Mime
View raw message