Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error stack trace while using DSpace ItemImport with zip option
peterdietz:peterDSpace peterdietz$ /dspace/bin/dspace import -a -e peter@longsight.com -c 123456789/1216 -s ~/Projects/clients/SUNY/batches/Maritime_batchload/Maritime_IR_Files/ -z SimpleArchiveFormat_63538.zip --test -m import-zip.map
**Test Run** - not actually importing items.
Destination collections:
Owning Collection: TryDSpace
Extracting file: SimpleArchiveFormat_63538/item_1/20120411_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_1/contents
Extracting file: SimpleArchiveFormat_63538/item_1/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_10/20130408_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_10/contents
Extracting file: SimpleArchiveFormat_63538/item_10/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_11/20130417_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_11/contents
Extracting file: SimpleArchiveFormat_63538/item_11/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_12/20130417_003_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_12/contents
Extracting file: SimpleArchiveFormat_63538/item_12/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_2/20120927_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_2/contents
Extracting file: SimpleArchiveFormat_63538/item_2/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_3/20121003_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_3/contents
Extracting file: SimpleArchiveFormat_63538/item_3/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_4/20121003_002_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_4/contents
Extracting file: SimpleArchiveFormat_63538/item_4/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_5/20121003_003_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_5/contents
Extracting file: SimpleArchiveFormat_63538/item_5/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_6/20121128_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_6/contents
Extracting file: SimpleArchiveFormat_63538/item_6/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_7/20130213_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_7/contents
Extracting file: SimpleArchiveFormat_63538/item_7/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_8/20130403_001_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_8/contents
Extracting file: SimpleArchiveFormat_63538/item_8/dublin_core.xml
Extracting file: SimpleArchiveFormat_63538/item_9/20130403_002_gov_fac.pdf
Extracting file: SimpleArchiveFormat_63538/item_9/contents
Extracting file: SimpleArchiveFormat_63538/item_9/dublin_core.xml
Adding items from directory: /dspace/exports/SimpleArchiveFormat_63538.zip
Generating mapfile: import-zip.map
Adding item from directory SimpleArchiveFormat_63538
java.io.FileNotFoundException: /dspace/exports/SimpleArchiveFormat_63538.zip/SimpleArchiveFormat_63538/dublin_core.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
at org.dspace.app.itemimport.ItemImport.loadXML(ItemImport.java:1922)
at org.dspace.app.itemimport.ItemImport.loadDublinCore(ItemImport.java:1099)
at org.dspace.app.itemimport.ItemImport.loadMetadata(ItemImport.java:1084)
at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:907)
at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:780)
at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:567)
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: /dspace/exports/SimpleArchiveFormat_63538.zip/SimpleArchiveFormat_63538/dublin_core.xml (No such file or directory)
Deleting temporary zip directory: /dspace/exports/SimpleArchiveFormat_63538.zip/
***End of Test Run***
Started: 1405957597289
Ended: 1405957597515
Elapsed time: 0 secs (226 msecs)
@peterdietz

This comment has been minimized.

Copy link
Owner Author

commented Jul 21, 2014

I have filed a JIRA ticket for this issue: https://jira.duraspace.org/browse/DS-2071
And have made a pull request to fix this problem: DSpace/DSpace#579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.