lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: NPE
Date Fri, 18 Sep 2009 15:32:58 GMT
Looks like one of the hazards of changing the schema w/o deleting the
index and re-indexing.
I bet this field was something like a numeric type that would return
null from Field.getStringValue() and then it was changed to a text
type.

-Yonik
http://www.lucidimagination.com



On Fri, Sep 18, 2009 at 11:15 AM, Grant Ingersoll <gsingers@apache.org> wrote:
> Anyone else seeing:
> SEVERE: java.lang.NullPointerException
>        at org.apache.solr.request.XMLWriter.writePrim(XMLWriter.java:761)
>        at org.apache.solr.request.XMLWriter.writeStr(XMLWriter.java:619)
>        at org.apache.solr.schema.TextField.write(TextField.java:45)
>        at org.apache.solr.schema.SchemaField.write(SchemaField.java:108)
>        at org.apache.solr.request.XMLWriter.writeDoc(XMLWriter.java:311)
>        at org.apache.solr.request.XMLWriter$3.writeDocs(XMLWriter.java:483)
>        at
> org.apache.solr.request.XMLWriter.writeDocuments(XMLWriter.java:420)
>        at org.apache.solr.request.XMLWriter.writeDocList(XMLWriter.java:457)
>        at org.apache.solr.request.XMLWriter.writeVal(XMLWriter.java:520)
>        at
> org.apache.solr.request.XMLWriter.writeResponse(XMLWriter.java:130)
>        at
> org.apache.solr.request.XMLResponseWriter.write(XMLResponseWriter.java:34)
>        at
> org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325)
>        at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
>
> When running the example and doing a simple query?
>

Mime
View raw message