SWORDV2 issue- help with command line deposit error

32 views
Skip to first unread message

Gabriel Galson

unread,
Jul 8, 2019, 4:35:13 PM7/8/19
to DSpace Technical Support
Group- 

Your help with a problem we're experiencing with SWORDv2 would be much appreciated. Here is the 'HTTP Status 500' error message we receive when we try to deposit to DSpace through SWORDv2 via the command line.  Our service doc looks good, as do the pages corresponding to individual items.  

What could be causing this?  Thank you for any help or insight you can provide!

-Gabe

curl -i https://scholarshare.temple.edu/swordv2/collection/123456789/2 --data-binary "@test.zip" -H "Content-Disposition: filename=123456780-273.csv" -H "Content-Type: application/zip" -H "Packaging: http://purl.org/net/sword/package/METSDSpaceSIP" --user "---------@temple.edu"
Enter host password for user '---------@temple.edu':
HTTP/1.1 500 Internal Server Error
Date: Fri, 05 Jul 2019 13:28:22 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_jk/1.2.43
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 4650
Connection: close

<html><head><title>Apache Tomcat/7.0.76 - Error report</title><style><!-H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color: #525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma, Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color: white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white; color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}-></style> </head><body><h1>HTTP Status 500 - org.s wordapp.server.SwordServerException: There was a problem depositing the item</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception repor t</p><p><b>message</b> <u>org.swordapp.server.SwordServerException: There was a problem depositing the item</u></p><p><b>description</b> <u>Th e server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletEx ception: org.swordapp.server.SwordServerException: There was a problem depositing the item
org.swordapp.server.CollectionAPI.post(CollectionAPI.java:214)
org.swordapp.server.servlets.CollectionServletDefault.doPost(CollectionServletDefault.java:48)
javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</pre></p><p><b>root cause</b> <pre>org.swordapp.server.SwordServerException: There was a problem depositing the item
org.dspace.sword2.CollectionDepositManagerDSpace.createNew(CollectionDepositManagerDSpace.java:177)
org.swordapp.server.CollectionAPI.post(CollectionAPI.java:165)
org.swordapp.server.servlets.CollectionServletDefault.doPost(CollectionServletDefault.java:48)
javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</pre></p><p><b>root cause</b> <pre>org.dspace.sword2.DSpaceSwordException: java.util.zip.ZipException: error in opening zip file
org.dspace.sword2.SwordMETSContentIngester.ingestToCollection(SwordMETSContentIngester.java:208)
org.dspace.sword2.AbstractSwordContentIngester.ingest(AbstractSwordContentIngester.java:55)
org.dspace.sword2.SwordMETSContentIngester.ingest(SwordMETSContentIngester.java:55)
org.dspace.sword2.CollectionDepositManagerDSpace.createNewFromBinary(CollectionDepositManagerDSpace.java:210)
org.dspace.sword2.CollectionDepositManagerDSpace.createNew(CollectionDepositManagerDSpace.java:107)
org.swordapp.server.CollectionAPI.post(CollectionAPI.java:165)
org.swordapp.server.servlets.CollectionServletDefault.doPost(CollectionServletDefault.java:48)
javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</pre></p><p><b>root cause</b> <pre>java.util.zip.ZipException: error in opening zip file
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.<init>(ZipFile.java:225)
java.util.zip.ZipFile.<init>(ZipFile.java:155)
java.util.zip.ZipFile.<init>(ZipFile.java:169)
org.dspace.content.packager.AbstractMETSIngester.parsePackage(AbstractMETSIngester.java:336)
org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1145)
org.dspace.sword2.SwordMETSContentIngester.ingestToCollection(SwordMETSContentIngester.java:133)
org.dspace.sword2.AbstractSwordContentIngester.ingest(AbstractSwordContentIngester.java:55)
org.dspace.sword2.SwordMETSContentIngester.ingest(SwordMETSContentIngester.java:55)
org.dspace.sword2.CollectionDepositManagerDSpace.createNewFromBinary(CollectionDepositManagerDSpace.java:210)
org.dspace.sword2.CollectionDepositManagerDSpace.createNew(CollectionDepositManagerDSpace.java:107)
org.swordapp.server.CollectionAPI.post(CollectionAPI.java:165)
org.swordapp.server.servlets.CollectionServletDefault.doPost(CollectionServletDefault.java:48)
javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/7.0.76 logs.</u></p><HR size="1" noshade=

 



Joshua Kim

unread,
Apr 12, 2026, 7:40:52 PM (4 days ago) Apr 12
to DSpace Technical Support
Hi,
I have the same error now when I use Sword v2. Can you fix the issue?
Reply all
Reply to author
Forward
0 new messages