Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 95258 invoked from network); 10 Sep 2009 09:13:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 09:13:07 -0000 Received: (qmail 35678 invoked by uid 500); 10 Sep 2009 09:13:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35589 invoked by uid 500); 10 Sep 2009 09:13:04 -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 35579 invoked by uid 99); 10 Sep 2009 09:13:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 09:13:04 +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; Thu, 10 Sep 2009 09:12:55 +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 n8A9CYtu014404 for ; Thu, 10 Sep 2009 10:12:34 +0100 Received: from mail.uk.scalix.com (mail.uk.scalix.com [10.11.108.216]) by mail.uk.scalix.com (Scalix SMTP Relay 11.4.5.13150) via ESMTP; Thu, 10 Sep 2009 10:12:33 +0100 (BST) Date: Thu, 10 Sep 2009 10:12:33 +0100 From: Chris Bamford To: java-user@lucene.apache.org Message-ID: <802289754.4941252573953010.JavaMail.root@mail.uk.scalix.com> Subject: RE: New "Stream closed" exception with Java 6 X-MSMail-Priority: medium x-scalix-Hops: 1 X-Mailer: Scalix 11.4.5.12178 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline 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 Hi Hoss, I have been thinking more about what you said (below) - could you please expand on the indented part of this sentence: "it's possibly you just have a simple bug where you are closing the reader before you pass it to Lucene, or maybe you are mistakenly adding the same field twice (or in two different documents)" Are you saying that if I were attempting to delete a doc and then add it again (e.g. update), but for some reason the delete didn't work, I would get a "Stream closed" exception? Thanks - Chris ----- Original Message ----- From: Chris Hostetter Sent: Tue, 8/9/2009 7:57pm To: java-user@lucene.apache.org Subject: RE: New "Stream closed" exception with Java 6 : I'm coming to the same conclusion - there must be >1 threads accessing this index at the same time. Better go figure it out ... :-) careful about your assumptions ... you could get this same type of exception even with only one thread, the stream that's being closed isn't internal to Lucene, it's the InputStreamReader you supplied as the value of some Field. it's possibly you just have a simple bug where you are closing hte reader before you pass it to Lucene, or maybe you are mistakenly adding the saame field twice (or in two different documents) -Hoss --------------------------------------------------------------------- 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