Actually using SWORD and making my own zip with all the files and the
appropriate xml ( I supose... ), I can't make an ingestion of a 13 files
into an item ( 10 jpg and 3 pdf - 1,1Mb)
Sometimes works but if I add more files I can be sure that it won't work
and it will show me the following message :
curl -i --data-binary "@modules.zip" -H "Content-Disposition:
filename=myDSpaceMETSItem.zip" -H "Content-Type: application/zip" -H
"X-Packaging: http://purl.org/net/sword-types/METSDSpaceSIP" -H
"X-No-Op: false" -H "X-Verbose: true"
http://user:p...@localhost:8080/sword/deposit/123456789/47
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1000
Date: Thu, 03 Sep 2009 16:04:53 GMT
Connection: close
<html><head><title>Apache Tomcat/6.0.18 - 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 - </h1><HR
size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
server encountered an internal error () that prevented it from
fulfilling this request.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>
the xml file has that code (it's a simple extension of the sample file
that I found in the example package):
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<mets ID="sort-mets_mets" OBJID="sword-mets" LABEL="DSpace SWORD Item"
PROFILE="DSpace METS SIP Profile 1.0" xmlns="http://www.loc.gov/METS/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/METS/
http://www.loc.gov/standards/mets/mets.xsd">
<metsHdr CREATEDATE="2009-09-03T17:44:48">
<agent ROLE="CUSTODIAN" TYPE="ORGANIZATION">
<name>Richard Jones</name>
</agent>
</metsHdr>
<dmdSec ID="sword-mets-dmd-1" GROUPID="sword-mets-dmd-1_group-1">
<mdWrap MIMETYPE="text/xml" MDTYPE="OTHER" OTHERMDTYPE="EPDCX"
LABEL="SWAP Metadata">
<xmlData>
<epdcx:descriptionSet
xmlns:epdcx="http://purl.org/eprint/epdcx/2006-11-16/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:schemaLocation="http://purl.org/eprint/epdcx/2006-11-16/
http://purl.org/eprint/epdcx/xsd/2006-11-16/epdcx.xsd">
<epdcx:description
epdcx:resourceId="sword-mets-epdcx-1"><epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/type"
epdcx:valueURI="http://purl.org/eprint/entityType/ScholarlyWork"/>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/title">
<epdcx:valueString>Attempts to detect retrotransposition and
de novo deletion of Alus and other dispersed repeats at specific loci
in the human genome</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/terms/abstract">
<epdcx:valueString>Dispersed repeat elements contribute
togenome instability by de novo insertionand unequal recombination
betweenrepeats. To study the dynamics of theseprocesses, we have
developed single DNAmolecule approaches to detect de novoinsertions at
a single locus and u-mediated deletions at two differentloci in human
genomic DNA. Validation experiments showed these approaches could
detect insertions and deletions atfrequencies below 10(-6) per
cell.However, bulk analysis of germline(sperm) and somatic DNA showed
noevidence for genuine mutant molecules, placing an upper limit of
insertionand deletion rates of 2 x 10(-7) and 3 x10(-7),
respectively, in the individualstested. Such re-arrangements at
these loci therefore occur at a rate lowerthan that detectable by
the mostsensitive methods currently available.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/creator">
<epdcx:valueString>Hollies, C.R.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/creator">
<epdcx:valueString>Monckton, D.G.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/creator">
<epdcx:valueString>Jeffreys, A.J.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/identifier">
<epdcx:valueString
epdcx:sesURI="http://purl.org/dc/terms/URI">http://www.myu.ac.uk/some/identifier</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/eprint/terms/isExpressedAs"
epdcx:valueRef="sword-mets-expr-1"/>
</epdcx:description>
<epdcx:description
epdcx:resourceId="sword-mets-epdcx-1"><epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/type"
epdcx:valueURI="http://purl.org/eprint/entityType/ScholarlyWork"/>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/title">
<epdcx:valueString>Attempts to detect retrotransposition and
de novo deletion of Alus and other dispersed repeats at specific loci
in the human genome</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/terms/abstract">
<epdcx:valueString>Dispersed repeat elements contribute
togenome instability by de novo insertionand unequal recombination
betweenrepeats. To study the dynamics of theseprocesses, we have
developed single DNAmolecule approaches to detect de novoinsertions at
a single locus and u-mediated deletions at two differentloci in human
genomic DNA. Validation experiments showed these approaches could
detect insertions and deletions atfrequencies below 10(-6) per
cell.However, bulk analysis of germline(sperm) and somatic DNA showed
noevidence for genuine mutant molecules, placing an upper limit of
insertionand deletion rates of 2 x 10(-7) and 3 x10(-7),
respectively, in the individualstested. Such re-arrangements at
these loci therefore occur at a rate lowerthan that detectable by
the mostsensitive methods currently available.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/creator">
<epdcx:valueString>Hollies, C.R.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/creator">
<epdcx:valueString>Monckton, D.G.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/creator">
<epdcx:valueString>Jeffreys, A.J.</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/identifier">
<epdcx:valueString
epdcx:sesURI="http://purl.org/dc/terms/URI">http://www.myu.ac.uk/some/identifier</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/eprint/terms/isExpressedAs"
epdcx:valueRef="sword-mets-expr-1"/>
</epdcx:description>
<epdcx:description epdcx:resourceId="sword-mets-expr-1">
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/type"
epdcx:valueURI="http://purl.org/eprint/entityType/Expression"/>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/language"
epdcx:vesURI="http://purl.org/dc/terms/RFC3066">
<epdcx:valueString>en</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/elements/1.1/type"
epdcx:vesURI="http://purl.org/eprint/terms/Type"
epdcx:valueURI="http://purl.org/eprint/type/JournalArticle"/>
<epdcx:statement
epdcx:propertyURI="http://purl.org/dc/terms/available">
<epdcx:valueString
epdcx:sesURI="http://purl.org/dc/terms/W3CDTF">2001-02</epdcx:valueString>
</epdcx:statement>
<epdcx:statement
epdcx:propertyURI="http://purl.org/eprint/terms/status"
epdcx:vesURI="http://purl.org/eprint/terms/Status"
epdcx:valueURI="http://purl.org/eprint/status/PeerReviewed"/>
<epdcx:statement
epdcx:propertyURI="http://purl.org/eprint/terms/copyrightHolder">
<epdcx:valueString>Nature Publishing Group</epdcx:valueString>
</epdcx:statement>
</epdcx:description>
</epdcx:descriptionSet>
</xmlData>
</mdWrap>
</dmdSec>
<fileSec>
<fileGrp ID="sword-mets-fgrp-1" USE="CONTENT">
<file ID="sword-mets-file-1" MIMETYPE="application/pdf"
GROUPID="sword-mets-fgid-0">
<FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="pdf1.pdf"/>
</file>
<file ID="sword-mets-file-2" MIMETYPE="application/pdf"
GROUPID="sword-mets-fgid-1">
<FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="pdf2.pdf"/>
</file>
<file ID="sword-mets-file-3" MIMETYPE="application/pdf"
GROUPID="sword-mets-fgid-2">
<FLocat LOCTYPE="URL" xlink:type="simple" xlink:href="pdf3.pdf"/>
</file>
<file ID="sword-mets-file-4" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-3">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col001g.jpg"/>
</file>
<file ID="sword-mets-file-5" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-4">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col002g.jpg"/>
</file>
<file ID="sword-mets-file-6" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-5">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col003g.jpg"/>
</file>
<file ID="sword-mets-file-7" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-6">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col004g.jpg"/>
</file>
<file ID="sword-mets-file-8" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-7">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col005g.jpg"/>
</file>
<file ID="sword-mets-file-9" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-8">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col006g.jpg"/>
</file>
<file ID="sword-mets-file-10" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-9">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col007g.jpg"/>
</file>
<file ID="sword-mets-file-11" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-10">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col008g.jpg"/>
</file>
<file ID="sword-mets-file-12" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-11">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col009g.jpg"/>
</file>
<file ID="sword-mets-file-13" MIMETYPE="application/jpeg"
GROUPID="sword-mets-fgid-12">
<FLocat LOCTYPE="URL" xlink:type="simple"
xlink:href="qmem739_col010g.jpg"/>
</file>
</fileGrp>
<fileGrp/>
</fileSec>
<structMap ID="sword-mets-struct-1" LABEL="structure" TYPE="LOGICAL">
<div ID="sword-mets-div-1" DMDID="sword-mets-dmd-1" TYPE="SWORD Object">
<div ID="sword-mets-div-2" TYPE="File">
<fptr FILEID="sword-mets-file-1"/>
</div>
<div ID="sword-mets-div-3" TYPE="File">
<fptr FILEID="sword-mets-file-2"/>
</div>
<div ID="sword-mets-div-4" TYPE="File">
<fptr FILEID="sword-mets-file-3"/>
</div>
<div ID="sword-mets-div-5" TYPE="File">
<fptr FILEID="sword-mets-file-4"/>
</div>
<div ID="sword-mets-div-6" TYPE="File">
<fptr FILEID="sword-mets-file-5"/>
</div>
<div ID="sword-mets-div-7" TYPE="File">
<fptr FILEID="sword-mets-file-6"/>
</div>
<div ID="sword-mets-div-8" TYPE="File">
<fptr FILEID="sword-mets-file-7"/>
</div>
<div ID="sword-mets-div-9" TYPE="File">
<fptr FILEID="sword-mets-file-8"/>
</div>
<div ID="sword-mets-div-10" TYPE="File">
<fptr FILEID="sword-mets-file-9"/>
</div>
<div ID="sword-mets-div-11" TYPE="File">
<fptr FILEID="sword-mets-file-10"/>
</div>
<div ID="sword-mets-div-12" TYPE="File">
<fptr FILEID="sword-mets-file-11"/>
</div>
<div ID="sword-mets-div-13" TYPE="File">
<fptr FILEID="sword-mets-file-12"/>
</div>
<div ID="sword-mets-div-14" TYPE="File">
<fptr FILEID="sword-mets-file-13"/>
</div>
</div>
</structMap>
</mets>
And Dspace's log says that SWORDMETSIngester can't find a file or directory
2009-09-03 12:28:27,249 ERROR org.dspace.sword.SWORDMETSIngester @
caught exception:
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
at
org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:332)
at org.dspace.content.Bitstream.create(Bitstream.java:194)
at org.dspace.content.Bundle.createBitstream(Bundle.java:390)
at
org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:239)
at
org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:115)
at
org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:179)
at org.dspace.sword.DepositManager.deposit(DepositManager.java:173)
at
org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:150)
at
org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:331)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
2009-09-03 12:28:27,250 ERROR org.dspace.sword.DSpaceSWORDServer @
caught exception:
org.dspace.sword.DSpaceSWORDException: java.io.IOException: No such
file or directory
at
org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:171)
at
org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:179)
at org.dspace.sword.DepositManager.deposit(DepositManager.java:173)
at
org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:150)
at
org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:331)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
at
org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:332)
at org.dspace.content.Bitstream.create(Bitstream.java:194)
at org.dspace.content.Bundle.createBitstream(Bundle.java:390)
at
org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:239)
at
org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:115)
Is something that I'm doing wrong? sometimes works... and sometimes
doesn't work
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech