lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suman Ghosh" <>
Subject StackOverflowError while calling IndexReader.deleteDocuments(new Term())
Date Mon, 27 Nov 2006 17:10:06 GMT
I was trying to build a lucene index (Lucene 2.0, JDK 5) with
approximately 150000 documents containing about 25 fields for each
document. After indexing about 45000 documents , the program crashed.
It was running as a batch job and did not log the cause of the crash.
In order to identify why the process crashed, I restarted the job
about 50 documents before the crash point so that I can identify the
problem. At this point, the program first tries to delete the document
if it's already present in the index and then adds it. As soon as I
start the program, the program aborts with a StackOverflowError while
calling indexreader.deleteDocuments(new Term()) method (even for the
document that was indexed earlier). Here is the partial stacktrace:

Exception in thread "main" java.lang.StackOverflowError
        at java.lang.ref.Reference.<init>(
        at java.lang.ref.WeakReference.<init>(
        at java.lang.ThreadLocal$ThreadLocalMap$Entry.<init>(
        at java.lang.ThreadLocal$ThreadLocalMap$Entry.<init>(
        at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(
        at java.lang.ThreadLocal$ThreadLocalMap.get(
        at java.lang.ThreadLocal$ThreadLocalMap.access$000(
        at java.lang.ThreadLocal.get(
        at org.apache.lucene.index.TermInfosReader.getEnum(
        at org.apache.lucene.index.TermInfosReader.get(
        at org.apache.lucene.index.MultiTermDocs.termDocs(

The last line [at]
repeats another 1010 times before the program crashes.

I understand that without the actual index or the documents, it's
nearly impossible to narrow down the cause of the error. However, can
you please point to any theoretical reason why will go into an infinite

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

View raw message