lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Vito <v...@mnis.com>
Subject Re: optimize fails with "Negative seek offset"
Date Wed, 12 May 2004 16:54:45 GMT
Looks like the same error I got when I tried to use Lucene version 1.3
to search on an index I had created with Lucene version 1.4. The
versions are not forward compatible. Did you by chance create the index
with version 1.4 and are now searching with version 1.3. It's easy to
get the dependencies out of sync for different apps, which is what
happened to me.

-vito

On Wed, 2004-05-12 at 04:59, Sascha Ottolski wrote:
> Hi,
> 
> sorry for following up my own mail, but since no one responded so
> far, I thought the stacktrace might be of interested. The following
> exception always occurs when trying to optimize one of our indizes,
> which always went ok for about a year now. I just tried with 1.4-rc3,
> but with the same result:
> 
> java.io.IOException: Negative seek offset
>         at java.io.RandomAccessFile.seek(Native Method)
>         at org.apache.lucene.store.FSInputStream.readInternal(FSDirectory.java:405)
>         at org.apache.lucene.store.InputStream.readBytes(InputStream.java:61)
>         at org.apache.lucene.index.CompoundFileReader$CSInputStream.readInternal(CompoundFileReader.java:222)
>         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.FieldsReader.doc(FieldsReader.java:63)
>         at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:238)
>         at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:185)
>         at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:92)
>         at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:483)
>         at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:362)
>         at LuceneRPCHandler.optimize(LuceneRPCHandler.java:398)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.xmlrpc.Invoker.execute(Invoker.java:168)
>         at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:123)
>         at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:185)
>         at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:151)
>         at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
>         at org.apache.xmlrpc.WebServer$Connection.run(WebServer.java:773)
>         at org.apache.xmlrpc.WebServer$Runner.run(WebServer.java:656)
>         at java.lang.Thread.run(Thread.java:534)
> 
> 
> Any hint would be greatly appreciated.
> 
> 
> Thanks,
> 
> Sascha
> 
> -- 
> Gallileus - the power of knowledge
> 
> Gallileus GmbH                    http://www.gallileus.info/
> 
> Pintschstra├če 16                  fon +49-(0)30-41 93 43 43
> 10249 Berlin                      fax +49-(0)30-41 93 43 45
> Germany
> 
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> AKTUELLER HINWEIS (Mai 2004)
> 
> Literatur Alerts - Literatursuche (wie) im Schlaf!
> 
> Ab jetzt mehr dazu unter:
> http://www.gallileus.info/gallileus/about/products/alerts/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message