lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nourredine khadri <nourredin...@yahoo.com>
Subject Re : Re : Re : Pb using delta import with XPathEntityProcessor
Date Thu, 10 Sep 2009 12:47:20 GMT
Some fields are null but not the one parsed by XPathEntityProcessor (named XML)

10 sept. 2009 14:40:34 org.apache.solr.handler.dataimport.LogTransformer transformRow
FIN: Map content : {KEYWORDS=pub, SPECIFIC=null, FATHERSID=, CONTAINERID=, ARCHIVEDDATE=0,
SITE=12308, LANGUAGE=null, ARCHIVESTATE=false, OFFLINEATDATE=0, ONLINEATDATE=1026307864230,
STATUS=0, DATESTATUS=1113905585726, MODEL=0, ACTIVATIONSTATE=true, MOUNTED_SITE_IDS=null,
SPECIFIC_XML=null, PUBLICATIONSTATE=true, XML=<?xml version="1.0" encoding="ISO-8859-1"?>
<Contenu>  <ArtCourt Template="Article" Ref="10">   <SurTitre><Parag>Empty
Subtitle - Click Here to edit</Parag></SurTitre>   <Titre><Parag>Empty
Title - Click Here to edit</Parag></Titre>   <Chapeau><Parag>Empty
ChapĀ¶ - Click Here to edit</Parag></Chapeau>   <AuteurW>Empty Autor - Click
Here to edit</AuteurW>   <Accroche><Parag>Empty Catchword - Click Here to
edit</Parag></Accroche>   <TxtCourt><IntTitre><Parag>Empty InterTitle
- Cl
ick Here to edit Text</Parag></IntTitre><Parag>Empty Paragraph - Click Here
to edit Text</Parag></TxtCourt>   <Images></Images>   <Refs></Refs>
 </ArtCourt></Contenu>, IDENTIFIERVERSION=5040052, CONTENTID=5040052}
10 sept. 2009 14:40:34 org.apache.solr.handler.dataimport.DocBuilder buildDocument
GRAVE: Exception while processing: xml_document document : SolrInputDocument[{keywords=keywords(1.0)={pub},
fathersId=fathersId(1.0)={}, containerId=containerId(1.0)={}, site=site(1.0)={12308}, archiveState=archiveState(1.0)={false},
offlineAtDate=offlineAtDate(1.0)={0}, onlineAtDate=onlineAtDate(1.0)={1026307864230}, status=status(1.0)={0},
dateStatus=dateStatus(1.0)={1113905585726}, model=model(1.0)={0}, activationState=activationState(1.0)={true},
publicationState=publicationState(1.0)={true}, xml=xml(1.0)={<?xml version="1.0" encoding="ISO-8859-1"?>
<Contenu>  <ArtCourt Template="Article" Ref="10">   <SurTitre><Parag>Empty
Subtitle - Click Here to edit</Parag></SurTitre>   <Titre><Parag>Empty
Title - Click Here to edit</Parag></Titre>   <Chapeau><Parag>Empty
ChapĀ¶ - Click Here to edit<
/Parag></Chapeau>   <AuteurW>Empty Autor - Click Here to edit</AuteurW>
  <Accroche><Parag>Empty Catchword - Click Here to edit</Parag></Accroche>
  <TxtCourt><IntTitre><Parag>Empty InterTitle - Click Here to edit Text</Parag></IntTitre><Parag>Empty
Paragraph - Click Here to edit Text</Parag></TxtCourt>   <Images></Images>
  <Refs></Refs>  </ArtCourt></Contenu>}, identifierversion=identifierversion(1.0)={5040052},
contentid=contentid(1.0)={5040052}}]
org.apache.solr.handler.dataimport.DataImportHandlerException: Parsing failed for xml, url:null
rows processed:0 Processing Document # 1
        at org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:72)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.initQuery(XPathEntityProcessor.java:292)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.fetchNextRow(XPathEntityProcessor.java:187)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.nextRow(XPathEntityProcessor.java:164)
        at org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:237)
        at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:339)
        at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:365)
        at org.apache.solr.handler.dataimport.DocBuilder.doDelta(DocBuilder.java:259)
        at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:159)
        at org.apache.solr.handler.dataimport.DataImporter.doDeltaImport(DataImporter.java:354)
        at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:395)
        at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:372)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.solr.handler.dataimport.XPathRecordReader.streamRecords(XPathRecordReader.java:92)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.initQuery(XPathEntityProcessor.java:282)
        ... 10 more
Caused by: java.lang.NullPointerException
        at com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
        at com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
        at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
        at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
        at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
        at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
        at org.apache.solr.handler.dataimport.XPathRecordReader.streamRecords(XPathRecordReader.java:88)
        ... 11 more
10 sept. 2009 14:40:34 org.apache.solr.handler.dataimport.DataImporter doDeltaImport
GRAVE: Delta Import Failed
org.apache.solr.handler.dataimport.DataImportHandlerException: Parsing failed for xml, url:null
rows processed:0 Processing Document # 1
        at org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:72)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.initQuery(XPathEntityProcessor.java:292)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.fetchNextRow(XPathEntityProcessor.java:187)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.nextRow(XPathEntityProcessor.java:164)
        at org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:237)
        at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:339)
        at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:365)
        at org.apache.solr.handler.dataimport.DocBuilder.doDelta(DocBuilder.java:259)
        at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:159)
        at org.apache.solr.handler.dataimport.DataImporter.doDeltaImport(DataImporter.java:354)
        at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:395)
        at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:372)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.solr.handler.dataimport.XPathRecordReader.streamRecords(XPathRecordReader.java:92)
        at org.apache.solr.handler.dataimport.XPathEntityProcessor.initQuery(XPathEntityProcessor.java:282)
        ... 10 more
Caused by: java.lang.NullPointerException
        at com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
        at com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
        at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
        at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
        at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
        at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
        at org.apache.solr.handler.dataimport.XPathRecordReader.streamRecords(XPathRecordReader.java:88)
        ... 11 more
10 sept. 2009 14:40:34 org.apache.solr.update.DirectUpdateHandler2 rollback
INFO: start rollback
10 sept. 2009 14:40:34 org.apache.solr.update.DirectUpdateHandler2 rollback
INFO: end_rollback

Thanks for your help.




Noble Paul wrote :
>
> what do you see if you keep the logTemplate="${document}". I'm trying
> to figure out the contents of the map



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message