java.lang.NullPointerException

Sakai JIRA | Ivan Masár | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    A NPE is thrown in the middle of exporting a collection. This didn't happen in 5.x. The bitstreams of the failed item do have a name (confirmed via the metadatavalue table). /dspace/bin/dspace export --id 123456789/1000004 --type COLLECTION --dest /tmp/export --number 4 ... Exporting Item 19474d60-9dba-47ea-b8d2-a5a7e6bf43b5 to /tmp/export/69 Attempting to create file /tmp/export/69/dublin_core.xml Attempting to create file /tmp/export/69/metadata_utb.xml Exception: null java.lang.NullPointerException at org.dspace.app.itemexport.ItemExportServiceImpl.writeBitstreams(ItemExportServiceImpl.java:375) at org.dspace.app.itemexport.ItemExportServiceImpl.exportItem(ItemExportServiceImpl.java:154) at org.dspace.app.itemexport.ItemExportServiceImpl.exportItem(ItemExportServiceImpl.java:126) at org.dspace.app.itemexport.ItemExportCLITool.main(ItemExportCLITool.java:252) 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:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) https://github.com/DSpace/DSpace/blob/1ea7305ebaeed75636e163d2fa0ed7fe997dddd8/dspace-api/src/main/java/org/dspace/app/itemexport/ItemExportServiceImpl.java#124

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.NullPointerException
  2. 0

    A NPE is thrown in the middle of exporting a collection. This didn't happen in 5.x. The bitstreams of the failed item do have a name (confirmed via the metadatavalue table). /dspace/bin/dspace export --id 123456789/1000004 --type COLLECTION --dest /tmp/export --number 4 ... Exporting Item 19474d60-9dba-47ea-b8d2-a5a7e6bf43b5 to /tmp/export/69 Attempting to create file /tmp/export/69/dublin_core.xml Attempting to create file /tmp/export/69/metadata_utb.xml Exception: null java.lang.NullPointerException at org.dspace.app.itemexport.ItemExportServiceImpl.writeBitstreams(ItemExportServiceImpl.java:375) at org.dspace.app.itemexport.ItemExportServiceImpl.exportItem(ItemExportServiceImpl.java:154) at org.dspace.app.itemexport.ItemExportServiceImpl.exportItem(ItemExportServiceImpl.java:126) at org.dspace.app.itemexport.ItemExportCLITool.main(ItemExportCLITool.java:252) 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:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78) https://github.com/DSpace/DSpace/blob/1ea7305ebaeed75636e163d2fa0ed7fe997dddd8/dspace-api/src/main/java/org/dspace/app/itemexport/ItemExportServiceImpl.java#124

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.app.itemexport.ItemExportServiceImpl.writeBitstreams()
    2. DSpace Kernel :: API and Implementation
      ItemExportCLITool.main
      1. org.dspace.app.itemexport.ItemExportServiceImpl.writeBitstreams(ItemExportServiceImpl.java:375)
      2. org.dspace.app.itemexport.ItemExportServiceImpl.exportItem(ItemExportServiceImpl.java:154)
      3. org.dspace.app.itemexport.ItemExportServiceImpl.exportItem(ItemExportServiceImpl.java:126)
      4. org.dspace.app.itemexport.ItemExportCLITool.main(ItemExportCLITool.java:252)
      4 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:226)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
      2 frames