java.lang.NullPointerException

Sakai JIRA | Jozsef Marton | 1 year ago
  1. 0

    In DSpace/DS-1933 (specify owning collection per-item in SAF import), it was proposed to allow using collections files in the batch import. It has been implemented and documented: https://wiki.duraspace.org/display/DSDOC5x/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-OtherOptions But the collections file it is not processed, as seen on the output given below. Patch is attached for version 5.1 (though Jira does not allow selecting version 5.1) dspace@machine:/tmp$ cat items/000578988/collections 123456789/72 dspace@devrepozitorium:/tmp$ /home/dspace/my-repository/bin/dspace import --add --eperson="admin@my-repository" --source=items -m mapfile.txt No collections given. Assuming 'collections' file inside item directory Adding items from directory: items Generating mapfile: mapfile.txt Processing collections file: collections Adding item from directory 000578988 java.lang.NullPointerException at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:865) at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:736) at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:498) 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:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) java.lang.NullPointerException Started: 1435493489038 Ended: 1435493489519 Elapsed time: 0 secs (481 msecs)

    Sakai JIRA | 1 year ago | Jozsef Marton
    java.lang.NullPointerException
  2. 0

    In DSpace/DS-1933 (specify owning collection per-item in SAF import), it was proposed to allow using collections files in the batch import. It has been implemented and documented: https://wiki.duraspace.org/display/DSDOC5x/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-OtherOptions But the collections file it is not processed, as seen on the output given below. Patch is attached for version 5.1 (though Jira does not allow selecting version 5.1) dspace@machine:/tmp$ cat items/000578988/collections 123456789/72 dspace@devrepozitorium:/tmp$ /home/dspace/my-repository/bin/dspace import --add --eperson="admin@my-repository" --source=items -m mapfile.txt No collections given. Assuming 'collections' file inside item directory Adding items from directory: items Generating mapfile: mapfile.txt Processing collections file: collections Adding item from directory 000578988 java.lang.NullPointerException at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:865) at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:736) at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:498) 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:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) java.lang.NullPointerException Started: 1435493489038 Ended: 1435493489519 Elapsed time: 0 secs (481 msecs)

    Sakai JIRA | 1 year ago | Jozsef Marton
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.app.itemimport.ItemImport.addItem()
    2. DSpace Kernel :: API and Implementation
      ItemImport.main
      1. org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:865)
      2. org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:736)
      3. org.dspace.app.itemimport.ItemImport.main(ItemImport.java:498)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
      2 frames