lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From darniz <rnizamud...@edmunds.com>
Subject Re: java.lang.NumberFormatException: For input string: ""
Date Thu, 03 Dec 2009 20:25:52 GMT

its strange i had a dismaxhandler and it had an empty value for ps field
i added a default value like 100 and the error disappeared.




markrmiller wrote:
> 
> Can you share the config files?
> 
> darniz wrote:
>> Hello All,
>>
>> i am getting this exception when i start solr. 
>> when i use hte original schema file and config file it is fine, but when
>> we
>> put our own schema file it gives the error.
>> i made sure we dont have any documents in our index. 
>> Still we get this error, any idea 
>> Cant figure out which field is causing the problem
>>
>> SEVERE: java.lang.NumberFormatException: For input string: ""
>>         at
>> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>>         at java.lang.Integer.parseInt(Integer.java:468)
>>         at java.lang.Integer.valueOf(Integer.java:553)
>>         at
>> org.apache.solr.common.util.DOMUtil.addToNamedList(DOMUtil.java:132)
>>         at
>> org.apache.solr.common.util.DOMUtil.nodesToNamedList(DOMUtil.java:98)
>>         at
>> org.apache.solr.common.util.DOMUtil.childNodesToNamedList(DOMUtil.java:88)
>>         at
>> org.apache.solr.common.util.DOMUtil.addToNamedList(DOMUtil.java:142)
>>         at
>> org.apache.solr.common.util.DOMUtil.nodesToNamedList(DOMUtil.java:98)
>>         at
>> org.apache.solr.common.util.DOMUtil.childNodesToNamedList(DOMUtil.java:88)
>>         at org.apache.solr.core.PluginInfo.<init>(PluginInfo.java:54)
>>         at
>> org.apache.solr.core.SolrConfig.readPluginInfos(SolrConfig.java:220)
>>         at
>> org.apache.solr.core.SolrConfig.loadPluginInfo(SolrConfig.java:212)
>>         at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:184)
>>         at
>> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
>>         at
>> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
>>         at
>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>         at
>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
>>         at
>> org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>>         at
>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
>>         at
>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
>>         at
>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>         at
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>>         at
>> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>         at
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>         at
>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>>         at org.mortbay.jetty.Server.doStart(Server.java:210)
>>         at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>>         at
>> org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.mortbay.start.Main.invokeMain(Main.java:183)
>>         at org.mortbay.start.Main.start(Main.java:497)
>>         at org.mortbay.start.Main.main(Main.java:115)
>>   
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/java.lang.NumberFormatException%3A-For-input-string%3A-%22%22-tp26631247p26632600.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message