Hi Terry:
Thanks for your response. After some more debugging work I found a problem with the way I was creating my IndexWriter. Richard C. Belanger Chief Technology Officer Forrester Research 400 Technology Square Cambridge, MA 02139 [EMAIL PROTECTED] http://www.forrester.com "Terry Steichen" To: "Lucene Users List" <[EMAIL PROTECTED]> <terry@net-fra cc: me.com> Subject: Re: Problem with addDocument returning java.lang.NullPointerException 09/19/2002 07:54 PM Please respond to "Lucene Users List" Richard, You need to provide a bit more info before anyone (or, more specifically, I) will be able to assist you. I infer from what you've said that your source documents are PDF? What sort of Document class are you using? If you aren't checking for null fields, the sort of behavior you're describing is inevitable. Regards, Terry ----- Original Message ----- From: "Richard Belanger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 5:37 PM Subject: Problem with addDocument returning java.lang.NullPointerException > Hello: > > I am building a Lucene application and I am getting a NullPointerException > when calling addDocument. Invoking the toString method on my Document jst > before the addDocument call gives: > > Document<Text<contents:java.io.BufferedReader@5> > Keyword<modified:0d4nk0hs0> Text<title:Millionaires Last Hope For > Telematics> Text<path:\PDFDirectory\2002\Millionaires Last Hope For > Telematics.pdf>> > > Which seems to be ok. Commenting out individual fields seems to make no > difference. Any suggestions of what I could be doing wrong would be > appreciated. > > Rich > > Richard C. Belanger > Chief Technology Officer > Forrester Research > 400 Technology Square > Cambridge, MA 02139 > > [EMAIL PROTECTED] > http://www.forrester.com > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
