Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 16389 invoked from network); 9 Feb 2002 14:21:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Feb 2002 14:21:06 -0000 Received: (qmail 5807 invoked by uid 97); 9 Feb 2002 14:21:06 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 5791 invoked by uid 97); 9 Feb 2002 14:21:06 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 5774 invoked from network); 9 Feb 2002 14:21:05 -0000 Subject: Re: Web demo example: Errors from Tomcat startup From: "Andrew C. Oliver" To: Lucene Developers List In-Reply-To: <01e901c1b16d$b9b234a0$6401a8c0@darden.virginia.edu> References: <200202081526.KAA05574@kaley.East.Sun.COM> <1013259237.20330.83.camel@linux2.superlinksoftware.com> <01e901c1b16d$b9b234a0$6401a8c0@darden.virginia.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 09 Feb 2002 09:08:56 -0500 Message-Id: <1013263736.20330.145.camel@linux2.superlinksoftware.com> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have no objection provided that: 1. Everything be kept simple enough for someone who is just getting started to follow. Don't forget that the getting started guide and instructions assume you're using a pre-built lucene or know how to build it. 2. You update the getting started guide to reflect the changes you make. (though we might not want to update the website since the production version will be different) -- (If you don't then I will but I'd rather the person who makes the change update the docs so that they are accurate and not my fuzzy understanding).. On Sat, 2002-02-09 at 08:28, Erik Hatcher wrote: > Moving over to lucene-dev... > > How about we make the Lucene pre-built demo even more self-contained (or > have two). I'll contribute my Ant task to build an index, and we can hook > it into building an index of all of Lucene's documentation (there is a > dependency on JTidy, however). Then the WAR will contain the 'index' > directory already which can then be searched right away. > > This would work even better if the Lucene FAQ was moved over to Jakarta's > CVS so there would be more "meat" to find through searching. Also, the > javadoc generated output could be created before indexing to add even more > goodies. > > Seem reasonable? If ok'd I'll tidy up my rough task and submit it. > Whoever makes improvements to it will (if they want) get accolades in an > upcoming Ant book! :) > > Erik > > > > ----- Original Message ----- > From: "Andrew C. Oliver" > To: "Lucene Users List" > Sent: Saturday, February 09, 2002 7:53 AM > Subject: Re: Web demo example: Errors from Tomcat startup > > > > Hey Don, > > > > My earlier correction was only half right. I read it over again, walked > > through it and corrected it. The error you got below was because you > > left off the directory at the end (in the instructions it was "..").. > > I've clarified the instructions and corrected them... Thanks for > > reporting these documentation bugs ;-). > > > > -Andy > > > > On Fri, 2002-02-08 at 10:25, 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: > > > > > > dpg% cd $TOMCAT_HOME/webapps/ > > > dpg% java -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: > > > > > > -- > > www.superlinksoftware.com > > www.sourceforge.net/projects/poi - port of Excel format to java > > http://developer.java.sun.com/developer/bugParade/bugs/4487555.html > > - fix java generics! > > > > > > The avalanche has already started. It is too late for the pebbles to > > vote. > > -Ambassador Kosh > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- www.superlinksoftware.com www.sourceforge.net/projects/poi - port of Excel format to java http://developer.java.sun.com/developer/bugParade/bugs/4487555.html - fix java generics! The avalanche has already started. It is too late for the pebbles to vote. -Ambassador Kosh -- To unsubscribe, e-mail: For additional commands, e-mail: