Indexing problem ("java.io.IOException: read past EOF" from Lucene)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Indexing problem ("java.io.IOException: read past EOF" from Lucene)

Philippe Lagardère
This post has NOT been accepted by the mailing list yet.
Hi,

A colleague of mine encountered some problems when trying to index his repositories through the "Maven Repositories" view.
When trying to update or rebuild the index, he gets the following error in his Eclipse log :


!ENTRY org.maven.ide.eclipse 4 0 2010-07-23 08:59:32.182
!MESSAGE Error changing index details central|http://repo1.maven.org/maven2
!STACK 0
java.io.IOException: read past EOF
        at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:135)
        at org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:247)
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:157)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
        at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:68)
        at org.apache.lucene.index.SegmentTermEnum.<init>(SegmentTermEnum.java:50)
        at org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:76)
        at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:366)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:236)
        at org.apache.lucene.index.DocumentsWriter.applyDeletes(DocumentsWriter.java:915)
        at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:4336)
        at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3572)
        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3442)
        at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1623)
        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1588)
        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1562)
        at org.sonatype.nexus.index.context.NexusIndexWriter.close(NexusIndexWriter.java:48)
        at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareCleanIndex(DefaultIndexingContext.java:215)
        at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:185)
        at org.sonatype.nexus.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:153)
        at org.sonatype.nexus.index.DefaultNexusIndexer.addIndexingContextForced(DefaultNexusIndexer.java:149)
        at org.maven.ide.eclipse.internal.index.NexusIndexManager.createIndexingContext(NexusIndexManager.java:890)
        at org.maven.ide.eclipse.internal.index.NexusIndexManager.setIndexDetails(NexusIndexManager.java:855)
        at org.maven.ide.eclipse.internal.index.NexusIndexManager.repositoryAdded(NexusIndexManager.java:800)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.addRepository(RepositoryRegistry.java:142)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.updateRegistry(RepositoryRegistry.java:241)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistryUpdateJob.run(RepositoryRegistryUpdateJob.java:42)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.maven.ide.eclipse 4 -1 2010-07-23 08:59:32.198
!MESSAGE Could not add repository index
!STACK 0
java.io.IOException: read past EOF
        at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:135)
        at org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:247)
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:157)
        at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
        at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:68)
        at org.apache.lucene.index.SegmentTermEnum.<init>(SegmentTermEnum.java:50)
        at org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:76)
        at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:366)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:306)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:236)
        at org.apache.lucene.index.DocumentsWriter.applyDeletes(DocumentsWriter.java:915)
        at org.apache.lucene.index.IndexWriter.applyDeletes(IndexWriter.java:4336)
        at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3572)
        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3442)
        at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1623)
        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1588)
        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1562)
        at org.sonatype.nexus.index.context.NexusIndexWriter.close(NexusIndexWriter.java:48)
        at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareCleanIndex(DefaultIndexingContext.java:215)
        at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:185)
        at org.sonatype.nexus.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:153)
        at org.sonatype.nexus.index.DefaultNexusIndexer.addIndexingContextForced(DefaultNexusIndexer.java:149)
        at org.maven.ide.eclipse.internal.index.NexusIndexManager.createIndexingContext(NexusIndexManager.java:890)
        at org.maven.ide.eclipse.internal.index.NexusIndexManager.setIndexDetails(NexusIndexManager.java:855)
        at org.maven.ide.eclipse.internal.index.NexusIndexManager.repositoryAdded(NexusIndexManager.java:800)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.addRepository(RepositoryRegistry.java:142)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.updateRegistry(RepositoryRegistry.java:241)
        at org.maven.ide.eclipse.internal.repository.RepositoryRegistryUpdateJob.run(RepositoryRegistryUpdateJob.java:42)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Since I don't have the trouble on my own computer, I tried giving him my index files (taken from ${localRepository}/.cache/m2e/0.10.0/relevant_folder), but the error remains.

Does anyone have an idea concerning this matter ?

Thanks in advance,

Philippe



Environment
------------
Eclipse : Galileo ; not too sure about the exact version, since it's from a corporate packaging.
Help > About Eclipse says Build id: 20100218-1602, if that's any help
m2eclipse : 0.10.0
Java : jdk-1.5.0_17