Opened 12 years ago

Closed 12 years ago

#1272 closed defect (fixed)

Indexing / Subtemplate indexing does not work

Reported by: fxp Owned by: geonetwork-devel@…
Priority: blocker Milestone: v2.10.0 RC1
Component: General Version: v2.9.0
Keywords: Cc:

Description

Try to import one of the iso19139 subtemplate return exception and no subtemplate can be found:

2013-04-22 12:43:15,944 WARN  [geonetwork.schemamanager] -   Autodetecting schema failed for MD_Distribution in namespace [Namespace: prefix "gmd" is mapped to URI "http://www.isot
c211.org/2005/gmd"]. Using default schema or one of its dependency: iso19139
2013-04-22 12:43:25,570 ERROR [geonetwork.datamanager] - The metadata document index with id=192 is corrupt/invalid - ignoring it. Error: null
java.util.NoSuchElementException
	at java.util.ArrayList$Itr.next(ArrayList.java:757)
	at org.apache.lucene.facet.index.DrillDownStream.reset(DrillDownStream.java:84)
	at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:97)
	at org.apache.lucene.index.DocFieldProcessor.processDocument(DocFieldProcessor.java:306)
	at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:250)
	at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:376)
	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1484)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1159)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1140)
	at org.apache.lucene.search.NRTManager$TrackingIndexWriter.addDocument(NRTManager.java:223)
	at org.fao.geonet.kernel.search.index.LuceneIndexLanguageTracker.addDocument(LuceneIndexLanguageTracker.java:207)
	at org.fao.geonet.kernel.search.index.LuceneIndexWriterFactory.addDocument(LuceneIndexWriterFactory.java:32)
	at org.fao.geonet.kernel.search.SearchManager.index(SearchManager.java:700)
	at org.fao.geonet.kernel.DataManager.indexMetadata(DataManager.java:559)
	at org.fao.geonet.kernel.DataManager$IndexMetadataTask.run(DataManager.java:396)

eg.

<?xml version="1.0" encoding="UTF-8"?>
<gmd:CI_ResponsibleParty xmlns:gmd="http://www.isotc211.org/2005/gmd"
  xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gco="http://www.isotc211.org/2005/gco"
  xmlns:gml="http://www.opengis.net/gml">
  <gmd:individualName>
    <gco:CharacterString>Name of the responsible person- surname, given name, title separated by a
      delimiter</gco:CharacterString>
  </gmd:individualName>
  <gmd:organisationName>
    <gco:CharacterString>Name of the responsible organization</gco:CharacterString>
  </gmd:organisationName>
  <gmd:positionName>
    <gco:CharacterString>Function performed by the responsible party</gco:CharacterString>
  </gmd:positionName>
  <gmd:contactInfo>
    <gmd:CI_Contact>
      <gmd:phone>
        <gmd:CI_Telephone>
          <gmd:voice>
            <gco:CharacterString>Telephone number at which the organization or individual may be
              contacted</gco:CharacterString>
          </gmd:voice>
          <gmd:facsimile>
            <gco:CharacterString>Telephone number of a facsimile machine for the responsible
              organization or individual</gco:CharacterString>
          </gmd:facsimile>
        </gmd:CI_Telephone>
      </gmd:phone>
      <gmd:address>
        <gmd:CI_Address>
          <gmd:deliveryPoint>
            <gco:CharacterString>Address line for the location</gco:CharacterString>
          </gmd:deliveryPoint>
          <gmd:city>
            <gco:CharacterString>City of the location</gco:CharacterString>
          </gmd:city>
          <gmd:administrativeArea>
            <gco:CharacterString/>
          </gmd:administrativeArea>
          <gmd:postalCode>
            <gco:CharacterString>ZIP or other postal code</gco:CharacterString>
          </gmd:postalCode>
          <gmd:country>
            <gco:CharacterString>Country of the physical address</gco:CharacterString>
          </gmd:country>
          <gmd:electronicMailAddress>
            <gco:CharacterString>Address of the electronic mailbox of the responsible organization
              or individual</gco:CharacterString>
          </gmd:electronicMailAddress>
        </gmd:CI_Address>
      </gmd:address>
    </gmd:CI_Contact>
  </gmd:contactInfo>
  <gmd:role>
    <gmd:CI_RoleCode codeList="./resources/codeList.xml#CI_RoleCode" codeListValue="pointOfContact"
    />
  </gmd:role>
</gmd:CI_ResponsibleParty>


Change History (1)

comment:1 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

master commit 0399fb606e542d1a026cc62b2a52eb9ef5ee3ab1 2.10.x commit 7e3b208b93bddbafd3a17f965b4791246fbc6618

Note: See TracTickets for help on using tickets.