lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariella Digiacomo <marie...@lanl.gov>
Subject Can not create searcher: java.io.IOException: Invalid argument
Date Thu, 21 Apr 2005 13:12:06 GMT
Hi ALL,

We have built Lucene indexes on a Solaris box. We have tested them and they 
can be accessed OK when residing on a native Linux filesystem.
What we like to do is export through NFS the Lucene indexes from the 
Solaris box to the Linux box (mainly for development and testing purposes).

When we try to export through NFS Lucene indexes to the Linux box from the 
Solaris server, we get an error:

...............
  searchables[i] = new IndexSearcher(indexDirs.get(i));
...........................................

throws an IOException when the dir passed to IndexSearcher is a mounted one.

Following is the stack trace proceeded by the Directory value...

FSDirectory@/data/lucene/alpha2006
Can not create searcher: java.io.IOException: Invalid argument
java.io.IOException: Invalid argument
         at java.io.RandomAccessFile.length(Native Method)
at java.io.RandomAccessFile.length(Native Method)

         at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:406)
         at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
         at 
org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:63)
         at 
org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:104)
         at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:89)
         at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:118)
         at org.apache.lucene.store.Lock$With.run(Lock.java:109)
         at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
         at org.apache.lucene.index.IndexReader.open(IndexReader.java:106)
         at 
org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:43)
         at 
gov.lanl.rlsearch.engine.lucene.search.client.LuceneSearcher.search(LuceneSearcher.java:54)
         at 
gov.lanl.rlsearch.servlets.ScienceServerSearchServlet.doGet(ScienceServerSearchServlet.java:494)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
         at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
         at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
         at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)



Could you please help ?
Thanks a lot in advance for your help,

Mariella Di Giacomo


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