I'm on version 1.3.0 My schema has the float and sfloat types defined, but doesn't have any float fields at all. I've rolled through my list of fields with required="true" and verified that none of them are empty. Additionally, there are no empty values being passed in the doc wrapper.
--------------------------------------------------- Joshua Kaiser Cell 720.212.1180 Home(Skype) 308.225.4163 PO Box 809 Boulder, CO 80306-0809 Marlene Dietrich - "Most women set out to try to change a man, and when they have changed him they do not like h... On Thu, Feb 12, 2009 at 11:55 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Fri, Feb 13, 2009 at 12:04 AM, Joshua Kaiser <joe...@gmail.com> wrote: > >> I'm having issues debugging an error on the Solr server when I attempt to >> add a document. My feeling is that it's ultimately an issue with my >> document not obeying my schema definition, but I have no clue how to track >> down the offending field. When I attempt to add a document I get an error >> back like this: >> >> Feb 12, 2009 10:32:40 AM org.apache.solr.common.SolrException log >> SEVERE: java.lang.NumberFormatException: empty String >> at >> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) >> at java.lang.Float.parseFloat(Float.java:394) >> at >> >> org.apache.solr.handler.XmlUpdateRequestHandler.readDoc(XmlUpdateRequestHandler.java:358) >> at >> >> org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateRequestHandler.java:195) >> at >> > > Which version of Solr are you using? From the stacktrace, it seems like you > have a float field and you are trying to add a empty string to that field. > > > -- > Regards, > Shalin Shekhar Mangar. >