lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lalitjangra <lalit.j.jan...@gmail.com>
Subject java.lang.NumberFormatException: For input string: "string;#-6.872515521, 53.28853084"
Date Fri, 26 Sep 2014 14:00:51 GMT
Hi,

I am trying to index latitude and longitude data into solr but getting error
as below.

ERROR - 2014-09-26 13:44:16.503; org.apache.solr.common.SolrException;
org.apache.solr.common.SolrException: ERROR:
[doc=http://testirishwaterportal/sites/am/ass/asi/agg/ami/Lists/Waste  Waste
Water Pumping Station/DispForm.aspx?ID=841] Error adding field
'gis_x0020_coordinate'='string;#-6.872515521, 53.28853084' msg=For input
string: "string;#-6.872515521, 53.28853084"
                at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:167)
                at
org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:77)
                at
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:215)
                at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
                at
org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
                at
org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:569)
                at
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:705)
                at
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:435)
                at
org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100)
                at
org.apache.solr.handler.extraction.ExtractingDocumentLoader.doAdd(ExtractingDocumentLoader.java:121)
                at
org.apache.solr.handler.extraction.ExtractingDocumentLoader.addDoc(ExtractingDocumentLoader.java:126)
                at
org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:228)
                at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
                at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
                at
org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241)
                at org.apache.solr.core.SolrCore.execute(SolrCore.java:1859)
                at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:710)
                at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:413)
                at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197)
                at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
                at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
                at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
                at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
                at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
                at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
                at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
                at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
                at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
                at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
                at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
                at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
                at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
                at org.eclipse.jetty.server.Server.handle(Server.java:368)
                at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
                at
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
                at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
                at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
                at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:636)
                at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
                at
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
                at
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
                at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
                at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
                at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NumberFormatException: For input string:
"string;#-6.872515521, 53.28853084"
                at sun.misc.FloatingDecimal.readJavaFormatString(Unknown
Source)
                at java.lang.Double.parseDouble(Unknown Source)
                at
org.apache.solr.schema.TrieField.createField(TrieField.java:605)
                at
org.apache.solr.schema.TrieField.createFields(TrieField.java:650)
                at
org.apache.solr.update.DocumentBuilder.addField(DocumentBuilder.java:47)
                at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:118)
                ... 43 more

Please suggest.



--
View this message in context: http://lucene.472066.n3.nabble.com/java-lang-NumberFormatException-For-input-string-string-6-872515521-53-28853084-tp4161324.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message