, February 22, 2003 5:32 PM
Subject: Re: IndexWriter addDocument NullPointerException
On Friday 21 February 2003 13:22, Günter Kukies wrote:
Hello,
I don't have any line number.
You unfortunately do need to know the line number, if you do get an
exception
and try to see where
, writer is never null and I can't add null-fields to a
document.
Günter
- Original Message -
From: Otis Gospodnetic [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 3:07 PM
Subject: Re: IndexWriter addDocument NullPointerException
My guess
/1045735974850_0
001_hda.pdf
java.lang.NullPointerException
hallo2
Günter
- Original Message -
From: Tatu Saloranta [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 5:32 PM
Subject: Re: IndexWriter addDocument NullPointerException
Gospodnetic [EMAIL PROTECTED]
To: Lucene Users List [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 4:31 PM
Subject: Re: IndexWriter addDocument NullPointerException
If I were you I would make things simpler for myself by converting the
code to something that I could run from the command line instead
:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 17:52
An: Lucene Users List
Betreff: Re: IndexWriter addDocument NullPointerException
I switched off the -server switch from the java commandline options and
everything works fine now.
I changed nothing in my code.
So is it principly possible
: Saturday, February 22, 2003 5:32 PM
Subject: Re: IndexWriter addDocument NullPointerException
On Friday 21 February 2003 13:22, Günter Kukies wrote:
Hello,
I don't have any line number.
You unfortunately do need to know the line number, if you do get an
exception
and try to see where it occurs
On Friday 21 February 2003 13:22, Günter Kukies wrote:
Hello,
I don't have any line number.
You unfortunately do need to know the line number, if you do get an exception
and try to see where it occurs.
Another less frequent problem is that you actually get the exception as an
object and
:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: IndexWriter addDocument NullPointerException
Hello,
I don't have any line number.
this is the code snippet:
Document doc;
IndexWriter writer;
.
try{
writer.addDocument(doc
Günter Kukies wrote:
Hello,
I don't have any line number.
this is the code snippet:
Document doc;
IndexWriter writer;
.
try{
writer.addDocument(doc);
}
catch(Exception ex){
ex.printStackTrace();
}
this is the output on Standard.out:
java.lang.NullPointerException
printStackTrace()