[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-dev
Subject: Re: Bug: RAMDirectory: line 158 - NPE
From: Otis Gospodnetic <otis_gospodnetic () yahoo ! com>
Date: 2001-11-27 7:06:08
[Download RAW message or body]
--- Otis Gospodnetic <otis_gospodnetic@yahoo.com> wrote:
> Hello,
>
> I'm getting the following exception when using RAMDirectory:
>
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.lucene.store.RAMInputStream.<init>(RAMDirectory.java:158)
> at
> org.apache.lucene.store.RAMDirectory.openFile(RAMDirectory.java:123)
> at
> ...
> ...
>
> I'm using the stuff from CVS.
> Attached is a standalone example that causes this Exception to be
> thrown.
>
> The file on line 153 on which '.length' is being called at line 123
> is
> null for some reason...
>
> Am I doing something wrong?
Yes, you are closing writers in flush() method and then adding
documents to them, etc.
Otis
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic