Package org.fao.geonet.kernel.harvest.harvester

Examples of org.fao.geonet.kernel.harvest.harvester.HarvestError.printLog()


    catch(JDOMException e)
    {
            HarvestError harvestError = new HarvestError(e, log);
            harvestError.setDescription("Skipping metadata with bad XML format. Remote id : "+ ri.id);
            harvestError.printLog(log);
            this.errors.add(harvestError);
      result.badFormat++;
    }

    catch(Exception e)
View Full Code Here


    catch(Exception e)
    {
            HarvestError harvestError = new HarvestError(e, log);
            harvestError.setDescription("Raised exception while getting metadata file : "+ e);
            this.errors.add(harvestError);
            harvestError.printLog(log);
      result.unretrievable++;
    }

    //--- we don't raise any exception here. Just try to go on
    return null;
View Full Code Here

    catch (Exception e)
    {
            HarvestError harvestError = new HarvestError(e, log);
            harvestError.setDescription("Cannot convert oai_dc to dublin core : "+ e);
            this.errors.add(harvestError);
            harvestError.printLog(log);
      return null;
    }
  }

  //--------------------------------------------------------------------------
View Full Code Here

                        if(log.isDebugEnabled()) log.debug("After transform: "+Xml.getString(md));
          } catch (Exception e) {
              HarvestError error = new HarvestError(e, log);
              error.setDescription("Cannot transform XML, ignoring. Error was: "+e.getMessage());
            this.errors.add(error);
            error.printLog(log);
            result.badFormat++;
            continue; // skip this one
          }
        }
View Full Code Here

          uuid = dataMan.extractUUID(schema, md);
        } catch (Exception e) {
                    HarvestError error = new HarvestError(e, log);
                    error.setDescription("Unable to extract UUID. " + e.getMessage());
                    this.errors.add(error);
                    error.printLog(log);
        }

        if (uuid == null || uuid.equals("")) {
          log.warning("Skipping metadata due to failure extracting uuid (uuid null or empty).");
          result.unretrievable++;
View Full Code Here

                }
                catch (Exception e) {
                    HarvestError error = new HarvestError(e, log);
                    error.setDescription("Unable to insert metadata. "+e.getMessage());
                    this.errors.add(error);
                    error.printLog(log);
          result.couldNotInsert++;
          continue;
        }

                addPrivileges(id, params.getPrivileges(), localGroups, dataMan, context, log);
View Full Code Here

    catch(Exception e)
    {
            HarvestError error = new HarvestError(e, log);
            error.setDescription("Raised exception when searching : "+ e);
            this.errors.add(error);
            error.printLog(log);
      throw new OperationAbortedEx("Raised exception when searching", e);
    }
  }

    public List<HarvestError> getErrors() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.