lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-643) Error when tried to index with IndexWriter on Luncene 2.0
Date Tue, 01 Aug 2006 11:25:14 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-643?page=comments#action_12424828 ] 
            
Grant Ingersoll commented on LUCENE-643:
----------------------------------------

Can you please provide more information?  Line numbers for the stack trace, the code used
to setup.  A nice JUnit test that shows the error.

Thanks,
Grant

> Error when tried to index with IndexWriter on Luncene 2.0
> ---------------------------------------------------------
>
>                 Key: LUCENE-643
>                 URL: http://issues.apache.org/jira/browse/LUCENE-643
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>         Environment: Windows 2000/ Jdk 1.4
>            Reporter: sherin george
>
> Dear Sir,
> I am getting the following runtime exception when I tried to integrate Lucene 2.0 with
my java application. 
> Java.lang.ExceptionInInitializerError:Java.lang.NullPointerException
> at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter)
> I have identified that the exception occurs at execution of the following line of code
which indexes a document.
> IndexWriter iwriter=new IndexWriter(directory,analyzer,true);
> writer.addDocument(doc);
> writer.close
> I have checked all objects like directory,doc and analayzer for null conditions but they
all have specific values.  I have even tried to execute the sample code provided with the
javadoc API documentation but in vain.
> Any kind of solutions (including pseudo codes) are welcome
> Thanks in advance,
> Sherin George

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message