Fwd: Please Help debugging java.lang.NumberFormatException: empty String

2009-02-12 Thread Joshua Kaiser
Hi,

I'm very new to Solr.  I've tried searching archives for this error, but
haven't found it.  If this is something that may be found in a faq or
existing forum, please feel free to point me there.

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
org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateRequestHandler.java:123)
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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Any pointers to a log file that I could look at or approaches to solving
this would be greatly appreciated.  Thanks in advance.

Joshua


Re: Please Help debugging java.lang.NumberFormatException: empty String

2009-02-12 Thread Joshua Kaiser
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  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.
>