lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Twomey, David" <david.two...@novartis.com>
Subject Re: Logging from data-config.xml
Date Tue, 01 May 2012 14:51:29 GMT
 fixed the error, stupid typo, but log msg didn't appear until typo was
fixed.  I would have thought they would be unrelated.


On 5/1/12 10:42 AM, "Twomey, David" <david.twomey@novartis.com> wrote:

>
>
>I'm getting this error (below) when doing an import.   I'd like to add a
>Log line so I can see if the file path is messed up.
>
>So my data-config.xml looks like below but I'm not getting any extra info
>in the solr.log file under jetty.  Is there a way to log to this log file
>from data-import.xml?
>
><dataConfig>
>    <dataSource type="FileDataSource" />
>    <document>
>
>      <entity name="medlineFileList"
>              processor="FileListEntityProcessor"
>              fileName=".*xml"
>              rootEntity="false"
>             dataSource="null"
>              baseDir="/index_files/pubmed/">
>
>              <entity name="medlineFiles" processor="XPathEntityProcessor"
>                url="${medlineFileList.fileAblsolutePath}"
>                forEach="/MedlineCitationSet/MedlineCitation"
>              
> 
>transformer="DateFormatTransformer,TemplateTransformer,RegexTransformer,Lo
>gTransformer"
>                logTemplate="   processing
>${medlineFileList.fileAbsolutePath}"
>                logLevel="info"
>                stream="true">
>
>                <field column="pmid"
>xpath="/MedlineCitationSet/MedlineCitation/PMID"   commonField="true" />
>  ...
>
>
>Thanks.
>
>
>INFO: Starting Full Import
>May 1, 2012 10:34:29 AM org.apache.solr.handler.dataimport.SolrWriter
>readIndexerProperties
>INFO: Read dataimport.properties
>May 1, 2012 10:34:29 AM org.apache.solr.common.SolrException log
>SEVERE: Exception while processing: medlineFileList document :
>null:org.apache.solr.handler.dataimport.DataImportHandlerException:
>java.lang.RuntimeException: java.io.FileNotFoundException: Could not find
>file: 
> at 
>org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow
>(
>DataImportHandlerException.java:64)
> at 
>org.apache.solr.handler.dataimport.XPathEntityProcessor.initQuery(XPathEnt
>i
>tyProcessor.java:286)
> at 
>org.apache.solr.handler.dataimport.XPathEntityProcessor.fetchNextRow(XPath
>E
>ntityProcessor.java:224)
> at 
>org.apache.solr.handler.dataimport.XPathEntityProcessor.nextRow(XPathEntit
>y
>Processor.java:204)
> at 
>org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityPr
>o
>cessorWrapper.java:238)
> at 
>org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.jav
>a
>:591)
> at 
>org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.jav
>a
>:617)
> at 
>org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:2
>6
>7)
> at 
>org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:186)
> at 
>org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.
>j
>ava:353)
> at 
>org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:4
>1
>1)
> at 
>org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:39
>2
>)
>Caused by: java.lang.RuntimeException: java.io.FileNotFoundException:
>Could not find file:
> at 
>org.apache.solr.handler.dataimport.FileDataSource.getFile(FileDataSource.j
>a
>va:113)
> at 
>org.apache.solr.handler.dataimport.FileDataSource.getData(FileDataSource.j
>a
>va:85)
> at 
>org.apache.solr.handler.dataimport.FileDataSource.getData(FileDataSource.j
>a
>va:47)
> at 
>org.apache.solr.handler.dataimport.XPathEntityProcessor.initQuery(XPathEnt
>i
>tyProcessor.java:283)
> ... 10 more
>Caused by: java.io.FileNotFoundException: Could not find file:
> at 
>org.apache.solr.handler.dataimport.FileDataSource.getFile(FileDataSource.j
>a
>va:111)
> ... 13 more
>


Mime
View raw message