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

NPE in packager -d

    XMLWordPrintable

    Details

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

      Description

      The directory I had in the upload.temp.dir config property didn't exist. The error thrown here wasn't very helpful because it doesn't say which file or directory wasn't found. IOException should be caught on the following line and the contents of upload.temp.dir or java.io.tmpdir printed.

      https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/crosswalk/RoleCrosswalk.java#L187

      $ /dspace/bin/dspace packager -d -a -t AIP -e dspace@example.com -i 123456789/0 site-aip.zip
      INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=d3345b2d-95d4-4753-8168-ea5295c240be,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
      INFO [main] (ConfigurationManager.java:1224) - Loading from classloader: file:/dspace/config/dspace.cfg
      INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log configuration (log.init.config)
      INFO [main] (ConfigurationManager.java:1224) - Loading: /dspace/config/log4j.properties

      Disseminating DSpace SITE [ hdl=123456789/0 ] to site-aip.zip

      Also disseminating all child objects (recursive mode)..
      This may take a while, please check your logs for ongoing status while we process each package.
      Exception: No such file or directory
      java.io.IOException: No such file or directory
      at java.io.UnixFileSystem.createFileExclusively(Native Method)
      at java.io.File.checkAndCreate(File.java:1833)
      at java.io.File.createTempFile0(File.java:1857)
      at java.io.File.createTempFile(File.java:1934)
      at org.dspace.content.crosswalk.RoleCrosswalk.disseminateElement(RoleCrosswalk.java:186)
      at org.dspace.content.packager.AbstractMETSDisseminator.crosswalkToMetsElement(AbstractMETSDisseminator.java:1359)
      at org.dspace.content.packager.AbstractMETSDisseminator.makeMdSec(AbstractMETSDisseminator.java:614)
      at org.dspace.content.packager.AbstractMETSDisseminator.addToAmdSec(AbstractMETSDisseminator.java:727)
      at org.dspace.content.packager.AbstractMETSDisseminator.addAmdSec(AbstractMETSDisseminator.java:753)
      at org.dspace.content.packager.AbstractMETSDisseminator.makeManifest(AbstractMETSDisseminator.java:839)
      at org.dspace.content.packager.AbstractMETSDisseminator.writeZipPackage(AbstractMETSDisseminator.java:311)
      at org.dspace.content.packager.AbstractMETSDisseminator.disseminate(AbstractMETSDisseminator.java:258)
      at org.dspace.content.packager.DSpaceAIPDisseminator.disseminate(DSpaceAIPDisseminator.java:160)
      at org.dspace.content.packager.AbstractPackageDisseminator.disseminateAll(AbstractPackageDisseminator.java:86)
      at org.dspace.app.packager.Packager.disseminate(Packager.java:636)
      at org.dspace.app.packager.Packager.main(Packager.java:460)
      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:622)
      at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: