lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bin Lan <>
Subject AlreadyClosedException when doing search
Date Thu, 08 Nov 2012 14:39:57 GMT
We recently upgrade our lucene library from 1.9.1 to 3.6.1 and we run into
multiple AlreadyClosedException when doing search. Here is the stack:

RetrievedDateMarker=2012-11-08 08:36:34.393 Error searching
Caused by: MMapIndexInput already
closed: MMapIndexInput(path="\\p7na02b\na01_mail03\\index\daily\20121031.main.index.3\_4ljc.frq")$


On the source code side, we open and did the search like this:

reader =;
searcher = new IndexSearcher( reader ); query, filter, collector );

I do not see any reason why this could happen. The IndexReader is not being
shared with other thread.

Bin Lan
Software Developer
Perimeter E-Security
O - (203)541-3412

Follow Us on Twitter:
Read Our Blog:

 The sender of this email subscribes to Perimeter E-Security's email
 anti-virus service. This email has been scanned for malicious code and is
 believed to be virus free. For more information on email security please
 This communication is confidential, intended only for the named recipient(s)
 above and may contain trade secrets or other information that is exempt from
 disclosure under applicable law. Any use, dissemination, distribution or
 copying of this communication by anyone other than the named recipient(s) is
 strictly prohibited. If you have received this communication in error, please
 delete the email and immediately notify our Command Center at 203-541-3444.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message