Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 10626 invoked from network); 23 Oct 2009 16:28:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 16:28:30 -0000 Received: (qmail 73271 invoked by uid 500); 23 Oct 2009 16:28:26 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 73229 invoked by uid 500); 23 Oct 2009 16:28:25 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 73179 invoked by uid 99); 23 Oct 2009 16:28:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 16:28:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [139.56.8.26] (HELO mail-fw.broadvision.com) (139.56.8.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 16:28:17 +0000 X-ASG-Debug-ID: 1256315275-6b8c00a50000-H1Y1KX X-Barracuda-URL: http://mail-fw.broadvision.com:8000/cgi-bin/mark.cgi Received: from RW-EX2003.BROADVISION.COM (localhost [127.0.0.1]) by mail-fw.broadvision.com (Spam Firewall) with ESMTP id 01F5595C0B for ; Fri, 23 Oct 2009 09:27:56 -0700 (PDT) Received: from RW-EX2003.BROADVISION.COM (rw-ex2003.broadvision.com [10.10.160.33]) by mail-fw.broadvision.com with ESMTP id SmxYV7Plkx2wurrB for ; Fri, 23 Oct 2009 09:27:56 -0700 (PDT) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-ASG-Orig-Subj: RE: Lucene 1.4.3 "Already closed" IOException Subject: RE: Lucene 1.4.3 "Already closed" IOException Date: Fri, 23 Oct 2009 09:27:55 -0700 Message-ID: In-Reply-To: <9ac0c6aa0910210312u477d1539idd5e81c8fa57fa7f@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Lucene 1.4.3 "Already closed" IOException Thread-Index: AcpSNxEPdcjPZ3FRTRGHbhNwiQACyQBxAlsQ From: "Zhang, Lisheng" To: X-Barracuda-Connect: rw-ex2003.broadvision.com[10.10.160.33] X-Barracuda-Start-Time: 1256315276 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at broadvision.com X-Virus-Checked: Checked by ClamAV on apache.org Hi Michael and Ian, Thanks very much for helps, I will investigate and test more. Best regards, Lisheng -----Original Message----- From: Michael McCandless [mailto:lucene@mikemccandless.com] Sent: Wednesday, October 21, 2009 3:13 AM To: java-user@lucene.apache.org Subject: Re: Lucene 1.4.3 "Already closed" IOException Make sure you are not closing the IndexSearcher while still using a Hits object obtained from it in the past. Hits goes back and re-runs the search if you iterate deep enough... Mike On Wed, Oct 21, 2009 at 5:39 AM, Ian Lea wrote: > 1.4.3? =A0How old is that? =A0Maybe time to consider an upgrade. > > Anyway, if you're getting that exception when creating a searcher I > guess you are using a constructor that takes an IndexReader and a > further guess would be that something has closed it. > > -- > Ian. > > > On Tue, Oct 20, 2009 at 6:41 PM, Zhang, Lisheng > wrote: >> Hi, >> >> We are using lucene 1.4.3, sometimes we encounter an error when = creating >> Searcher object with IOException: "Already closed". >> >> I searched lucene message archive but did not see conclusive answer, = any >> help would be very appreciated. >> >> Best regards, Lisheng >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org