java.lang.NullPointerException

Sakai JIRA | Ivan Masár | 12 months ago
  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 | 12 months 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 | 12 months ago | Ivan Masár
    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.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