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

NPE during OAI import if bitstream name is null

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      $ /dspace/bin/dspace oai import -c
      OAI 2.0 manager action started
      Clearing index
      Index cleared
      Using full import.
      Full import
      100 items imported so far...
      200 items imported so far...
      300 items imported so far...
      400 items imported so far...
      java.lang.NullPointerException
      at org.dspace.xoai.util.ItemUtils.retrieveMetadata(ItemUtils.java:189)
      at org.dspace.xoai.app.XOAI.index(XOAI.java:267)
      at org.dspace.xoai.app.XOAI.index(XOAI.java:209)
      at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:196)
      at org.dspace.xoai.app.XOAI.index(XOAI.java:143)
      at org.dspace.xoai.app.XOAI.main(XOAI.java:393)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:227)
      at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:79)

      https://github.com/DSpace/DSpace/blob/41bf1790e0dac15455a4671a7a671cc17f7e16ba/dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java#L189

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kevin van de velde Kevin Van de Velde (Atmire)
                Reporter:
                helix84 Ivan Masár
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: