Re: Empty doc objects & "The handle is invalid" IOExceptions

2006-08-25 Thread MarkWilliams
>> help me. >> >> I have Lucene indexing my site ok, but the problem is with queries. >> >> Search is fine with some terms but when searching with certain other >> terms, >> it seems mainly with terms containing spaces, although others have caused >&g

Re: Empty doc objects & "The handle is invalid" IOExceptions

2006-08-23 Thread Andrzej Bialecki
spaces, although others have caused problems, I get the IOException error "The handle is invalid". I have debuged my app. and for some reason, the hits object is being filled with mostly null doc objects and some doc objects with field values, however when trying to loop through the hits obj

Empty doc objects & "The handle is invalid" IOExceptions

2006-08-23 Thread MarkWilliams
have caused problems, I get the IOException error "The handle is invalid". I have debuged my app. and for some reason, the hits object is being filled with mostly null doc objects and some doc objects with field values, however when trying to loop through the hits object, I get the &quo

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Hi Erik, It is really beacause of the IndexReader. I correct it and it's OK now. Thank a lot! Best Regards, Jiang 2006/8/2, zhu jiang <[EMAIL PROTECTED]>: Yep, I close the IndexReader before navigating Hits. Isn't it permitted? 2006/8/2, Erik Hatcher <[EMAIL PROTECTED]>: > Are you perha

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Yep, I close the IndexReader before navigating Hits. Isn't it permitted? 2006/8/2, Erik Hatcher <[EMAIL PROTECTED]>: Are you perhaps closing IndexReader or IndexSearcher before or while navigating Hits? Erik On Aug 1, 2006, at 1:05 PM, zhu jiang wrote: > Hi Erik, > >I use multi-t

Re: The handle is invalid

2006-08-01 Thread Erik Hatcher
Are you perhaps closing IndexReader or IndexSearcher before or while navigating Hits? Erik On Aug 1, 2006, at 1:05 PM, zhu jiang wrote: Hi Erik, I use multi-threads to add lots of documents while querying. At the begining,the query result is right, but after a while, when I quer

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Hi Simon, I have stepped into the program. The cause of the null argument is that when I get the hits object after one query, the method of Hits.id throws exceptions. The essential cause is the invalid handle. What should I do? 2006/8/2, Simon Willnauer <[EMAIL PROTECTED]>: Could be the "j

Re: The handle is invalid

2006-08-01 Thread Simon Willnauer
Could be the "java.lang.IllegalArgumentException: Argument cannot be null" the cause of your problem. Rootcauses of exceptions are always the bottom aren't they? simon On 8/1/06, zhu jiang <[EMAIL PROTECTED]> wrote: Hi Erik, I use multi-threads to add lots of documents while querying. At

Re: The handle is invalid

2006-08-01 Thread zhu jiang
Hi Erik, I use multi-threads to add lots of documents while querying. At the begining,the query result is right, but after a while, when I query again, the exception thrown.Here is the stack trace: java.io.IOException: invalid handle at java.io.RandomAccessFile.seek(Native Method) at org.apac

Re: The handle is invalid

2006-08-01 Thread Erik Hatcher
On Jul 31, 2006, at 11:34 PM, zhu jiang wrote: When I query, I got this exception:The handle is invalid. What should I do? You should give us a much more complete error message, including the stack trace. :) Erik -

The handle is invalid

2006-07-31 Thread zhu jiang
Hi All, When I query, I got this exception:The handle is invalid. What should I do? Thanks, Jiang