java.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory)

Sakai JIRA | Joshua Westgard | 1 year ago
  1. 0

    When using the bin/dspace import command to import items in SAF, the importer requires the source directory to be specified with the -s flag, but when loading from a .zip file, it incorrectly looks for the zip in a location that duplicates the path specified in the -s flag, resulting in a "file not found" error. The duplication does not occur if the -z flag has not been used (i.e. if the items are located in a regular directory specified in the -s flag, but rather only when -s and -z are both used. A workaround is to invoke the load from the directory where the zip file is located, and specify -s '.' for the source directory. Sample error message is below. ---- $ /apps/mdsoar/bin/dspace import -a -e notreal@notreal.org -s /apps/mdsoar/upload -z item_export_2015_Oct_01_1_34.zip -t -m outputmap.txt -c 11603-STAGE/4784 **Test Run** - not actually importing items. Destination collections: Owning Collection: 20150924 java.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.zip.ZipFile.<init>(ZipFile.java:159) at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2022) at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:1988) at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2099) at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:490) 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.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory) Deleting temporary zip directory: /apps/mdsoar/imports ***End of Test Run*** Started: 1445520961621 Ended: 1445520962375 Elapsed time: 0 secs (754 msecs)

    Sakai JIRA | 1 year ago | Joshua Westgard
    java.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory)
  2. 0

    When using the bin/dspace import command to import items in SAF, the importer requires the source directory to be specified with the -s flag, but when loading from a .zip file, it incorrectly looks for the zip in a location that duplicates the path specified in the -s flag, resulting in a "file not found" error. The duplication does not occur if the -z flag has not been used (i.e. if the items are located in a regular directory specified in the -s flag, but rather only when -s and -z are both used. A workaround is to invoke the load from the directory where the zip file is located, and specify -s '.' for the source directory. Sample error message is below. ---- $ /apps/mdsoar/bin/dspace import -a -e notreal@notreal.org -s /apps/mdsoar/upload -z item_export_2015_Oct_01_1_34.zip -t -m outputmap.txt -c 11603-STAGE/4784 **Test Run** - not actually importing items. Destination collections: Owning Collection: 20150924 java.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.zip.ZipFile.<init>(ZipFile.java:159) at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2022) at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:1988) at org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2099) at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:490) 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.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory) Deleting temporary zip directory: /apps/mdsoar/imports ***End of Test Run*** Started: 1445520961621 Ended: 1445520962375 Elapsed time: 0 secs (754 msecs)

    Sakai JIRA | 1 year ago | Joshua Westgard
    java.io.FileNotFoundException: /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory)
  3. 0

    Can't deploy dotcms 2.5.4 on Weblogic 10.3.6

    GitHub | 2 years ago | dotjorgeu
    java.io.FileNotFoundException: /Users/jorgeu/apps/weblogic/wlserver/server/lib/weblogic_sp.jar (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Custom Paintings looking for Zip File only Texture Packs (Bibliocraft 1.9.2)

    GitHub | 2 years ago | Megistus
    java.io.FileNotFoundException: /Users/~~/Library/Application Support/minecraft/resourcepacks/Mod_Support_for_GlimmarsSteampunk[1.7.10] (Is a directory)
  6. 0

    Cannot install from clean git clone and mvn install

    GitHub | 3 years ago | Alan502
    java.io.FileNotFoundException: ../integration-tests/backup/lucene-dir.zip (No such file or directory)
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.io.FileNotFoundException

    /apps/mdsoar/upload/apps/mdsoar/upload/item_export_2015_Oct_01_1_34.zip (No such file or directory)

    at java.util.zip.ZipFile.open()
  2. Java RT
    ZipFile.<init>
    1. java.util.zip.ZipFile.open(Native Method)
    2. java.util.zip.ZipFile.<init>(ZipFile.java:215)
    3. java.util.zip.ZipFile.<init>(ZipFile.java:145)
    4. java.util.zip.ZipFile.<init>(ZipFile.java:159)
    4 frames
  3. DSpace Kernel :: API and Implementation
    ItemImport.main
    1. org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2022)
    2. org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:1988)
    3. org.dspace.app.itemimport.ItemImport.unzip(ItemImport.java:2099)
    4. org.dspace.app.itemimport.ItemImport.main(ItemImport.java:490)
    4 frames
  4. 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
  5. 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