Hey guy...I use the 2.1 version and I get the same problem...but if the "Luke" 
(http://www.getopt.org/luke/) is open!!! 

If you were using luke or any other at the opening index moment, close that and 
try again! 



----- Mensagem original ----
De: Michael McCandless <[EMAIL PROTECTED]>
Para: java-user@lucene.apache.org
Enviadas: Sábado, 26 de Maio de 2007 9:31:39
Assunto: Re: exception while indexing


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" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 

Reply via email to