Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 49287 invoked from network); 18 Sep 2009 16:44:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 16:44:04 -0000 Received: (qmail 29018 invoked by uid 500); 18 Sep 2009 16:44:01 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 28833 invoked by uid 500); 18 Sep 2009 16:44:01 -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 28814 invoked by uid 99); 18 Sep 2009 16:44:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 16:44:01 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MISSING_MIMEOLE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Chris.Bamford@scalix.com designates 82.111.253.243 as permitted sender) Received: from [82.111.253.243] (HELO mail.uk.scalix.com) (82.111.253.243) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 16:43:48 +0000 Received: from mail.uk.scalix.com (localhost.localdomain [127.0.0.1]) by mail.uk.scalix.com (8.13.8/8.13.8) with ESMTP id n8IGhJFe016164 for ; Fri, 18 Sep 2009 17:43:19 +0100 Received: from mail.uk.scalix.com (mail.uk.scalix.com [10.11.108.216]) by mail.uk.scalix.com (Scalix SMTP Relay 11.5.0.13292) via ESMTP; Fri, 18 Sep 2009 17:43:18 +0100 (BST) Date: Fri, 18 Sep 2009 17:43:18 +0100 From: Chris Bamford To: java-user@lucene.apache.org Message-ID: <1901609532.1881253292198611.JavaMail.root@mail.uk.scalix.com> Subject: RE: New "Stream closed" exception with Java 6 - solved X-MSMail-Priority: medium x-scalix-Hops: 1 X-Mailer: Scalix 11.4.5.12178 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_30_817989197.1253292198608" X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.uk.scalix.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,MISSING_MIMEOLE autolearn=ham version=3.2.5 ------=_Part_30_817989197.1253292198608 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Hoss, > not really ... adding a document multiple times is a perfectly legal use > case, adding a document with a "Reader" based field where the reader is > already closed ... that's not legal (And Lucene doesn't really have any > way of knowing if the Reader is closed because *it* closed it. > Now I am confused, I must be missing something fundamental. I take no action that I am aware of which closes the Reader, so how is it happening? The attached code demonstrates the exception - please can you advise on what is happening under the covers? :-) Thanks again, - Chris ----- Original Message ----- From: Chris Hostetter Sent: Thu, 17/9/2009 7:38pm To: java-user@lucene.apache.org Subject: RE: New "Stream closed" exception with Java 6 - solved : It turns out that the cause of the exceptions is in fact adding an item : twice - so you were correct right at the start :-) I ran a test where I glad to see it all worked out. : Just a minor point: isn't Lucence in a position to detect the duplicate : insertion attempt and flag it with something less vague than "Stream : closed"? :-) not really ... adding a document multiple times is a perfectly legal use case, adding a document with a "Reader" based field where the reader is already closed ... that's not legal (And Lucene doesn't really have any way of knowing if the Reader is closed because *it* closed it. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ------=_Part_30_817989197.1253292198608 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ------=_Part_30_817989197.1253292198608--