I've had a problem similar to this and it was because of the
schema.xml. It was valid XML but there were some incorrect field
definitions and/or the default field listed was not a defined field.

I'd suggest you start with the default schema and build on it piece by
piece, each time testing for the error with a "ping" operation in the
admin page.

Kevin

On 10/11/06, mark <[EMAIL PROTECTED]> wrote:
Hi,

I have installed solr under a stand alone tomcat5.5 installation. I
can see the admin screens etc.

When I submit documents I get this error

Oct 11, 2006 10:05:44 AM org.apache.solr.core.SolrException
logSEVERE: java.lang.NullPointerException
         at org.apache.solr.update.DocumentBuilder.addField
(DocumentBuilder.java:78)
at org.apache.solr.update.DocumentBuilder.addField
(DocumentBuilder.java:74)
at org.apache.solr.core.SolrCore.readDoc(SolrCore.java:917)
  at org.apache.solr.core.SolrCore.update(SolrCore.java:685)
at org.apache.solr.servlet.SolrUpdateServlet.doPost
(SolrUpdateServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
.....


My docs follow this schema:

  <fields>
    <field name="id" type="string" indexed="false" stored="true"/>
    <field name="timestamp" type="string" indexed="true" stored="true"/>
    <field name="url" type="string" indexed="false" stored="true"/>
    <field name="collection" type="text_ws" indexed="true"
stored="true"/>
    <field name="mimetype" type="string" indexed="true" stored="true"/>
   <field name="content" type="text" indexed="true" stored="false"/>
</fields>

Also - since getting this error I can no longer see part of the solr/
admin/stats.jsp screen - the boxes core, update , cache and other are
now empty. I deleted and reinstalled solr  (including the unpacked
webapps dir) but not tomcat and the problem is still there....

cheers

mark

Reply via email to