lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Too many open files error occurs when changing 1.3 final to 1.4 rc2
Date Tue, 08 Jun 2004 09:33:53 GMT
I am not 100% certain now, but I _think_ there were some changes that
required that you re-index your data when upgrading to 1.4rc2.  I would
check the CHANGES file (link on the site, just look at the complete
file).

Otis

--- juan lu <lujuan@bidlink.cn> wrote:
> I had been using 1.3 final for 1 month, everything was ok. A week
> ago, i changed 1.3 final to 1.4 rc2, added sort when searching ,then
> errors below occurs. Why is that? What changed in release 1.4 ?
> Thanks a lot!
> 
> java.lang.NullPointerException
>        at
>
org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:94)
>        
>        at
> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
>        at
> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:84)
>        at
> org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:84)    
>    
>        at org.apache.lucene.store.Lock$With.run(Lock.java:109)
>        at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:73)
>        at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:61)
>        at
> org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
> 
> java.io.IOException: Too many open files
>         at java.io.UnixFileSystem.createFileExclusively(Native
> Method)
>         at java.io.File.createNewFile(File.java:828)
>         at
> org.apache.lucene.store.FSDirectory$1.obtain(FSDirectory.java:297)
>         at org.apache.lucene.store.Lock.obtain(Lock.java:53)
>         at org.apache.lucene.store.Lock$With.run(Lock.java:108)
>         at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:73)
>         at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:61)
>         at
> org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
> 
> java.io.FileNotFoundException:
> /home/dbjh/jakarta-tomcat-4.1.30/webapps/dbjh/search/Index/_2dqe.fdx
> (Too many open files)
>         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:366)
>         at
> org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:395)
>         at
> org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:265)
>         at
> org.apache.lucene.index.FieldsReader.<init>(FieldsReader.java:43)
>         at
> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:103)
>         at
> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:84)
>         at
> org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:84)
>         at org.apache.lucene.store.Lock$With.run(Lock.java:109)
>         at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:73)
>         at
> org.apache.lucene.index.IndexReader.open(IndexReader.java:61)
>         at
> org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
> 


---------------------------------------------------------------------
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