Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4353

Harvesting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0, 7.0
    • Fix Version/s: 6.4, 7.0
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/harvest/Harvest.java#L277

      This System.out is returning an expection:

      System.out.println("Looking up by id: " + collectionID + ", parsed as '" + Integer
      {{ .parseInt(collectionID) + "', " + "in context: " + context);}}

       

      Exception: For input string: "29a3b9d7-607b-4a15-a796-60b329d483c1"
      java.lang.NumberFormatException: For input string: "29a3b9d7-607b-4a15-a796-60b329d483c1"
      {{ at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)}}
      {{ at java.lang.Integer.parseInt(Integer.java:580)}}
      {{ at java.lang.Integer.parseInt(Integer.java:615)}}
      {{ at org.dspace.app.harvest.Harvest.resolveCollection(Harvest.java:277)}}
      {{ at org.dspace.app.harvest.Harvest.runHarvest(Harvest.java:385)}}
      {{ at org.dspace.app.harvest.Harvest.main(Harvest.java:183)}}
      {{ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)}}
      {{ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)}}
      {{ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
      {{ at java.lang.reflect.Method.invoke(Method.java:498)}}
      {{ at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:210)}}
      {{ at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:92)}}
      {{ at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:80)}}

       

      When you try to run the harvesting process with an UUID:

      /dspace/bin/dspace harvest -r -e EPERSON -c 29a3b9d7-607b-4a15-a796-60b329d483c1

        Attachments

          Activity

            People

            Assignee:
            paulo_graca Paulo Graça
            Reporter:
            paulo_graca Paulo Graça
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: