RE: New "Stream closed" exception with Java 6 - solved

2009-09-21 Thread Chris Bamford
Understood. Thanks Hoss. - Chris - Original Message - From: Chris Hostetter Sent: Fri, 18/9/2009 5:58pm To: java-user@lucene.apache.org Subject: RE: New "Stream closed" exception with Java 6 - solved : > not really ... adding a document multiple times is a perfec

RE: New "Stream closed" exception with Java 6 - solved

2009-09-18 Thread Chris Hostetter
: > 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.

RE: New "Stream closed" exception with Java 6 - solved

2009-09-18 Thread Chris Bamford
ers? :-) 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 : t

RE: New "Stream closed" exception with Java 6 - solved

2009-09-17 Thread Chris Hostetter
: 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 so

RE: New "Stream closed" exception with Java 6 - solved

2009-09-16 Thread Chris Bamford
nks to you, Mark and Grant for all your help on this - much appreciated. - Chris - Original Message - From: Chris Hostetter Sent: Tue, 15/9/2009 6:37pm To: java-user@lucene.apache.org Subject: RE: New "Stream closed" exception with Java 6 : "it's possibly you just h

RE: New "Stream closed" exception with Java 6

2009-09-15 Thread Chris Hostetter
: "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 : aga

Re: New "Stream closed" exception with Java 6

2009-09-15 Thread Grant Ingersoll
umption is that 2.4 is stable (we are moving from 2.0 to 2.4 at present) - should I reconsider that assumption? Thanks for any ideas. - Chris - Original Message - From: Mark Miller Sent: Tue, 8/9/2009 8:06pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" e

RE: New "Stream closed" exception with Java 6

2009-09-15 Thread Chris Bamford
- should I reconsider that assumption? Thanks for any ideas. - Chris - Original Message - From: Mark Miller Sent: Tue, 8/9/2009 8:06pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6 Chris Hostetter wrote: > : I'm coming to the

RE: New "Stream closed" exception with Java 6

2009-09-10 Thread Chris Bamford
om: 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 ... :-) caref

RE: New "Stream closed" exception with Java 6

2009-09-09 Thread Chris Bamford
Thanks for your input Mark and Chris. I will take all into account Chris - Original Message - From: Mark Miller Sent: Tue, 8/9/2009 8:06pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6 Chris Hostetter wrote: > : I'm

Re: New "Stream closed" exception with Java 6

2009-09-08 Thread Mark Miller
Chris Hostetter wrote: > : 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

RE: New "Stream closed" exception with Java 6

2009-09-08 Thread Chris Hostetter
: 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 Luce

RE: New "Stream closed" exception with Java 6

2009-09-04 Thread Chris Bamford
- Chris Chris Bamford Senior Development Engineer Scalix chris.bamf...@scalix.com Tel: +44 (0)1344 381814 www.scalix.com - Original Message - From: Grant Ingersoll Sent: Thu, 3/9/2009 2:59pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6

Re: New "Stream closed" exception with Java 6

2009-09-03 Thread Grant Ingersoll
s, - Chris ----- Original Message - From: Daniel Shane Sent: Tue, 1/9/2009 10:52pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6 I think you should do this instead (it will print the exception message *and* the stack trace instead of onl

RE: New "Stream closed" exception with Java 6

2009-09-02 Thread Chris Bamford
aniel Shane Sent: Tue, 1/9/2009 10:52pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6 I think you should do this instead (it will print the exception message *and* the stack trace instead of only the message) : throw new IndexerException (&quo

Re: New "Stream closed" exception with Java 6

2009-09-01 Thread Daniel Shane
quot; - " + ex.toString()); } Thanks, - Chris Chris Bamford Senior Development Engineer Scalix chris.bamf...@scalix.com Tel: +44 (0)1344 381814 www.scalix.com - Original Message - From: Grant Ingersoll Sent: Sat, 29/8/2009 12:00pm To: java-user@lucene.apache.org Subject:

RE: New "Stream closed" exception with Java 6

2009-09-01 Thread Chris Bamford
attached. > > Thanks, > > - Chris > > > - Original Message - > From: Grant Ingersoll > Sent: Fri, 28/8/2009 1:26pm > To: java-user@lucene.apache.org > Subject: Re: New "Stream closed" exception with Java 6 > > Are there any log messages a

Re: New "Stream closed" exception with Java 6

2009-08-29 Thread Grant Ingersoll
: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6 Are there any log messages around that spot? Did something happen to the underlying Reader you are using? Can you share that little bit of indexing code? On Aug 27, 2009, at 10:11 AM, Chris Bamford w

RE: New "Stream closed" exception with Java 6

2009-08-28 Thread Chris Bamford
Hi Grant Please see attached. Thanks, - Chris - Original Message - From: Grant Ingersoll Sent: Fri, 28/8/2009 1:26pm To: java-user@lucene.apache.org Subject: Re: New "Stream closed" exception with Java 6 Are there any log messages around that spot? Did something happe

Re: New "Stream closed" exception with Java 6

2009-08-28 Thread Grant Ingersoll
Are there any log messages around that spot? Did something happen to the underlying Reader you are using? Can you share that little bit of indexing code? On Aug 27, 2009, at 10:11 AM, Chris Bamford wrote: Hi, Since moving our app to Java 6 and Tomcat 6, we have started getting occasion

New "Stream closed" exception with Java 6

2009-08-27 Thread Chris Bamford
Hi, Since moving our app to Java 6 and Tomcat 6, we have started getting occasional exceptions of the form: java.io.IOException: Stream closed at sun.nio.cs.StreamDecoder.ensureOpen(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Un