Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 25087 invoked from network); 9 Feb 2002 01:35:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Feb 2002 01:35:55 -0000 Received: (qmail 8729 invoked by uid 97); 9 Feb 2002 01:36:01 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 8713 invoked by uid 97); 9 Feb 2002 01:36:00 -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 8702 invoked from network); 9 Feb 2002 01:36:00 -0000 Message-ID: <1796796859.1013218263984.JavaMail.SYSTEM@webmail> Date: Fri, 8 Feb 2002 17:31:03 -0800 (PST) From: acoliver Reply-To: acoliver@nc.rr.com To: lucene-user@jakarta.apache.org, Donald.Gilchrest@Sun.COM Subject: Re: Re: Web demo example: Errors from Tomcat startup Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: E-mailanywhere V2.0 (Windows) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N you left off the last argument >On Fri, 8 Feb 2002 10:25:55 -0500 (EST) Don Gilchrest - Sun Microsystems wrote. >Hi Andy, > >Thanks for clarifying the demo instructions! > >Now, what about the NPE that Ken Munro cited (included below)? I'm >encountering this too: > >dpgd $TOMCAT_HOME/webapps/ >dpgava -verbose org.apache.lucene.demo.IndexHTML -create -index >/opt/lucene/index >.... >[Loaded java.io.RandomAccessFile from /usr/local/j2sdk1_3_1_02/jre/lib/rt.jar] > caught a class java.lang.NullPointerException > with message: null > >Could that be related to the NPE problem discussed in the "PhraseQuery: >NullPointerException" thread, for which Ian offered a possible >solution, included here: > >> Date: Fri, 08 Feb 2002 12:08:25 0000 >> From: Ian Lea >> Subject: Re: PhraseQuery: NullPointerException >> 1.2-rc3 seems to generate NPE if one or more of the words in >> the search phrase are not present in the index. >> Works as expected, no NPE, with 1.2-rc2. >> >> If change method seek() in org.apache.lucene.index.SegmentTermPositions from >> >> final void seek(TermInfo ti) throws IOException { >> super.seek(ti); >> proxStream.seek(ti.proxPointer); >> } >> >> to >> >> final void seek(TermInfo ti) throws IOException { >> super.seek(ti); >> if (ti != null) { >> proxStream.seek(ti.proxPointer); >> } >> } >> >> the NPE goes away. But I don't know what is going on here so >> this may well not be the correct solution. >> >> -- >> Ian. >> ian.lea@blackwell.co.uk > >Thanks again for your help with this. > >-don > >> Date: Wed, 06 Feb 2002 20:29:16 -0400 >> From: Ken Munro >> ... >> When I run "java org.apache.lucene.demo.IndexHTML -create -index >/opt/lucene/index", >> I get a null pointer exception (using either JDK 1.2 or 1.3). I am running Red >Hat 7.1, >> with the Sun JDKs. >> >> I set up this script to run it: >> #!/bin/bash >> /usr/java/jdk1.3.1_02/bin/java -verbose -cp >/usr/java/lucene-1.2-rc3-bin/lucene-1.2-rc3.jar:/usr/java/lucene-1.2-rc3-bin/luc >ene-demos-1.2-rc3.jar org.apache.lucene.demo.IndexHTML -create -index >/opt/lucene/index >> >> And here is the (verbose--hope its not too much) output: >> ... >> [Loaded java.io.RandomAccessFile from /usr/java/jdk1.3.1_02/jre/lib/rt.jar] >> caught a class java.lang.NullPointerException >> with message: null >> [Loaded java.lang.Shutdown$Lock from /usr/java/jdk1.3.1_02/jre/lib/rt.jar] >> >> Thanks for all your help. >> >> Cheers. >> >> Ken Munro >> >> -- >> Ken Munro >> Main Sail Productions >> http://www.mainsail.ca/ >> ken@mainsail.ca >> 902.431.WWW3 >> >> -- > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: