List Info

Thread: exception while indexing




exception while indexing
user name
2007-05-26 05:35:18
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/
Re: exception while indexing
user name
2007-05-26 07:31:39
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" <mnrz57gmail.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-unsubscribelucene.apache.org
For additional commands, e-mail: java-user-helplucene.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )