Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 31856 invoked from network); 22 Oct 2003 16:45:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Oct 2003 16:45:37 -0000 Received: (qmail 91719 invoked by uid 500); 22 Oct 2003 16:45:16 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 91693 invoked by uid 500); 22 Oct 2003 16:45:16 -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 91661 invoked from network); 22 Oct 2003 16:45:15 -0000 Received: from unknown (HELO web12708.mail.yahoo.com) (216.136.173.245) by daedalus.apache.org with SMTP; 22 Oct 2003 16:45:15 -0000 Message-ID: <20031022164518.77108.qmail@web12708.mail.yahoo.com> Received: from [194.152.224.89] by web12708.mail.yahoo.com via HTTP; Wed, 22 Oct 2003 09:45:18 PDT Date: Wed, 22 Oct 2003 09:45:18 -0700 (PDT) From: Otis Gospodnetic Subject: Re: Weird NPE in RAMInputStream when merging indices To: Lucene Users List In-Reply-To: <2F93FA84-04AB-11D8-9B60-000393760B7E@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 That's why I emphasized that Hashtable doesn't allow nulls. If this is happening often, then yes, that is the thing to be suspicious about, and is easily to test by modifying your local copy of RAMDirectory. Otis --- petite_abeille wrote: > Hi Otis, > > On Wednesday, Oct 22, 2003, at 18:06 Europe/Amsterdam, Otis > Gospodnetic > wrote: > > > Since 'files' is a Hashtable, neither the key nor the value (file) > can > > be null, even though the NPE in RAMInputStream constructor implies > that > > file was null. > > Yep... pretty weird... but looking at openFile(String name)... could > it > somehow be possible that the name is invalid for some reasons and > therefore doesn't exists in the Hashtable? So files.get(name) would > return null and new RAMInputStream(file) would then raise a NPE? > > This would not explain why the name is invalid in the first place... > but that could be a start for an investigation... what do you think? > > Cheers, > > PA. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org