You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Karthik N S <ka...@controlnet.co.in> on 2004/12/15 06:31:17 UTC

LUCENE1.4.1 - LUCENE1.4.2 - LUCENE1.4.3 Exception

Hi Guys........


Some body tell me what this Exception am Getting Pleae

Sys Specifications

O/s Linux Gentoo
Appserver Apache Tomcat/4.1.24
Jdk build 1.4.2_03-b02
Lucene 1.4.1 ,2, 3

Note: - This Exception is displayed on Every 2nd Query after Tomcat is
started


java.io.IOException: Stale NFS file handle
        at java.io.RandomAccessFile.readBytes(Native Method)
        at java.io.RandomAccessFile.read(RandomAccessFile.java:307)
        at
org.apache.lucene.store.FSInputStream.readInternal(FSDirectory.java:420)
        at
org.apache.lucene.store.InputStream.readBytes(InputStream.java:61)
        at
org.apache.lucene.index.CompoundFileReader$CSInputStream.readInternal(Compou
ndFileReader.java:220)
        at org.apache.lucene.store.InputStream.refill(InputStream.java:158)
        at org.apache.lucene.store.InputStream.readByte(InputStream.java:43)
        at org.apache.lucene.store.InputStream.readVInt(InputStream.java:83)
        at
org.apache.lucene.index.SegmentTermEnum.readTerm(SegmentTermEnum.java:142)
        at
org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:115)
        at
org.apache.lucene.index.TermInfosReader.scanEnum(TermInfosReader.java:143)
        at
org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:137)
        at
org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:253)
        at
org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:69)
        at org.apache.lucene.search.Similarity.idf(Similarity.java:255)
        at
org.apache.lucene.search.TermQuery$TermWeight.sumOfSquaredWeights(TermQuery.
java:47)
        at org.apache.lucene.search.Query.weight(Query.java:86)
        at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:85)
        at
org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:
251)





      WITH WARM REGARDS
      HAVE A NICE DAY
      [ N.S.KARTHIK]




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


Re: LUCENE1.4.1 - LUCENE1.4.2 - LUCENE1.4.3 Exception

Posted by Nader Henein <ns...@bayt.net>.
This is a OS file system error not a Lucene issue (not for this board) , 
Google it for Gentoo specifically you a get a whole bunch of results one 
of which is this thread on the Gentoo Forums, 
http://forums.gentoo.org/viewtopic.php?t=9620

Good Luck

Nader Henein

Karthik N S wrote:

>Hi Guys........
>
>
>Some body tell me what this Exception am Getting Pleae
>
>Sys Specifications
>
>O/s Linux Gentoo
>Appserver Apache Tomcat/4.1.24
>Jdk build 1.4.2_03-b02
>Lucene 1.4.1 ,2, 3
>
>Note: - This Exception is displayed on Every 2nd Query after Tomcat is
>started
>
>
>java.io.IOException: Stale NFS file handle
>        at java.io.RandomAccessFile.readBytes(Native Method)
>        at java.io.RandomAccessFile.read(RandomAccessFile.java:307)
>        at
>org.apache.lucene.store.FSInputStream.readInternal(FSDirectory.java:420)
>        at
>org.apache.lucene.store.InputStream.readBytes(InputStream.java:61)
>        at
>org.apache.lucene.index.CompoundFileReader$CSInputStream.readInternal(Compou
>ndFileReader.java:220)
>        at org.apache.lucene.store.InputStream.refill(InputStream.java:158)
>        at org.apache.lucene.store.InputStream.readByte(InputStream.java:43)
>        at org.apache.lucene.store.InputStream.readVInt(InputStream.java:83)
>        at
>org.apache.lucene.index.SegmentTermEnum.readTerm(SegmentTermEnum.java:142)
>        at
>org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:115)
>        at
>org.apache.lucene.index.TermInfosReader.scanEnum(TermInfosReader.java:143)
>        at
>org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:137)
>        at
>org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:253)
>        at
>org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:69)
>        at org.apache.lucene.search.Similarity.idf(Similarity.java:255)
>        at
>org.apache.lucene.search.TermQuery$TermWeight.sumOfSquaredWeights(TermQuery.
>java:47)
>        at org.apache.lucene.search.Query.weight(Query.java:86)
>        at
>org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:85)
>        at
>org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:
>251)
>
>
>
>
>
>      WITH WARM REGARDS
>      HAVE A NICE DAY
>      [ N.S.KARTHIK]
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
>
>
>  
>

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


Re: LUCENE1.4.1 - LUCENE1.4.2 - LUCENE1.4.3 Exception

Posted by John Haxby <jc...@scalix.com>.
Karthik N S wrote:

>java.io.IOException: Stale NFS file handle
>  
>
You have a file system NFS mounted on this machine, but the machine 
hosting the real file system has no knowledge of your mount.  This often 
happens after the host machine has had a reboot.

Solution: unmount (and possibly re-mount) the failing NFS file system.   
If you're not sure which one it is, try looking at a file on each NFS 
file system with, say, "cat" or "wc" and see if you get a stale NFS 
handle error.   You may need "umount -f" to unmount the failing file 
system.   Sometimes, very occasioanlly, you'll have to resort to a reboot.

jch

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