lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Franke <>
Subject Optimize: java.lang.IndexOutOfBoundsException
Date Wed, 14 Sep 2005 13:29:45 GMT
   when creating indexes I get exeptions like this one:

java.lang.IndexOutOfBoundsException: Index: 107, Size: 44
	at java.util.ArrayList.RangeCheck(
	at java.util.ArrayList.get(
	at org.apache.lucene.index.FieldInfos.fieldInfo(
	at org.apache.lucene.index.FieldInfos.fieldName(
	at org.apache.lucene.index.SegmentMerger.mergeTerms(
	at org.apache.lucene.index.SegmentMerger.merge(
	at org.apache.lucene.index.IndexWriter.mergeSegments(
	at org.apache.lucene.index.IndexWriter.optimize(

This happens in the IndexWriter.optimize() call after all documents have 
been added and before closing the IndexWriter. The index is created from 
scratch in this process.

The exception seems to occur only when the number of document exceeds a 
certain limit (30000 documents work, 100000 documents do not work).

The problem only occurs on a Linux server! On a Windows server the same
build of the indexing application indexes the same data without any 

Here some details on the environment:

- Lucene-1.4.3

- Linux server:
   - Redhat Enterprise Linux 3AS
     Linux MedusaApp 2.4.21-20.EL #1 SMP Wed Aug 18 20:34:58 EDT 2004
     x86_64 x86_64 x86_64 GNU/Linux
   - Dual Xeon 3Ghz (8GB)
   - Java(TM) 2 Runtime Environment, Standard Edition
     (build 1.4.2_09-b05)
     Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)
   - java -Xmx1024M

- Windows server:
   - Microsoft Windows Server 2003
   - Dual Xeon 3Ghz (3,75GB)
   - java version "1.4.2_03"
     Java(TM) 2 Runtime Environment, Standard Edition
     (build 1.4.2_03-b02)
     Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
   - java Xmx512M

Has anybody an idea what causes this problem or experienced something 

Thanks in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message