Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 99094 invoked from network); 23 Feb 2004 17:32:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Feb 2004 17:32:00 -0000 Received: (qmail 18085 invoked by uid 500); 23 Feb 2004 17:31:48 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 18058 invoked by uid 500); 23 Feb 2004 17:31:47 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 18045 invoked from network); 23 Feb 2004 17:31:47 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by daedalus.apache.org with SMTP; 23 Feb 2004 17:31:47 -0000 Received: from apache.org (c-24-5-145-151.client.comcast.net[24.5.145.151]) by comcast.net (rwcrmhc11) with ESMTP id <2004022317315101300q7u1ee>; Mon, 23 Feb 2004 17:31:51 +0000 Message-ID: <403A3904.9020204@apache.org> Date: Mon, 23 Feb 2004 09:31:48 -0800 From: Doug Cutting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: problem with SearchFiles demo References: <20040223111113.4094.qmail@web12701.mail.yahoo.com> <003501c3fa31$a46f87a0$514011ac@LOOKSMART10574> In-Reply-To: <003501c3fa31$a46f87a0$514011ac@LOOKSMART10574> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Michael, What JVM and OS are you using? Your attachment did not make it through. If you continue to have problems please submit a bug report and attach test code there. Thanks, Doug Michael A. Schoen wrote: > I am using 1.3-final. Specifically I'm using the jar files from > lucene-1.3-final.zip. > > Any other ideas? > > ----- Original Message ----- > From: "Otis Gospodnetic" > To: "Lucene Users List" > Sent: Monday, February 23, 2004 3:11 AM > Subject: Re: problem with SearchFiles demo > > > >>I remember somebody reporting a similar problem a few months ago. The >>problem has been fixed since then. You need 1.3-final version Lucene. >>You didn't say if that is what you are using. >> >>Otis >> >>--- "Michael A. Schoen" wrote: >> >>>I'm sure there's some obvious explanation for this that I'm missing >>>-- I >>>can't get the SearchFiles demo class to work. I can successfully use >>>the >>>IndexFiles class to index a directory, but searching doesn't work; I >>>just >>>get a NullPointerException. >>> >>>So I wrote my own Search class, which is basically just a slightly >>>tweaked >>>version of SearchFiles. And I get a NullPointerException there as >>>well. I >>>added a stack trace, which shows the exception coming from >>>IndexSearcher.explain(). >>> >>>Any ideas? >>> >>>I've attached the source for Search.java, and below is the stack >>>trace. >>> >>>thanks, >>>Michael >>> >>> >>> >>>>$ java Search >>>>Query: casino >>>>Searching for: casino >>>> caught a class java.lang.NullPointerException >>>> with message: null >>>>java.lang.NullPointerException >>>> at >>> >>org.apache.lucene.search.IndexSearcher.explain(IndexSearcher.java:196) >> >>>> at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:93) >>>> at org.apache.lucene.search.Hits.(Hits.java:80) >>>> at >>> >>>org.apache.lucene.search.Searcher.search(Searcher.java:71) >>> >>>> at >>> >>>org.apache.lucene.search.Searcher.search(Searcher.java:65) >>> >>>> at Search.main(Search.java:35) >>>> >>>> >>> >>--------------------------------------------------------------------- >> >>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: lucene-user-help@jakarta.apache.org >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org