Re: DIH - incorrect datasource being picked up by XPathEntityProcessor
Okay... found the problem after some more debugging. I was using a wrong datasource tag in the data-config.xml, may be Solr should validate the xml against a schema so these kind of issues are caught upfront. wrong: s*ource name="fieldSource" type="FieldReaderDataSource" /> correct: S*ource name="fieldSource" type="FieldReaderDataSource" /> this resolved the issue. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/DIH-incorrect-datasource-being-picked-up-by-XPathEntityProcessor-tp3994802p3995246.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: DIH - incorrect datasource being picked up by XPathEntityProcessor
Thanks Gora, I tried that but didn't help. Regards. -- View this message in context: http://lucene.472066.n3.nabble.com/DIH-incorrect-datasource-being-picked-up-by-XPathEntityProcessor-tp3994802p3995211.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: DIH - incorrect datasource being picked up by XPathEntityProcessor
On 13 July 2012 15:22, girishyes wrote: > Hi, > > I am getting this error with DIH using a combination of SQLEntityProcessor > and XPathEntityProcessor: > rootEntity="true" > dataSource="fieldSource" > dataField="child.Message" > > processor="XPathEntityProcessor" forEach="/children/child"> > There might be other issues, but you probably want dataField="child.XML" Regards, Gora
DIH - incorrect datasource being picked up by XPathEntityProcessor
Hi, I am getting this error with DIH using a combination of SQLEntityProcessor and XPathEntityProcessor: Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to execute query: null Processing Document # 1 at org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:71) ... Caused by: java.sql.SQLException: SQL statement to execute cannot be empty or null ... when I debug the DataImport code, I see that the wrong datasource is being picked up by XPathEntityProcessor. It would always pick up JDBCDataSource even though I have configured it to use FieldReaderDataSource. Below is how my data-config file looks like Appreciate any help thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/DIH-incorrect-datasource-being-picked-up-by-XPathEntityProcessor-tp3994802.html Sent from the Solr - User mailing list archive at Nabble.com.