lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: NullPointerException
Date Sat, 27 Sep 2008 08:46:35 GMT

It looks like either "null" was passed to Document.addField(...), or,  
a Field instance with "null" as its name was added to the document?

Mike

Noble Paul നോബിള്‍ नोब्ळ् wrote:

> Any idea on how this exception can happen?
>
>
> ---------- Forwarded message ----------
> From: Dinesh Gupta <dinesh.gupta01@hotmail.com>
> Date: Thu, Sep 25, 2008 at 7:09 PM
> Subject: NullPointerException
> To: solr-user@lucene.apache.org
>
>
> Hi All,
>
> I have attached my file.
>
> I am getting exception.
>
> Please suggest me how to short-out this issue.
>
>
>
> WARNING: Error creating document :
> SolrInputDocumnt[{id=id(1.0)={93146}, ttl=ttl(1.0)={Majestic from
> Pushpams.com}, cdt=cdt(1.0)={2001-09-04 15:40:40.0},
> mdt=mdt(1.0)={2008-09-23 17:47:44.0}, prc=prc(1.0)={600.00}}]
> java.lang.NullPointerException
>    at org.apache.lucene.document.Document.getField(Document.java:140)
>    at  
> org 
> .apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java: 
> 283)
>    at  
> org 
> .apache 
> .solr 
> .update 
> .processor 
> .RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:58)
>    at  
> org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java: 
> 69)
>    at org.apache.solr.handler.dataimport.DataImportHandler 
> $1.upload(DataImportHandler.java:288)
>    at  
> org 
> .apache 
> .solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:319)
>    at  
> org 
> .apache 
> .solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:178)
>    at  
> org 
> .apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java: 
> 136)
>    at  
> org 
> .apache 
> .solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java: 
> 334)
>    at  
> org 
> .apache 
> .solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:386)
>    at  
> org 
> .apache 
> .solr 
> .handler 
> .dataimport 
> .DataImportHandler.handleRequestBody(DataImportHandler.java:190)
>    at  
> org 
> .apache 
> .solr 
> .handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1204)
>    at  
> org 
> .apache 
> .solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:303)
>    at  
> org 
> .apache 
> .solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232)
>    at  
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 202)
>    at  
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>    at  
> org 
> .jboss 
> .web 
> .tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>    at  
> org 
> .apache 
> .catalina 
> .core 
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
> 202)
>    at  
> org 
> .apache 
> .catalina 
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>    at  
> org 
> .apache 
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
> 213)
>    at  
> org 
> .apache 
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
> 178)
>    at  
> org 
> .jboss 
> .web 
> .tomcat 
> .security 
> .SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>    at  
> org 
> .jboss 
> .web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>
> ________________________________
> MSN Technology brings you the latest on gadgets, gizmos and the new
> hits in the gaming market. Try it now!
>
>
> -- 
> --Noble Paul
> < 
> schema 
> .xml 
> > 
> < 
> solrconfig 
> .xml 
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


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


Mime
View raw message