Mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chaffee" <jchaf...@ebates.com>
Subject DataImport problem
Date Sun, 05 Sep 2010 02:19:53 GMT
I am getting the following error with the DataImport and I am not sure why as I following the
documentation.  I am trying to use XPath and the URLDataSource but it fails to load the datasource.

SEVERE: Full Import failed
org.apache.solr.handler.dataimport.DataImportHandlerException: No dataSource :null available
for entity :store Processing Document # 1
	at org.apache.solr.handler.dataimport.DataImporter.getDataSourceInstance(DataImporter.java:279)
	at org.apache.solr.handler.dataimport.ContextImpl.getDataSource(ContextImpl.java:94)
	at org.apache.solr.handler.dataimport.XPathEntityProcessor.init(XPathEntityProcessor.java:78)
	at org.apache.solr.handler.dataimport.EntityProcessorWrapper.init(EntityProcessorWrapper.java:71)
	at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:319)
	at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:242)
	at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:180)
	at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:331)
	at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:389)
	at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:370)
Sep 4, 2010 7:12:51 PM org.apache.solr.update.DirectUpdateHandler2 rollback


Here is my dataconfig.xml:

<dataConfig>
  <dataSource name="store" type="URLDataSource" baseUrl="http://localhost:8080/app" encoding="UTF-8"
connectionTimeout="5000" readTimeout="60000" />
  <document name="store">
    <entity name="store" processor="XPathEntityProcessor" stream="true" forEach="/stores/store"
url="/store/list">
      <field column="id" xpath="/stores/store/id" />
      <field column="name" xpath="/stores/store/name" />
    </entity>
  </document>
</dataConfig>

Mime
View raw message