You can subscribe to this list here.
2008 |
Jan
(22) |
Feb
(8) |
Mar
(9) |
Apr
(4) |
May
(17) |
Jun
(29) |
Jul
(11) |
Aug
(13) |
Sep
(17) |
Oct
(14) |
Nov
(41) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(17) |
Feb
(26) |
Mar
(18) |
Apr
(1) |
May
(11) |
Jun
(20) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
2010 |
Jan
(23) |
Feb
(7) |
Mar
(9) |
Apr
(13) |
May
(5) |
Jun
|
Jul
(3) |
Aug
(5) |
Sep
|
Oct
(1) |
Nov
(3) |
Dec
|
2011 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
(14) |
Jul
(22) |
Aug
(1) |
Sep
(2) |
Oct
(11) |
Nov
(11) |
Dec
(35) |
2012 |
Jan
(17) |
Feb
(12) |
Mar
(41) |
Apr
(40) |
May
(41) |
Jun
(27) |
Jul
(9) |
Aug
(1) |
Sep
|
Oct
(6) |
Nov
|
Dec
(11) |
2013 |
Jan
|
Feb
(4) |
Mar
(2) |
Apr
(8) |
May
(1) |
Jun
(18) |
Jul
(10) |
Aug
(16) |
Sep
(2) |
Oct
(1) |
Nov
(14) |
Dec
(11) |
2014 |
Jan
(7) |
Feb
(2) |
Mar
|
Apr
|
May
(8) |
Jun
(1) |
Jul
(7) |
Aug
(10) |
Sep
(8) |
Oct
(8) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(4) |
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Stuart L. <sd...@ab...> - 2008-06-12 07:47:08
|
Hi all, Just FYI... Yesterday I fixed a couple of small issues with the Java SWORD library: - Added 'charset=UTF-8' to the content type output headers to support UTF-8 encoding - Updated the content types to: - application/atom+xml for Deposits - application/atomsvc+xml for Service Documents. I think this is right according to spec, but if anyone knows otherwise, please shout. These changes have been added to the DSpace trunk, others also using this library may wish to download an updated copy too. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: Stu...@ab... Ffon / Tel: (01970) 622860 _________________________________________________________________ |
From: Glen R. <gle...@ll...> - 2008-06-04 08:06:49
|
Hi, I've added a method called ensureValidDSIds to DefaultFileHandler which is called just before ingest to fix the datastream naming problems. It does the following things: 1. Ensures the datastream names are unique. e.g. if a zip file contains: test/ test/P1010001.JPG test/P1010001.pdf test/P1010002.JPG test/P1010003.JPG test/dup/ test/dup/P1010001.JPG test/dup/P1010002.JPG test/dup/P1010003.JPG test/dup/P1010004.JPG It will result in the following datastreams: ID Label Mime-type --------------------------------------------------------------- P1010001 test/P1010001.JPG image/jpeg P1010001-2 test/P1010001.pdf application/pdf P1010001-3 test/dup/P1010001.JPG image/jpeg P1010002 test/P1010002.JPG image/jpeg P1010002-2 test/dup/P1010002.JPG image/jpeg P1010003 test/P1010003.JPG image/jpeg P1010003-2 test/dup/P1010003.JPG image/jpeg P1010004 test/dup/P1010004.JPG image/jpeg The original name is saved in the label and the ID is now unique. 2. The method also checks to see if the Datastream name is valid it should begin with a letter or _ character. If it begins with anything else uploaded- is prepended. So 111.jpg would become uploaded-111.jpg. Ill add these changes to svn when I get a login. Thanks Glen On 3 Jun 2008, at 14:44, Glen Robson wrote: > Hi, > > I am going to have a look at it tonight but I think the solution to > preserving the file name is: > > Take the filename without the extension and add a number to it so > data1 data2. You would also have to check if the filename starts with > a number then prepend a string to the file e.g. uploaded-9 > > This won't preserve the filename completely as it will be data1 rather > than data.txt but you should be able to guess the original file name. > The reason I like using the filename as the datastream ID is that you > can identify what you have deposited. > > Another alternative is to have datastream names suggested by Ian > dependent on mime-type although you will run in to problems if there > are two files with the same mime-type in a Zip file. > > What I think I might try if everyone is happy with the compromise is > to take the first solution above e.g. data1 as the datastream ID then > put the original file name in to the alternative IDs field of the > datastream so it is preserved. This means that if you download it > using the inbuilt fedora disseminators you will download data1 but if > you wanted the original name you can create your own disseminator to > pull it from the alternative ID field. Also if you want the filenames > named after the mimetype this could also be handled with a different > disseminator. > > Regarding your other question: > > "just one more thing i want to ask, is there any way we can avoid to > ingest zip, as (SFAPI) it inget zip file also as datastream, what i > wanted, only file to be ingested which is in zip not zip file itself > as well also. " > > When we were discussing the sword project I seem to remember that we > discussed that when someone deposits something they should be able to > get it back in the original form so that is why the ZIP file is also > added to the object. If you want to change this functionality so that > the zip file is not added you can add another file handler which > extends org.purl.sword.server.fedora.fileHandlers.ZipFileHandler. The > methods you will need to override are: > > public boolean isHandled(final String pMimeType, final String > pFormatNamespace) > > Where mime type should be application/zip and format namespace should > be something unique. The getDatastreams method should be changed to: > > protected List<Datastream> getDatastreams(final DepositCollection > pDeposit) throws IOException, SWORDException { > List<Datastream> tDatastreams = new ArrayList<Datastream>(); > LOG.debug("copying file"); > > String tZipTempFileName = super.getTempDir() + "uploaded-file.tmp"; > IOUtils.copy(pDeposit.getFile(), new > FileOutputStream(tZipTempFileName)); > > // Add the original zip file > tDatastreams.addAll(_zipFile.getFiles(tZipTempFileName)); > return tDatastreams; > } > > and then add the new file handler to the properties file > properties.xml > > Thanks > > Glen > > On 3 Jun 2008, at 13:52, Rishi K Sharma wrote: > >> Hi Glen, >> >> The solution you have suggested yesterday for ingest with file, >> which start with number, i >> have tried, but it does not preserve the file name. >> Is there any way i can preserve the file name. >> >> Best Regards >> ----------------------------------- >> Rishi K Sharma >> Systems Development Project Officer >> Centre for e-Research >> King's College London >> 0207 848 1971 >> >> >> >> >> -----Original Message----- >> From: swo...@li... >> [mailto:swo...@li...]On Behalf Of >> Glen >> Robson >> Sent: 02 June 2008 09:59 >> To: swo...@li... >> Subject: Re: [sword-app-tech] File submission error >> >> >> Hi, >> >> When I was developing the Fedora Sword client I thought it would be a >> good idea to use the deposited file name as the datastream id to aid >> identification of the deposit and also to ensure the correct >> extensions when the item is downloaded using the inbuilt fedora >> disseminators. I can see now this is causing a few problems with >> Fedora's inbuilt validation rules. The code which decides the file >> name is in the following Java class: >> >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler >> >> The method code is as follows: >> >> public String getGenericFileName(final DepositCollection >> pDeposit) >> >> if (pDeposit.getFilename() == null) { >> tFilename = "upload"; >> } else { >> tFilename = pDeposit.getFilename(); >> } >> >> I propose the following change to the method to produce unique >> datastream names per object: >> >> protected static int _uniqueCount = 1; >> public String getGenericFileName(final DepositCollection pDeposit) { >> String tFilename = "upload" + _uniqueCount++; >> if (pDeposit.getFilename() == null || >> pDeposit.getFilename().indexOf(".") == -1) { >> return tFilename; >> } else { >> int tExtensionStart = >> pDeposit.getFilename().indexOf("."); >> String tExtension = >> pDeposit.getFilename().substring(tExtensionStart, >> pDeposit.getFilename().length()); >> return tFilename + "." + tExtension; >> } >> } >> >> Does anyone have any comments? >> >> Thanks >> >> Glen >> >> Fedora Implementation Developer >> The National Library of Wales >> >> On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: >> >>> It looks that way Ian, I needed to rename files such as data.pdf, >>> data.txt to data_pdf.pdf, data_txt.txt >>> >>> I need a bath! >>> >>> Caused by: fedora.server.errors.ObjectValidityException: >>>>>>> DOValidatorXMLSchema returned >>>>>>> validation exception. >>>>>>> The underlying exception was a org.xml.sax.SAXException. >>> >>> >>> Regards, >>> Antony >>> -- >>> Antony Corfield >>> ROAD Project >>> http://road.aber.ac.uk >>> tel. 01970 628724 >>> >>> >>>> -----Original Message----- >>>> From: swo...@li... [mailto:sword- >>>> app- >>>> tec...@li...] On Behalf Of Ian Ibbotson >>>> Sent: 30 May 2008 14:57 >>>> To: ris...@ah...; swo...@li... >>>> Subject: Re: [sword-app-tech] File submission error >>>> >>>> Hiya All, >>>> >>>> I don't generally use the Fedora backend, but looking through the >>>> stack >>>> trace, I wonder if the problem is that the fedora foxml schema >>>> defines a >>>> datastream id as a string that must start with a character (An >>>> NCName). >>>> I suspect we need to take a peek insde the fedora adapter.. I don't >>>> have >>>> the code for that to hand, but I'll try and grab hold of it unless >>>> Jim D >>>> or someone else who knows better can beat me to it :) (Actually, >>>> not >>>> sure about using the filename as the datastream id, but I think >>>> thats >>>> down to my ignorance rather than anything else, I guess it's >>>> difficult >>>> to do anything better without more descriptive parameters in the >>>> upload). I guess the initial hack workaround is to prefix filenames >>>> with >>>> a character. Now don't I feel dirty! >>>> >>>> Ian. >>>> >>>> >>>> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: >>>>> I have had a similar problem when depositing files that have the >>>> same name but different extensions. If >>>>> >>>>> >>>>> Regards, >>>>> Antony >>>>> -- >>>>> Antony Corfield >>>>> ROAD Project >>>>> http://road.aber.ac.uk >>>>> tel. 01970 628724 >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>>> Sent: 30 May 2008 14:34 >>>>>> To: Antony Corfield [awc] >>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>> >>>>>> Yes, it works, if filename starts with character e.g. if i do >>>> like >>>>>> p12.pdf, i works >>>>>> >>>>>> Best Regards >>>>>> ----------------------------------- >>>>>> Rishi K Sharma >>>>>> Systems Development Project Officer >>>>>> Centre for e-Research >>>>>> King's College London >>>>>> 0207 848 1971 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -----Original Message----- >>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>>> Sent: 30 May 2008 14:26 >>>>>> To: ris...@ah... >>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>> >>>>>> >>>>>> I presume that's the problem, does it work if the file name >>>> starts >>>>>> with a character? >>>>>> >>>>>> >>>>>> Regards, >>>>>> Antony >>>>>> -- >>>>>> Antony Corfield >>>>>> ROAD Project >>>>>> http://road.aber.ac.uk >>>>>> tel. 01970 628724 >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>>>> Sent: 30 May 2008 10:37 >>>>>>> To: Antony Corfield [awc] >>>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>>> >>>>>>> Hi Antony, >>>>>>> >>>>>>> Thanks for your attention, >>>>>>> >>>>>>> I am using the following url to deposit >>>>>>> http://localhost:8080/sword/app/deposit/collection:open >>>>>>> >>>>>>> also i am using the Fedora Server to ingest. >>>>>>> I am using SWORD java API to deposit. >>>>>>> >>>>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts >>>>>> with >>>>>>> number, i am getting >>>>>>> the following error >>>>>>> >>>>>>> The status is: Code: 500, Message: 'Internal Server Error' >>>>>>> No valid Entry document was received from the server >>>>>>> >>>>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] >>>> Starting >>>>>>> deposit processing at >>>>>>> Fri May 30 10:28:04 BST 2008 by >>>>>>> 127.0.0.1 >>>>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] >>>> Starting >>>>>>> deposit processing at >>>>>>> Fri May 30 10:28:05 BST 2008 by >>>>>>> 127.0.0.1 >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >>>> Received >>>>>>> filechecksum: >>>>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >>>> Received >>>>>>> file checksum header: >>>>>>> null >>>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>>>> UserID=sword >>>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>>>> IsAdministrator=true >>>>>>> 10:28:12,578 DEBUG >>>>>>> >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>>>> Looking for collecitons for user gmr >>>>>>> with XPath=./users/user[./text() = 'gmr'] >>>>>>> 10:28:12,578 DEBUG >>>>>>> >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>>>> Looking for collecitons for user gmr >>>>>>> with XPath=./users/user[./text() = 'gmr'] >>>>>>> 10:28:12,609 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Looking >>>>>>> for application/pdf and format >>>>>>> null >>>>>>> 10:28:12,609 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,656 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.JpegHandler as a file handler >>>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,656 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.METSFileHandler as a file handler >>>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,656 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.ZipFileHandler as a file handler >>>>>>> 10:28:12,671 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,671 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.ZipMETSFileHandler as a file handler >>>>>>> 10:28:12,671 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,687 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Couldn't >>>>>>> find a file handler so using >>>>>>> default >>>>>>> 10:28:12,687 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,703 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,953 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] >>>> Finding >>>>>>> next >>>>>>> pid user=sword password=sword >>>>>>> 10:28:13,093 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>>> copying >>>>>>> file >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>>> Filename >>>>>>> '12p.pdf' >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>>> Returning application/pdf >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>> No >>>>>>> disseminators are added >>>>>>> 10:28:13,125 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] >>>>>>> Uploading >>>>>>> C:\Temp\uploaded-file.tmp >>>>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is >>>>>>> getting >>>>>>> http://localhost:8080/fedora/management/upload >>>>>>> 10:28:13,453 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready >>>> to >>>>>>> upload xml >>>>>>> 10:28:13,453 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>>>> Writing >>>>>>> out DC to FOXML >>>>>>> 10:28:13,453 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>>>> Writing >>>>>>> out RELS-EXT to FOXML >>>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- >>>>>>> system:def/foxml#" >>>>>>> PID="changeme:205"> >>>>>>> <foxml:objectProperties> >>>>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- >>>> syntax- >>>>>>> ns#type" >>>>>>> VALUE="FedoraObject" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/model#state" >>>>>>> VALUE="Active" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/model#label" >>>>>>> VALUE="Object created >>>>>>> through the SWORD deposit sys >>>>>>> tem" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>>> system:def/model#ownerId" VALUE="gmr" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>>> system:def/model#createdDate" >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>>> system:def/view#lastModifiedDate" >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My >>>>>> deposit" >>>>>>> /> >>>>>>> </foxml:objectProperties> >>>>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" >>>>>>> VERSIONABLE="true"> >>>>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core >>>> Metadata" >>>>>>> MIMETYPE="text/xml"> >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>>> <foxml:xmlContent> >>>>>>> <oai_dc:dc >>>>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> >>>>>>> <dc:title >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the >>>> JISC >>>>>>> funded SWORD project</dc:title> >>>>>>> <dc:creator >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> >>>>>>> <dc:format >>>>>>> >>>>>> >>>> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</ >>>> dc:forma >>>>>>> t> >>>>>>> <dc:identifier >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My >>>>>>> deposit</dc:identifier> >>>>>>> </oai_dc:dc> >>>>>>> </foxml:xmlContent> >>>>>>> </foxml:datastreamVersion> >>>>>>> </foxml:datastream> >>>>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" >>>>>>> VERSIONABLE="true"> >>>>>>> <foxml:datastreamVersion ID="RELS-EXT.0" >>>> LABEL="Relationships >>>>>> to >>>>>>> other objects" >>>>>>> MIMETYPE="text/xml"> >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>>> <foxml:xmlContent> >>>>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- >>>>>> syntax- >>>>>>> ns#"> >>>>>>> <rdf:Description >>>> rdf:about="info:fedora/changeme:205"> >>>>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- >>>>>>> system:def/relations-external#" >>>>>>> rdf:resource="info:fedora/coll >>>>>>> ection:open" /> >>>>>>> </rdf:Description> >>>>>>> </rdf:rdf> >>>>>>> </foxml:xmlContent> >>>>>>> </foxml:datastreamVersion> >>>>>>> </foxml:datastream> >>>>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" >>>>>>> VERSIONABLE="true"> >>>>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD >>>> Generic >>>>>> File >>>>>>> Upload" >>>>>>> MIMETYPE="application/pdf"> >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> >>>>>>> </foxml:datastreamVersion> >>>>>>> </foxml:datastream> >>>>>>> </foxml:digitalObject> >>>>>>> >>>>>>> 10:28:14,437 ERROR >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had >>>>>>> problems >>>>>>> adding the object to the repos >>>>>>> itory; fedora.server.errors.ObjectValidityException: >>>>>>> DOValidatorXMLSchema returned >>>>>>> validation exception. >>>>>>> The underlying exception was a org.xml.sax.SAXException. >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>>>> '12p.pdf' is not a valid >>>>>>> value for 'NCName'." >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the >>>> object >>>>>> to >>>>>>> the repository; >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow >>>>>>> n Source) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe >>>>>>> post(Unknown Source) >>>>>>> at >>>>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown >>>> Source) >>>>>>> at >>>>>>> >>>>>> >>>> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java: >>>> 240) >>>>>>> at >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >>>>>>> at >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >>>>>>> icationFilterChain.ja >>>>>>> va:269) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >>>>>>> ilterChain.java:188) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >>>>>>> alve.java:213) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardContextValve.invoke(StandardContextV >>>>>>> alve.java:174) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >>>>>>> ava:127) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >>>>>>> ava:117) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >>>>>>> ve.java:108) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >>>>>>> a:151) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java >>>>>>> :874) >>>>>>> at >>>>>>> >>>>>> >>>> org.apache.coyote.http11.Http11BaseProtocol >>>> $Http11ConnectionHandler.p >>>>>>> rocessConnection(Http >>>>>>> 11BaseProtocol.java >>>>>>> :665) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo >>>>>>> int.java:528) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol >>>>>>> lowerWorkerThread.jav >>>>>>> a:81) >>>>>>> at >>>>>>> >>>>>> >>>> org.apache.tomcat.util.threads.ThreadPool >>>> $ControlRunnable.run(ThreadP >>>>>>> ool.java:689) >>>>>>> at java.lang.Thread.run(Thread.java:619) >>>>>>> Caused by: fedora.server.errors.ObjectValidityException: >>>>>>> DOValidatorXMLSchema returned >>>>>>> validation exception. >>>>>>> The underlying exception was a org.xml.sax.SAXException. >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>>>> '12p.pdf' is not a valid >>>>>>> value for 'NCName'." >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder >>>>>>> .java:222) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. >>>>>>> java:129) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.encoding.DeserializationContext.endElement(Deserializ >>>>>>> ationContext.java:108 >>>>>>> 7) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme >>>>>>> nt(AbstractSAXParser. >>>>>>> java:601) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>>> l.scanEndElement(XMLD >>>>>>> ocumentFragmentScan >>>>>>> nerImpl.java:1772) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>>> l$FragmentContentDriv >>>>>>> er.next(XMLDocument >>>>>>> FragmentScannerImpl.java:2923) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X >>>>>>> MLDocumentScannerImpl >>>>>>> .java:645) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next >>>>>>> (XMLNSDocumentScanner >>>>>>> Impl.java:140) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>>> l.scanDocument(XMLDoc >>>>>>> umentFragmentScanne >>>>>>> rImpl.java:508) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>>>> ML11Configuration.jav >>>>>>> a:807) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>>>> ML11Configuration.jav >>>>>>> a:737) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. >>>>>>> java:107) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab >>>>>>> stractSAXParser.java: >>>>>>> 1205) >>>>>>> at >>>>>>> >>>>>> >>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl >>>> $JAXPSAXParser.p >>>>>>> arse(SAXParserImpl.ja >>>>>>> va:522) >>>>>>> at >>>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.encoding.DeserializationContext.parse(Deserialization >>>>>>> Context.java:227) >>>>>>> at >>>>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) >>>>>>> at >>>>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders >>>>>>> tandChecker.java:62) >>>>>>> at >>>>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) >>>>>>> at >>>> org.apache.axis.client.Call.invokeEngine(Call.java:2784) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) >>>>>>> at >>>>>>> >>>>>> >>>> info >>>> .fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges >>>>>>> t(Unknown >>>>>>> Source) >>>>>>> ... 20 more >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] >>>>>>> Exception occured: >>>>>>> org.purl.sword.base.SWORDException: Ha >>>>>>> d problems adding the object to the repository; >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the >>>> object >>>>>> to >>>>>>> the repository; >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the ob >>>>>>> ject to the repository; >>>>>>> >>>>>>> >>>>>>> Best Regards >>>>>>> ----------------------------------- >>>>>>> Rishi K Sharma >>>>>>> Systems Development Project Officer >>>>>>> Centre for e-Research >>>>>>> King's College London >>>>>>> 0207 848 1971 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>>>> Sent: 30 May 2008 09:50 >>>>>>> To: ris...@kc... >>>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>>> >>>>>>> >>>>>>> What errors/stack dump are you getting? >>>>>>> What url are you using for deposit? >>>>>>> Have you tried depositing to the Fedora test implementation? >>>>>>> Have you tried using the test packages? >>>>>>> What client are you using to deposit? >>>>>>> >>>>>>> See: >>>> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access >>>>>>> >>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Antony >>>>>>> -- >>>>>>> Antony Corfield >>>>>>> ROAD Project >>>>>>> http://road.aber.ac.uk >>>>>>> tel. 01970 628724 >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: swo...@li... >>>> [mailto:sword- >>>>>>> app- >>>>>>>> tec...@li...] On Behalf Of Rishi K >>>> Sharma >>>>>>>> Sent: 29 May 2008 15:00 >>>>>>>> To: swo...@li... >>>>>>>> Subject: [sword-app-tech] File submission error >>>>>>>> >>>>>>>> Hi Guys, >>>>>>>> >>>>>>>> I am trying to use fedora Sword deposit api implementation >>>> and i >>>>>> am >>>>>>>> not able to ingest >>>>>>>> file which starting with number like (9.pdf or 9pm.pdf), >>>>>>>> is there any way so that i can ingest these files into fedora >>>>>> using >>>>>>>> Sword deposit API. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Best Regards >>>>>>>> ----------------------------------- >>>>>>>> Rishi K Sharma >>>>>>>> Systems Development Project Officer >>>>>>>> Centre for e-Research >>>>>>>> King's College London >>>>>>>> 0207 848 1971 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------- >>>> ---- >>>>>> -- >>>>>>> -- >>>>>>>> ---- >>>>>>>> This SF.net email is sponsored by: Microsoft >>>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>>>> _______________________________________________ >>>>>>>> sword-app-tech mailing list >>>>>>>> swo...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>>>> >>>>> >>>>> ------------------------------------------------------------------- >>>> ------ >>>>> This SF.net email is sponsored by: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> _______________________________________________ >>>>> sword-app-tech mailing list >>>>> swo...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>>> >>>> >>>> --------------------------------------------------------------------- >>>> ---- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> sword-app-tech mailing list >>>> swo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> sword-app-tech mailing list >>> swo...@li... >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sword-app-tech mailing list >> swo...@li... >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Glen R. <gle...@ll...> - 2008-06-03 13:44:30
|
Hi, I am going to have a look at it tonight but I think the solution to preserving the file name is: Take the filename without the extension and add a number to it so data1 data2. You would also have to check if the filename starts with a number then prepend a string to the file e.g. uploaded-9 This won't preserve the filename completely as it will be data1 rather than data.txt but you should be able to guess the original file name. The reason I like using the filename as the datastream ID is that you can identify what you have deposited. Another alternative is to have datastream names suggested by Ian dependent on mime-type although you will run in to problems if there are two files with the same mime-type in a Zip file. What I think I might try if everyone is happy with the compromise is to take the first solution above e.g. data1 as the datastream ID then put the original file name in to the alternative IDs field of the datastream so it is preserved. This means that if you download it using the inbuilt fedora disseminators you will download data1 but if you wanted the original name you can create your own disseminator to pull it from the alternative ID field. Also if you want the filenames named after the mimetype this could also be handled with a different disseminator. Regarding your other question: "just one more thing i want to ask, is there any way we can avoid to ingest zip, as (SFAPI) it inget zip file also as datastream, what i wanted, only file to be ingested which is in zip not zip file itself as well also. " When we were discussing the sword project I seem to remember that we discussed that when someone deposits something they should be able to get it back in the original form so that is why the ZIP file is also added to the object. If you want to change this functionality so that the zip file is not added you can add another file handler which extends org.purl.sword.server.fedora.fileHandlers.ZipFileHandler. The methods you will need to override are: public boolean isHandled(final String pMimeType, final String pFormatNamespace) Where mime type should be application/zip and format namespace should be something unique. The getDatastreams method should be changed to: protected List<Datastream> getDatastreams(final DepositCollection pDeposit) throws IOException, SWORDException { List<Datastream> tDatastreams = new ArrayList<Datastream>(); LOG.debug("copying file"); String tZipTempFileName = super.getTempDir() + "uploaded-file.tmp"; IOUtils.copy(pDeposit.getFile(), new FileOutputStream(tZipTempFileName)); // Add the original zip file tDatastreams.addAll(_zipFile.getFiles(tZipTempFileName)); return tDatastreams; } and then add the new file handler to the properties file properties.xml Thanks Glen On 3 Jun 2008, at 13:52, Rishi K Sharma wrote: > Hi Glen, > > The solution you have suggested yesterday for ingest with file, > which start with number, i > have tried, but it does not preserve the file name. > Is there any way i can preserve the file name. > > Best Regards > ----------------------------------- > Rishi K Sharma > Systems Development Project Officer > Centre for e-Research > King's College London > 0207 848 1971 > > > > > -----Original Message----- > From: swo...@li... > [mailto:swo...@li...]On Behalf Of Glen > Robson > Sent: 02 June 2008 09:59 > To: swo...@li... > Subject: Re: [sword-app-tech] File submission error > > > Hi, > > When I was developing the Fedora Sword client I thought it would be a > good idea to use the deposited file name as the datastream id to aid > identification of the deposit and also to ensure the correct > extensions when the item is downloaded using the inbuilt fedora > disseminators. I can see now this is causing a few problems with > Fedora's inbuilt validation rules. The code which decides the file > name is in the following Java class: > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler > > The method code is as follows: > > public String getGenericFileName(final DepositCollection > pDeposit) > > if (pDeposit.getFilename() == null) { > tFilename = "upload"; > } else { > tFilename = pDeposit.getFilename(); > } > > I propose the following change to the method to produce unique > datastream names per object: > > protected static int _uniqueCount = 1; > public String getGenericFileName(final DepositCollection pDeposit) { > String tFilename = "upload" + _uniqueCount++; > if (pDeposit.getFilename() == null || > pDeposit.getFilename().indexOf(".") == -1) { > return tFilename; > } else { > int tExtensionStart = > pDeposit.getFilename().indexOf("."); > String tExtension = > pDeposit.getFilename().substring(tExtensionStart, > pDeposit.getFilename().length()); > return tFilename + "." + tExtension; > } > } > > Does anyone have any comments? > > Thanks > > Glen > > Fedora Implementation Developer > The National Library of Wales > > On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > >> It looks that way Ian, I needed to rename files such as data.pdf, >> data.txt to data_pdf.pdf, data_txt.txt >> >> I need a bath! >> >> Caused by: fedora.server.errors.ObjectValidityException: >>>>>> DOValidatorXMLSchema returned >>>>>> validation exception. >>>>>> The underlying exception was a org.xml.sax.SAXException. >> >> >> Regards, >> Antony >> -- >> Antony Corfield >> ROAD Project >> http://road.aber.ac.uk >> tel. 01970 628724 >> >> >>> -----Original Message----- >>> From: swo...@li... [mailto:sword- >>> app- >>> tec...@li...] On Behalf Of Ian Ibbotson >>> Sent: 30 May 2008 14:57 >>> To: ris...@ah...; swo...@li... >>> Subject: Re: [sword-app-tech] File submission error >>> >>> Hiya All, >>> >>> I don't generally use the Fedora backend, but looking through the >>> stack >>> trace, I wonder if the problem is that the fedora foxml schema >>> defines a >>> datastream id as a string that must start with a character (An >>> NCName). >>> I suspect we need to take a peek insde the fedora adapter.. I don't >>> have >>> the code for that to hand, but I'll try and grab hold of it unless >>> Jim D >>> or someone else who knows better can beat me to it :) (Actually, not >>> sure about using the filename as the datastream id, but I think >>> thats >>> down to my ignorance rather than anything else, I guess it's >>> difficult >>> to do anything better without more descriptive parameters in the >>> upload). I guess the initial hack workaround is to prefix filenames >>> with >>> a character. Now don't I feel dirty! >>> >>> Ian. >>> >>> >>> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: >>>> I have had a similar problem when depositing files that have the >>> same name but different extensions. If >>>> >>>> >>>> Regards, >>>> Antony >>>> -- >>>> Antony Corfield >>>> ROAD Project >>>> http://road.aber.ac.uk >>>> tel. 01970 628724 >>>> >>>> >>>>> -----Original Message----- >>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>> Sent: 30 May 2008 14:34 >>>>> To: Antony Corfield [awc] >>>>> Subject: RE: [sword-app-tech] File submission error >>>>> >>>>> Yes, it works, if filename starts with character e.g. if i do >>> like >>>>> p12.pdf, i works >>>>> >>>>> Best Regards >>>>> ----------------------------------- >>>>> Rishi K Sharma >>>>> Systems Development Project Officer >>>>> Centre for e-Research >>>>> King's College London >>>>> 0207 848 1971 >>>>> >>>>> >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>> Sent: 30 May 2008 14:26 >>>>> To: ris...@ah... >>>>> Subject: RE: [sword-app-tech] File submission error >>>>> >>>>> >>>>> I presume that's the problem, does it work if the file name >>> starts >>>>> with a character? >>>>> >>>>> >>>>> Regards, >>>>> Antony >>>>> -- >>>>> Antony Corfield >>>>> ROAD Project >>>>> http://road.aber.ac.uk >>>>> tel. 01970 628724 >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>>> Sent: 30 May 2008 10:37 >>>>>> To: Antony Corfield [awc] >>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>> >>>>>> Hi Antony, >>>>>> >>>>>> Thanks for your attention, >>>>>> >>>>>> I am using the following url to deposit >>>>>> http://localhost:8080/sword/app/deposit/collection:open >>>>>> >>>>>> also i am using the Fedora Server to ingest. >>>>>> I am using SWORD java API to deposit. >>>>>> >>>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts >>>>> with >>>>>> number, i am getting >>>>>> the following error >>>>>> >>>>>> The status is: Code: 500, Message: 'Internal Server Error' >>>>>> No valid Entry document was received from the server >>>>>> >>>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] >>> Starting >>>>>> deposit processing at >>>>>> Fri May 30 10:28:04 BST 2008 by >>>>>> 127.0.0.1 >>>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] >>> Starting >>>>>> deposit processing at >>>>>> Fri May 30 10:28:05 BST 2008 by >>>>>> 127.0.0.1 >>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >>> Received >>>>>> filechecksum: >>>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe >>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >>> Received >>>>>> file checksum header: >>>>>> null >>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>>> UserID=sword >>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>>> IsAdministrator=true >>>>>> 10:28:12,578 DEBUG >>>>>> >>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>>> Looking for collecitons for user gmr >>>>>> with XPath=./users/user[./text() = 'gmr'] >>>>>> 10:28:12,578 DEBUG >>>>>> >>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>>> Looking for collecitons for user gmr >>>>>> with XPath=./users/user[./text() = 'gmr'] >>>>>> 10:28:12,609 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>> Looking >>>>>> for application/pdf and format >>>>>> null >>>>>> 10:28:12,609 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>> Loading >>>>>> org.purl.sword.server.fedora.f >>>>>> ileHandlers.JpegHandler as a file handler >>>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>> Loading >>>>>> org.purl.sword.server.fedora.f >>>>>> ileHandlers.METSFileHandler as a file handler >>>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>> Loading >>>>>> org.purl.sword.server.fedora.f >>>>>> ileHandlers.ZipFileHandler as a file handler >>>>>> 10:28:12,671 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,671 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>> Loading >>>>>> org.purl.sword.server.fedora.f >>>>>> ileHandlers.ZipMETSFileHandler as a file handler >>>>>> 10:28:12,671 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,687 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>> Couldn't >>>>>> find a file handler so using >>>>>> default >>>>>> 10:28:12,687 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,703 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:12,953 DEBUG >>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] >>> Finding >>>>>> next >>>>>> pid user=sword password=sword >>>>>> 10:28:13,093 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>> copying >>>>>> file >>>>>> 10:28:13,125 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>> Filename >>>>>> '12p.pdf' >>>>>> 10:28:13,125 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>> Returning application/pdf >>>>>> 10:28:13,125 DEBUG >>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>> No >>>>>> disseminators are added >>>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>> Loading >>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>> INF\properties.xml >>>>>> 10:28:13,125 DEBUG >>>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] >>>>>> Uploading >>>>>> C:\Temp\uploaded-file.tmp >>>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is >>>>>> getting >>>>>> http://localhost:8080/fedora/management/upload >>>>>> 10:28:13,453 DEBUG >>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready >>> to >>>>>> upload xml >>>>>> 10:28:13,453 DEBUG >>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>>> Writing >>>>>> out DC to FOXML >>>>>> 10:28:13,453 DEBUG >>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>>> Writing >>>>>> out RELS-EXT to FOXML >>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- >>>>>> system:def/foxml#" >>>>>> PID="changeme:205"> >>>>>> <foxml:objectProperties> >>>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- >>> syntax- >>>>>> ns#type" >>>>>> VALUE="FedoraObject" /> >>>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/model#state" >>>>>> VALUE="Active" /> >>>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/model#label" >>>>>> VALUE="Object created >>>>>> through the SWORD deposit sys >>>>>> tem" /> >>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/model#ownerId" VALUE="gmr" /> >>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/model#createdDate" >>>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/view#lastModifiedDate" >>>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My >>>>> deposit" >>>>>> /> >>>>>> </foxml:objectProperties> >>>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" >>>>>> VERSIONABLE="true"> >>>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core >>> Metadata" >>>>>> MIMETYPE="text/xml"> >>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>> <foxml:xmlContent> >>>>>> <oai_dc:dc >>>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> >>>>>> <dc:title >>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the >>> JISC >>>>>> funded SWORD project</dc:title> >>>>>> <dc:creator >>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> >>>>>> <dc:format >>>>>> >>>>> >>> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</ >>> dc:forma >>>>>> t> >>>>>> <dc:identifier >>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My >>>>>> deposit</dc:identifier> >>>>>> </oai_dc:dc> >>>>>> </foxml:xmlContent> >>>>>> </foxml:datastreamVersion> >>>>>> </foxml:datastream> >>>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" >>>>>> VERSIONABLE="true"> >>>>>> <foxml:datastreamVersion ID="RELS-EXT.0" >>> LABEL="Relationships >>>>> to >>>>>> other objects" >>>>>> MIMETYPE="text/xml"> >>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>> <foxml:xmlContent> >>>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- >>>>> syntax- >>>>>> ns#"> >>>>>> <rdf:Description >>> rdf:about="info:fedora/changeme:205"> >>>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- >>>>>> system:def/relations-external#" >>>>>> rdf:resource="info:fedora/coll >>>>>> ection:open" /> >>>>>> </rdf:Description> >>>>>> </rdf:rdf> >>>>>> </foxml:xmlContent> >>>>>> </foxml:datastreamVersion> >>>>>> </foxml:datastream> >>>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" >>>>>> VERSIONABLE="true"> >>>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD >>> Generic >>>>> File >>>>>> Upload" >>>>>> MIMETYPE="application/pdf"> >>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> >>>>>> </foxml:datastreamVersion> >>>>>> </foxml:datastream> >>>>>> </foxml:digitalObject> >>>>>> >>>>>> 10:28:14,437 ERROR >>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had >>>>>> problems >>>>>> adding the object to the repos >>>>>> itory; fedora.server.errors.ObjectValidityException: >>>>>> DOValidatorXMLSchema returned >>>>>> validation exception. >>>>>> The underlying exception was a org.xml.sax.SAXException. >>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>>> '12p.pdf' is not a valid >>>>>> value for 'NCName'." >>>>>> org.purl.sword.base.SWORDException: Had problems adding the >>> object >>>>> to >>>>>> the repository; >>>>>> at >>>>>> >>>>> >>> org >>> .purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow >>>>>> n Source) >>>>>> at >>>>>> >>>>> >>> org >>> .purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe >>>>>> post(Unknown Source) >>>>>> at >>>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown >>> Source) >>>>>> at >>>>>> >>>>> >>> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) >>>>>> at >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >>>>>> at >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >>>>>> icationFilterChain.ja >>>>>> va:269) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >>>>>> ilterChain.java:188) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >>>>>> alve.java:213) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.core.StandardContextValve.invoke(StandardContextV >>>>>> alve.java:174) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >>>>>> ava:127) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >>>>>> ava:117) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >>>>>> ve.java:108) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >>>>>> a:151) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java >>>>>> :874) >>>>>> at >>>>>> >>>>> >>> org.apache.coyote.http11.Http11BaseProtocol >>> $Http11ConnectionHandler.p >>>>>> rocessConnection(Http >>>>>> 11BaseProtocol.java >>>>>> :665) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo >>>>>> int.java:528) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol >>>>>> lowerWorkerThread.jav >>>>>> a:81) >>>>>> at >>>>>> >>>>> >>> org.apache.tomcat.util.threads.ThreadPool >>> $ControlRunnable.run(ThreadP >>>>>> ool.java:689) >>>>>> at java.lang.Thread.run(Thread.java:619) >>>>>> Caused by: fedora.server.errors.ObjectValidityException: >>>>>> DOValidatorXMLSchema returned >>>>>> validation exception. >>>>>> The underlying exception was a org.xml.sax.SAXException. >>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>>> '12p.pdf' is not a valid >>>>>> value for 'NCName'." >>>>>> at >>>>>> >>>>> >>> org >>> .apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder >>>>>> .java:222) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. >>>>>> java:129) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.axis.encoding.DeserializationContext.endElement(Deserializ >>>>>> ationContext.java:108 >>>>>> 7) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme >>>>>> nt(AbstractSAXParser. >>>>>> java:601) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>> l.scanEndElement(XMLD >>>>>> ocumentFragmentScan >>>>>> nerImpl.java:1772) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>> l$FragmentContentDriv >>>>>> er.next(XMLDocument >>>>>> FragmentScannerImpl.java:2923) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X >>>>>> MLDocumentScannerImpl >>>>>> .java:645) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next >>>>>> (XMLNSDocumentScanner >>>>>> Impl.java:140) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>> l.scanDocument(XMLDoc >>>>>> umentFragmentScanne >>>>>> rImpl.java:508) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>>> ML11Configuration.jav >>>>>> a:807) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>>> ML11Configuration.jav >>>>>> a:737) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. >>>>>> java:107) >>>>>> at >>>>>> >>>>> >>> com >>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab >>>>>> stractSAXParser.java: >>>>>> 1205) >>>>>> at >>>>>> >>>>> >>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl >>> $JAXPSAXParser.p >>>>>> arse(SAXParserImpl.ja >>>>>> va:522) >>>>>> at >>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.axis.encoding.DeserializationContext.parse(Deserialization >>>>>> Context.java:227) >>>>>> at >>>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) >>>>>> at >>>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) >>>>>> at >>>>>> >>>>> >>> org >>> .apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders >>>>>> tandChecker.java:62) >>>>>> at >>>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) >>>>>> at >>> org.apache.axis.client.Call.invokeEngine(Call.java:2784) >>>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) >>>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) >>>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) >>>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) >>>>>> at >>>>>> >>>>> >>> info >>> .fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges >>>>>> t(Unknown >>>>>> Source) >>>>>> ... 20 more >>>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] >>>>>> Exception occured: >>>>>> org.purl.sword.base.SWORDException: Ha >>>>>> d problems adding the object to the repository; >>>>>> org.purl.sword.base.SWORDException: Had problems adding the >>> object >>>>> to >>>>>> the repository; >>>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] >>>>>> org.purl.sword.base.SWORDException: Had problems adding the ob >>>>>> ject to the repository; >>>>>> >>>>>> >>>>>> Best Regards >>>>>> ----------------------------------- >>>>>> Rishi K Sharma >>>>>> Systems Development Project Officer >>>>>> Centre for e-Research >>>>>> King's College London >>>>>> 0207 848 1971 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -----Original Message----- >>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>>> Sent: 30 May 2008 09:50 >>>>>> To: ris...@kc... >>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>> >>>>>> >>>>>> What errors/stack dump are you getting? >>>>>> What url are you using for deposit? >>>>>> Have you tried depositing to the Fedora test implementation? >>>>>> Have you tried using the test packages? >>>>>> What client are you using to deposit? >>>>>> >>>>>> See: >>> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access >>>>>> >>>>>> >>>>>> >>>>>> Regards, >>>>>> Antony >>>>>> -- >>>>>> Antony Corfield >>>>>> ROAD Project >>>>>> http://road.aber.ac.uk >>>>>> tel. 01970 628724 >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: swo...@li... >>> [mailto:sword- >>>>>> app- >>>>>>> tec...@li...] On Behalf Of Rishi K >>> Sharma >>>>>>> Sent: 29 May 2008 15:00 >>>>>>> To: swo...@li... >>>>>>> Subject: [sword-app-tech] File submission error >>>>>>> >>>>>>> Hi Guys, >>>>>>> >>>>>>> I am trying to use fedora Sword deposit api implementation >>> and i >>>>> am >>>>>>> not able to ingest >>>>>>> file which starting with number like (9.pdf or 9pm.pdf), >>>>>>> is there any way so that i can ingest these files into fedora >>>>> using >>>>>>> Sword deposit API. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Best Regards >>>>>>> ----------------------------------- >>>>>>> Rishi K Sharma >>>>>>> Systems Development Project Officer >>>>>>> Centre for e-Research >>>>>>> King's College London >>>>>>> 0207 848 1971 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------- >>> ---- >>>>> -- >>>>>> -- >>>>>>> ---- >>>>>>> This SF.net email is sponsored by: Microsoft >>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>>> _______________________________________________ >>>>>>> sword-app-tech mailing list >>>>>>> swo...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>>> >>>> >>>> ------------------------------------------------------------------- >>> ------ >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> sword-app-tech mailing list >>>> swo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>> >>> >>> --------------------------------------------------------------------- >>> ---- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> sword-app-tech mailing list >>> swo...@li... >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sword-app-tech mailing list >> swo...@li... >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > |
From: Rishi K S. <ris...@ah...> - 2008-06-03 12:51:19
|
Hi Glen, The solution you have suggested yesterday for ingest with file, which start with number, i have tried, but it does not preserve the file name. Is there any way i can preserve the file name. Best Regards ----------------------------------- Rishi K Sharma Systems Development Project Officer Centre for e-Research King's College London 0207 848 1971 -----Original Message----- From: swo...@li... [mailto:swo...@li...]On Behalf Of Glen Robson Sent: 02 June 2008 09:59 To: swo...@li... Subject: Re: [sword-app-tech] File submission error Hi, When I was developing the Fedora Sword client I thought it would be a good idea to use the deposited file name as the datastream id to aid identification of the deposit and also to ensure the correct extensions when the item is downloaded using the inbuilt fedora disseminators. I can see now this is causing a few problems with Fedora's inbuilt validation rules. The code which decides the file name is in the following Java class: org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler The method code is as follows: public String getGenericFileName(final DepositCollection pDeposit) if (pDeposit.getFilename() == null) { tFilename = "upload"; } else { tFilename = pDeposit.getFilename(); } I propose the following change to the method to produce unique datastream names per object: protected static int _uniqueCount = 1; public String getGenericFileName(final DepositCollection pDeposit) { String tFilename = "upload" + _uniqueCount++; if (pDeposit.getFilename() == null || pDeposit.getFilename().indexOf(".") == -1) { return tFilename; } else { int tExtensionStart = pDeposit.getFilename().indexOf("."); String tExtension = pDeposit.getFilename().substring(tExtensionStart, pDeposit.getFilename().length()); return tFilename + "." + tExtension; } } Does anyone have any comments? Thanks Glen Fedora Implementation Developer The National Library of Wales On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > It looks that way Ian, I needed to rename files such as data.pdf, > data.txt to data_pdf.pdf, data_txt.txt > > I need a bath! > > Caused by: fedora.server.errors.ObjectValidityException: >>>>> DOValidatorXMLSchema returned >>>>> validation exception. >>>>> The underlying exception was a org.xml.sax.SAXException. > > > Regards, > Antony > -- > Antony Corfield > ROAD Project > http://road.aber.ac.uk > tel. 01970 628724 > > >> -----Original Message----- >> From: swo...@li... [mailto:sword-app- >> tec...@li...] On Behalf Of Ian Ibbotson >> Sent: 30 May 2008 14:57 >> To: ris...@ah...; swo...@li... >> Subject: Re: [sword-app-tech] File submission error >> >> Hiya All, >> >> I don't generally use the Fedora backend, but looking through the >> stack >> trace, I wonder if the problem is that the fedora foxml schema >> defines a >> datastream id as a string that must start with a character (An >> NCName). >> I suspect we need to take a peek insde the fedora adapter.. I don't >> have >> the code for that to hand, but I'll try and grab hold of it unless >> Jim D >> or someone else who knows better can beat me to it :) (Actually, not >> sure about using the filename as the datastream id, but I think thats >> down to my ignorance rather than anything else, I guess it's >> difficult >> to do anything better without more descriptive parameters in the >> upload). I guess the initial hack workaround is to prefix filenames >> with >> a character. Now don't I feel dirty! >> >> Ian. >> >> >> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: >>> I have had a similar problem when depositing files that have the >> same name but different extensions. If >>> >>> >>> Regards, >>> Antony >>> -- >>> Antony Corfield >>> ROAD Project >>> http://road.aber.ac.uk >>> tel. 01970 628724 >>> >>> >>>> -----Original Message----- >>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>> Sent: 30 May 2008 14:34 >>>> To: Antony Corfield [awc] >>>> Subject: RE: [sword-app-tech] File submission error >>>> >>>> Yes, it works, if filename starts with character e.g. if i do >> like >>>> p12.pdf, i works >>>> >>>> Best Regards >>>> ----------------------------------- >>>> Rishi K Sharma >>>> Systems Development Project Officer >>>> Centre for e-Research >>>> King's College London >>>> 0207 848 1971 >>>> >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>> Sent: 30 May 2008 14:26 >>>> To: ris...@ah... >>>> Subject: RE: [sword-app-tech] File submission error >>>> >>>> >>>> I presume that's the problem, does it work if the file name >> starts >>>> with a character? >>>> >>>> >>>> Regards, >>>> Antony >>>> -- >>>> Antony Corfield >>>> ROAD Project >>>> http://road.aber.ac.uk >>>> tel. 01970 628724 >>>> >>>> >>>>> -----Original Message----- >>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>> Sent: 30 May 2008 10:37 >>>>> To: Antony Corfield [awc] >>>>> Subject: RE: [sword-app-tech] File submission error >>>>> >>>>> Hi Antony, >>>>> >>>>> Thanks for your attention, >>>>> >>>>> I am using the following url to deposit >>>>> http://localhost:8080/sword/app/deposit/collection:open >>>>> >>>>> also i am using the Fedora Server to ingest. >>>>> I am using SWORD java API to deposit. >>>>> >>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts >>>> with >>>>> number, i am getting >>>>> the following error >>>>> >>>>> The status is: Code: 500, Message: 'Internal Server Error' >>>>> No valid Entry document was received from the server >>>>> >>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] >> Starting >>>>> deposit processing at >>>>> Fri May 30 10:28:04 BST 2008 by >>>>> 127.0.0.1 >>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] >> Starting >>>>> deposit processing at >>>>> Fri May 30 10:28:05 BST 2008 by >>>>> 127.0.0.1 >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >> Received >>>>> filechecksum: >>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >> Received >>>>> file checksum header: >>>>> null >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>> UserID=sword >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>> IsAdministrator=true >>>>> 10:28:12,578 DEBUG >>>>> >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>> Looking for collecitons for user gmr >>>>> with XPath=./users/user[./text() = 'gmr'] >>>>> 10:28:12,578 DEBUG >>>>> >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>> Looking for collecitons for user gmr >>>>> with XPath=./users/user[./text() = 'gmr'] >>>>> 10:28:12,609 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Looking >>>>> for application/pdf and format >>>>> null >>>>> 10:28:12,609 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.JpegHandler as a file handler >>>>> 10:28:12,656 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.METSFileHandler as a file handler >>>>> 10:28:12,656 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.ZipFileHandler as a file handler >>>>> 10:28:12,671 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,671 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.ZipMETSFileHandler as a file handler >>>>> 10:28:12,671 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,687 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Couldn't >>>>> find a file handler so using >>>>> default >>>>> 10:28:12,687 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,703 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,953 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] >> Finding >>>>> next >>>>> pid user=sword password=sword >>>>> 10:28:13,093 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>> copying >>>>> file >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>> Filename >>>>> '12p.pdf' >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>> Returning application/pdf >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >> No >>>>> disseminators are added >>>>> 10:28:13,125 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] >>>>> Uploading >>>>> C:\Temp\uploaded-file.tmp >>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is >>>>> getting >>>>> http://localhost:8080/fedora/management/upload >>>>> 10:28:13,453 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready >> to >>>>> upload xml >>>>> 10:28:13,453 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>> Writing >>>>> out DC to FOXML >>>>> 10:28:13,453 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>> Writing >>>>> out RELS-EXT to FOXML >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- >>>>> system:def/foxml#" >>>>> PID="changeme:205"> >>>>> <foxml:objectProperties> >>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- >> syntax- >>>>> ns#type" >>>>> VALUE="FedoraObject" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>> system:def/model#state" >>>>> VALUE="Active" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>> system:def/model#label" >>>>> VALUE="Object created >>>>> through the SWORD deposit sys >>>>> tem" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/model#ownerId" VALUE="gmr" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/model#createdDate" >>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/view#lastModifiedDate" >>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My >>>> deposit" >>>>> /> >>>>> </foxml:objectProperties> >>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" >>>>> VERSIONABLE="true"> >>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core >> Metadata" >>>>> MIMETYPE="text/xml"> >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>> <foxml:xmlContent> >>>>> <oai_dc:dc >>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> >>>>> <dc:title >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the >> JISC >>>>> funded SWORD project</dc:title> >>>>> <dc:creator >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> >>>>> <dc:format >>>>> >>>> >> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma >>>>> t> >>>>> <dc:identifier >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My >>>>> deposit</dc:identifier> >>>>> </oai_dc:dc> >>>>> </foxml:xmlContent> >>>>> </foxml:datastreamVersion> >>>>> </foxml:datastream> >>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" >>>>> VERSIONABLE="true"> >>>>> <foxml:datastreamVersion ID="RELS-EXT.0" >> LABEL="Relationships >>>> to >>>>> other objects" >>>>> MIMETYPE="text/xml"> >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>> <foxml:xmlContent> >>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- >>>> syntax- >>>>> ns#"> >>>>> <rdf:Description >> rdf:about="info:fedora/changeme:205"> >>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- >>>>> system:def/relations-external#" >>>>> rdf:resource="info:fedora/coll >>>>> ection:open" /> >>>>> </rdf:Description> >>>>> </rdf:rdf> >>>>> </foxml:xmlContent> >>>>> </foxml:datastreamVersion> >>>>> </foxml:datastream> >>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" >>>>> VERSIONABLE="true"> >>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD >> Generic >>>> File >>>>> Upload" >>>>> MIMETYPE="application/pdf"> >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> >>>>> </foxml:datastreamVersion> >>>>> </foxml:datastream> >>>>> </foxml:digitalObject> >>>>> >>>>> 10:28:14,437 ERROR >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had >>>>> problems >>>>> adding the object to the repos >>>>> itory; fedora.server.errors.ObjectValidityException: >>>>> DOValidatorXMLSchema returned >>>>> validation exception. >>>>> The underlying exception was a org.xml.sax.SAXException. >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>> '12p.pdf' is not a valid >>>>> value for 'NCName'." >>>>> org.purl.sword.base.SWORDException: Had problems adding the >> object >>>> to >>>>> the repository; >>>>> at >>>>> >>>> >> org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow >>>>> n Source) >>>>> at >>>>> >>>> >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe >>>>> post(Unknown Source) >>>>> at >>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown >> Source) >>>>> at >>>>> >>>> >> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) >>>>> at >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >>>>> at >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>>>> at >>>>> >>>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >>>>> icationFilterChain.ja >>>>> va:269) >>>>> at >>>>> >>>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >>>>> ilterChain.java:188) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >>>>> alve.java:213) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV >>>>> alve.java:174) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >>>>> ava:127) >>>>> at >>>>> >>>> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >>>>> ava:117) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >>>>> ve.java:108) >>>>> at >>>>> >>>> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >>>>> a:151) >>>>> at >>>>> >>>> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java >>>>> :874) >>>>> at >>>>> >>>> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p >>>>> rocessConnection(Http >>>>> 11BaseProtocol.java >>>>> :665) >>>>> at >>>>> >>>> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo >>>>> int.java:528) >>>>> at >>>>> >>>> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol >>>>> lowerWorkerThread.jav >>>>> a:81) >>>>> at >>>>> >>>> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP >>>>> ool.java:689) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> Caused by: fedora.server.errors.ObjectValidityException: >>>>> DOValidatorXMLSchema returned >>>>> validation exception. >>>>> The underlying exception was a org.xml.sax.SAXException. >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>> '12p.pdf' is not a valid >>>>> value for 'NCName'." >>>>> at >>>>> >>>> >> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder >>>>> .java:222) >>>>> at >>>>> >>>> >> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. >>>>> java:129) >>>>> at >>>>> >>>> >> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ >>>>> ationContext.java:108 >>>>> 7) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme >>>>> nt(AbstractSAXParser. >>>>> java:601) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>> l.scanEndElement(XMLD >>>>> ocumentFragmentScan >>>>> nerImpl.java:1772) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>> l$FragmentContentDriv >>>>> er.next(XMLDocument >>>>> FragmentScannerImpl.java:2923) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X >>>>> MLDocumentScannerImpl >>>>> .java:645) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next >>>>> (XMLNSDocumentScanner >>>>> Impl.java:140) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>> l.scanDocument(XMLDoc >>>>> umentFragmentScanne >>>>> rImpl.java:508) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>> ML11Configuration.jav >>>>> a:807) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>> ML11Configuration.jav >>>>> a:737) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. >>>>> java:107) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab >>>>> stractSAXParser.java: >>>>> 1205) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p >>>>> arse(SAXParserImpl.ja >>>>> va:522) >>>>> at >> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) >>>>> at >>>>> >>>> >> org.apache.axis.encoding.DeserializationContext.parse(Deserialization >>>>> Context.java:227) >>>>> at >>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) >>>>> at >>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) >>>>> at >>>>> >>>> >> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders >>>>> tandChecker.java:62) >>>>> at >>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) >>>>> at >> org.apache.axis.client.Call.invokeEngine(Call.java:2784) >>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) >>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) >>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) >>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) >>>>> at >>>>> >>>> >> info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges >>>>> t(Unknown >>>>> Source) >>>>> ... 20 more >>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] >>>>> Exception occured: >>>>> org.purl.sword.base.SWORDException: Ha >>>>> d problems adding the object to the repository; >>>>> org.purl.sword.base.SWORDException: Had problems adding the >> object >>>> to >>>>> the repository; >>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] >>>>> org.purl.sword.base.SWORDException: Had problems adding the ob >>>>> ject to the repository; >>>>> >>>>> >>>>> Best Regards >>>>> ----------------------------------- >>>>> Rishi K Sharma >>>>> Systems Development Project Officer >>>>> Centre for e-Research >>>>> King's College London >>>>> 0207 848 1971 >>>>> >>>>> >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>> Sent: 30 May 2008 09:50 >>>>> To: ris...@kc... >>>>> Subject: RE: [sword-app-tech] File submission error >>>>> >>>>> >>>>> What errors/stack dump are you getting? >>>>> What url are you using for deposit? >>>>> Have you tried depositing to the Fedora test implementation? >>>>> Have you tried using the test packages? >>>>> What client are you using to deposit? >>>>> >>>>> See: >> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access >>>>> >>>>> >>>>> >>>>> Regards, >>>>> Antony >>>>> -- >>>>> Antony Corfield >>>>> ROAD Project >>>>> http://road.aber.ac.uk >>>>> tel. 01970 628724 >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: swo...@li... >> [mailto:sword- >>>>> app- >>>>>> tec...@li...] On Behalf Of Rishi K >> Sharma >>>>>> Sent: 29 May 2008 15:00 >>>>>> To: swo...@li... >>>>>> Subject: [sword-app-tech] File submission error >>>>>> >>>>>> Hi Guys, >>>>>> >>>>>> I am trying to use fedora Sword deposit api implementation >> and i >>>> am >>>>>> not able to ingest >>>>>> file which starting with number like (9.pdf or 9pm.pdf), >>>>>> is there any way so that i can ingest these files into fedora >>>> using >>>>>> Sword deposit API. >>>>>> >>>>>> >>>>>> >>>>>> Best Regards >>>>>> ----------------------------------- >>>>>> Rishi K Sharma >>>>>> Systems Development Project Officer >>>>>> Centre for e-Research >>>>>> King's College London >>>>>> 0207 848 1971 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------- >> ---- >>>> -- >>>>> -- >>>>>> ---- >>>>>> This SF.net email is sponsored by: Microsoft >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>> _______________________________________________ >>>>>> sword-app-tech mailing list >>>>>> swo...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>> >>> >>> ------------------------------------------------------------------- >> ------ >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> sword-app-tech mailing list >>> swo...@li... >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >> >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sword-app-tech mailing list >> swo...@li... >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sword-app-tech mailing list swo...@li... https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Ian I. <ian...@k-...> - 2008-06-02 10:04:03
|
Really I was just thinking about how the rest URL's might look for a particular object with the given data stream id's. So for example a url like, //blah/773564/pdf is quite neat and is easily read (By me) as the pdf attached to oid 773564. I guess what was in my head was just the mime-type (Without the .pdf extension). As I said tho, that's probably more my ignorance than any logical reason. I just felt that datastream ID's were something very different to file names and were best kept clean. I'm no fedora expert tho (By a long long way), so I reckon your judgment is likely to be better than mine on this :) Cheers, Ian. On Mon, 2008-06-02 at 10:21 +0100, Glen Robson wrote: > Hi Ian, > > What sort of names were you thinking of? Something like image-jpg.jpg > or application-pdf.pdf? > > Another option is to take the filename without the extension and add a > number to it so data1.txt data2.pdf. You would also have to check if > the filename starts with a number then prepend a string to the file > uploaded-9.pdf > > Both options are relatively simple to implement. > > Thanks > > Glen > > Fedora Implementation Developer > The National Library of Wales > > On 2 Jun 2008, at 10:06, Ian Ibbotson wrote: > > > Hiya Glen, cheers for the update. > > > > I've no real stake in the fedora adapter, but as an outside observer > > I'm > > just interested, is there no way to make the datastream identifiers > > more > > representative of the content type? The sword upload request > > contains a > > mime type doesn't it? Would that be any better? > > > > Cheers, > > Ian. > > > > On Mon, 2008-06-02 at 09:59 +0100, Glen Robson wrote: > >> Hi, > >> > >> When I was developing the Fedora Sword client I thought it would be a > >> good idea to use the deposited file name as the datastream id to aid > >> identification of the deposit and also to ensure the correct > >> extensions when the item is downloaded using the inbuilt fedora > >> disseminators. I can see now this is causing a few problems with > >> Fedora's inbuilt validation rules. The code which decides the file > >> name is in the following Java class: > >> > >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler > >> > >> The method code is as follows: > >> > >> public String getGenericFileName(final DepositCollection > >> pDeposit) > >> > >> if (pDeposit.getFilename() == null) { > >> tFilename = "upload"; > >> } else { > >> tFilename = pDeposit.getFilename(); > >> } > >> > >> I propose the following change to the method to produce unique > >> datastream names per object: > >> > >> protected static int _uniqueCount = 1; > >> public String getGenericFileName(final DepositCollection pDeposit) { > >> String tFilename = "upload" + _uniqueCount++; > >> if (pDeposit.getFilename() == null || > >> pDeposit.getFilename().indexOf(".") == -1) { > >> return tFilename; > >> } else { > >> int tExtensionStart = > >> pDeposit.getFilename().indexOf("."); > >> String tExtension = > >> pDeposit.getFilename().substring(tExtensionStart, > >> pDeposit.getFilename().length()); > >> return tFilename + "." + tExtension; > >> } > >> } > >> > >> Does anyone have any comments? > >> > >> Thanks > >> > >> Glen > >> > >> Fedora Implementation Developer > >> The National Library of Wales > >> > >> On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > >> > >>> It looks that way Ian, I needed to rename files such as data.pdf, > >>> data.txt to data_pdf.pdf, data_txt.txt > >>> > >>> I need a bath! > >>> > >>> Caused by: fedora.server.errors.ObjectValidityException: > >>>>>>> DOValidatorXMLSchema returned > >>>>>>> validation exception. > >>>>>>> The underlying exception was a org.xml.sax.SAXException. > >>> > >>> > >>> Regards, > >>> Antony > >>> -- > >>> Antony Corfield > >>> ROAD Project > >>> http://road.aber.ac.uk > >>> tel. 01970 628724 > >>> > >>> > >>>> -----Original Message----- > >>>> From: swo...@li... [mailto:sword-app- > >>>> tec...@li...] On Behalf Of Ian Ibbotson > >>>> Sent: 30 May 2008 14:57 > >>>> To: ris...@ah...; swo...@li... > >>>> Subject: Re: [sword-app-tech] File submission error > >>>> > >>>> Hiya All, > >>>> > >>>> I don't generally use the Fedora backend, but looking through the > >>>> stack > >>>> trace, I wonder if the problem is that the fedora foxml schema > >>>> defines a > >>>> datastream id as a string that must start with a character (An > >>>> NCName). > >>>> I suspect we need to take a peek insde the fedora adapter.. I don't > >>>> have > >>>> the code for that to hand, but I'll try and grab hold of it unless > >>>> Jim D > >>>> or someone else who knows better can beat me to it :) (Actually, > >>>> not > >>>> sure about using the filename as the datastream id, but I think > >>>> thats > >>>> down to my ignorance rather than anything else, I guess it's > >>>> difficult > >>>> to do anything better without more descriptive parameters in the > >>>> upload). I guess the initial hack workaround is to prefix filenames > >>>> with > >>>> a character. Now don't I feel dirty! > >>>> > >>>> Ian. > >>>> > >>>> > >>>> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > >>>>> I have had a similar problem when depositing files that have the > >>>> same name but different extensions. If > >>>>> > >>>>> > >>>>> Regards, > >>>>> Antony > >>>>> -- > >>>>> Antony Corfield > >>>>> ROAD Project > >>>>> http://road.aber.ac.uk > >>>>> tel. 01970 628724 > >>>>> > >>>>> > >>>>>> -----Original Message----- > >>>>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>>>> Sent: 30 May 2008 14:34 > >>>>>> To: Antony Corfield [awc] > >>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>> > >>>>>> Yes, it works, if filename starts with character e.g. if i do > >>>> like > >>>>>> p12.pdf, i works > >>>>>> > >>>>>> Best Regards > >>>>>> ----------------------------------- > >>>>>> Rishi K Sharma > >>>>>> Systems Development Project Officer > >>>>>> Centre for e-Research > >>>>>> King's College London > >>>>>> 0207 848 1971 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -----Original Message----- > >>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>>>> Sent: 30 May 2008 14:26 > >>>>>> To: ris...@ah... > >>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>> > >>>>>> > >>>>>> I presume that's the problem, does it work if the file name > >>>> starts > >>>>>> with a character? > >>>>>> > >>>>>> > >>>>>> Regards, > >>>>>> Antony > >>>>>> -- > >>>>>> Antony Corfield > >>>>>> ROAD Project > >>>>>> http://road.aber.ac.uk > >>>>>> tel. 01970 628724 > >>>>>> > >>>>>> > >>>>>>> -----Original Message----- > >>>>>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>>>>> Sent: 30 May 2008 10:37 > >>>>>>> To: Antony Corfield [awc] > >>>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>>> > >>>>>>> Hi Antony, > >>>>>>> > >>>>>>> Thanks for your attention, > >>>>>>> > >>>>>>> I am using the following url to deposit > >>>>>>> http://localhost:8080/sword/app/deposit/collection:open > >>>>>>> > >>>>>>> also i am using the Fedora Server to ingest. > >>>>>>> I am using SWORD java API to deposit. > >>>>>>> > >>>>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts > >>>>>> with > >>>>>>> number, i am getting > >>>>>>> the following error > >>>>>>> > >>>>>>> The status is: Code: 500, Message: 'Internal Server Error' > >>>>>>> No valid Entry document was received from the server > >>>>>>> > >>>>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Starting > >>>>>>> deposit processing at > >>>>>>> Fri May 30 10:28:04 BST 2008 by > >>>>>>> 127.0.0.1 > >>>>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Starting > >>>>>>> deposit processing at > >>>>>>> Fri May 30 10:28:05 BST 2008 by > >>>>>>> 127.0.0.1 > >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Received > >>>>>>> filechecksum: > >>>>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe > >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Received > >>>>>>> file checksum header: > >>>>>>> null > >>>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > >>>>>>> UserID=sword > >>>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > >>>>>>> IsAdministrator=true > >>>>>>> 10:28:12,578 DEBUG > >>>>>>> > >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>>>> Looking for collecitons for user gmr > >>>>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>>>> 10:28:12,578 DEBUG > >>>>>>> > >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>>>> Looking for collecitons for user gmr > >>>>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>>>> 10:28:12,609 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Looking > >>>>>>> for application/pdf and format > >>>>>>> null > >>>>>>> 10:28:12,609 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,656 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.JpegHandler as a file handler > >>>>>>> 10:28:12,656 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,656 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.METSFileHandler as a file handler > >>>>>>> 10:28:12,656 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,656 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.ZipFileHandler as a file handler > >>>>>>> 10:28:12,671 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,671 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.ZipMETSFileHandler as a file handler > >>>>>>> 10:28:12,671 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,687 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Couldn't > >>>>>>> find a file handler so using > >>>>>>> default > >>>>>>> 10:28:12,687 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,703 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,953 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] > >>>> Finding > >>>>>>> next > >>>>>>> pid user=sword password=sword > >>>>>>> 10:28:13,093 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>>>> copying > >>>>>>> file > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>>>> Filename > >>>>>>> '12p.pdf' > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>>>> Returning application/pdf > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>> No > >>>>>>> disseminators are added > >>>>>>> 10:28:13,125 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > >>>>>>> Uploading > >>>>>>> C:\Temp\uploaded-file.tmp > >>>>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > >>>>>>> getting > >>>>>>> http://localhost:8080/fedora/management/upload > >>>>>>> 10:28:13,453 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready > >>>> to > >>>>>>> upload xml > >>>>>>> 10:28:13,453 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>>>> Writing > >>>>>>> out DC to FOXML > >>>>>>> 10:28:13,453 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>>>> Writing > >>>>>>> out RELS-EXT to FOXML > >>>>>>> <?xml version="1.0" encoding="UTF-8"?> > >>>>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > >>>>>>> system:def/foxml#" > >>>>>>> PID="changeme:205"> > >>>>>>> <foxml:objectProperties> > >>>>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- > >>>> syntax- > >>>>>>> ns#type" > >>>>>>> VALUE="FedoraObject" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>> system:def/model#state" > >>>>>>> VALUE="Active" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>> system:def/model#label" > >>>>>>> VALUE="Object created > >>>>>>> through the SWORD deposit sys > >>>>>>> tem" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>>> system:def/model#ownerId" VALUE="gmr" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>>> system:def/model#createdDate" > >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>>> system:def/view#lastModifiedDate" > >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > >>>>>> deposit" > >>>>>>> /> > >>>>>>> </foxml:objectProperties> > >>>>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > >>>>>>> VERSIONABLE="true"> > >>>>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core > >>>> Metadata" > >>>>>>> MIMETYPE="text/xml"> > >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>>>> <foxml:xmlContent> > >>>>>>> <oai_dc:dc > >>>>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > >>>>>>> <dc:title > >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the > >>>> JISC > >>>>>>> funded SWORD project</dc:title> > >>>>>>> <dc:creator > >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > >>>>>>> <dc:format > >>>>>>> > >>>>>> > >>>> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</ > >>>> dc:forma > >>>>>>> t> > >>>>>>> <dc:identifier > >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My > >>>>>>> deposit</dc:identifier> > >>>>>>> </oai_dc:dc> > >>>>>>> </foxml:xmlContent> > >>>>>>> </foxml:datastreamVersion> > >>>>>>> </foxml:datastream> > >>>>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > >>>>>>> VERSIONABLE="true"> > >>>>>>> <foxml:datastreamVersion ID="RELS-EXT.0" > >>>> LABEL="Relationships > >>>>>> to > >>>>>>> other objects" > >>>>>>> MIMETYPE="text/xml"> > >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>>>> <foxml:xmlContent> > >>>>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > >>>>>> syntax- > >>>>>>> ns#"> > >>>>>>> <rdf:Description > >>>> rdf:about="info:fedora/changeme:205"> > >>>>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- > >>>>>>> system:def/relations-external#" > >>>>>>> rdf:resource="info:fedora/coll > >>>>>>> ection:open" /> > >>>>>>> </rdf:Description> > >>>>>>> </rdf:rdf> > >>>>>>> </foxml:xmlContent> > >>>>>>> </foxml:datastreamVersion> > >>>>>>> </foxml:datastream> > >>>>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > >>>>>>> VERSIONABLE="true"> > >>>>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD > >>>> Generic > >>>>>> File > >>>>>>> Upload" > >>>>>>> MIMETYPE="application/pdf"> > >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > >>>>>>> </foxml:datastreamVersion> > >>>>>>> </foxml:datastream> > >>>>>>> </foxml:digitalObject> > >>>>>>> > >>>>>>> 10:28:14,437 ERROR > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > >>>>>>> problems > >>>>>>> adding the object to the repos > >>>>>>> itory; fedora.server.errors.ObjectValidityException: > >>>>>>> DOValidatorXMLSchema returned > >>>>>>> validation exception. > >>>>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>>>> '12p.pdf' is not a valid > >>>>>>> value for 'NCName'." > >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the > >>>> object > >>>>>> to > >>>>>>> the repository; > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > >>>>>>> n Source) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > >>>>>>> post(Unknown Source) > >>>>>>> at > >>>>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown > >>>> Source) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java: > >>>> 240) > >>>>>>> at > >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > >>>>>>> at > >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > >>>>>>> icationFilterChain.ja > >>>>>>> va:269) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > >>>>>>> ilterChain.java:188) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > >>>>>>> alve.java:213) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.core.StandardContextValve.invoke(StandardContextV > >>>>>>> alve.java:174) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > >>>>>>> ava:127) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > >>>>>>> ava:117) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > >>>>>>> ve.java:108) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > >>>>>>> a:151) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java > >>>>>>> :874) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org.apache.coyote.http11.Http11BaseProtocol > >>>> $Http11ConnectionHandler.p > >>>>>>> rocessConnection(Http > >>>>>>> 11BaseProtocol.java > >>>>>>> :665) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > >>>>>>> int.java:528) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > >>>>>>> lowerWorkerThread.jav > >>>>>>> a:81) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org.apache.tomcat.util.threads.ThreadPool > >>>> $ControlRunnable.run(ThreadP > >>>>>>> ool.java:689) > >>>>>>> at java.lang.Thread.run(Thread.java:619) > >>>>>>> Caused by: fedora.server.errors.ObjectValidityException: > >>>>>>> DOValidatorXMLSchema returned > >>>>>>> validation exception. > >>>>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>>>> '12p.pdf' is not a valid > >>>>>>> value for 'NCName'." > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > >>>>>>> .java:222) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > >>>>>>> java:129) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.axis.encoding.DeserializationContext.endElement(Deserializ > >>>>>>> ationContext.java:108 > >>>>>>> 7) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > >>>>>>> nt(AbstractSAXParser. > >>>>>>> java:601) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>>>> l.scanEndElement(XMLD > >>>>>>> ocumentFragmentScan > >>>>>>> nerImpl.java:1772) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>>>> l$FragmentContentDriv > >>>>>>> er.next(XMLDocument > >>>>>>> FragmentScannerImpl.java:2923) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > >>>>>>> MLDocumentScannerImpl > >>>>>>> .java:645) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > >>>>>>> (XMLNSDocumentScanner > >>>>>>> Impl.java:140) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>>>> l.scanDocument(XMLDoc > >>>>>>> umentFragmentScanne > >>>>>>> rImpl.java:508) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>>>> ML11Configuration.jav > >>>>>>> a:807) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>>>> ML11Configuration.jav > >>>>>>> a:737) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > >>>>>>> java:107) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > >>>>>>> stractSAXParser.java: > >>>>>>> 1205) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl > >>>> $JAXPSAXParser.p > >>>>>>> arse(SAXParserImpl.ja > >>>>>>> va:522) > >>>>>>> at > >>>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.axis.encoding.DeserializationContext.parse(Deserialization > >>>>>>> Context.java:227) > >>>>>>> at > >>>>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > >>>>>>> at > >>>>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> .apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > >>>>>>> tandChecker.java:62) > >>>>>>> at > >>>>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > >>>>>>> at > >>>> org.apache.axis.client.Call.invokeEngine(Call.java:2784) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> info > >>>> .fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > >>>>>>> t(Unknown > >>>>>>> Source) > >>>>>>> ... 20 more > >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > >>>>>>> Exception occured: > >>>>>>> org.purl.sword.base.SWORDException: Ha > >>>>>>> d problems adding the object to the repository; > >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the > >>>> object > >>>>>> to > >>>>>>> the repository; > >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the ob > >>>>>>> ject to the repository; > >>>>>>> > >>>>>>> > >>>>>>> Best Regards > >>>>>>> ----------------------------------- > >>>>>>> Rishi K Sharma > >>>>>>> Systems Development Project Officer > >>>>>>> Centre for e-Research > >>>>>>> King's College London > >>>>>>> 0207 848 1971 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -----Original Message----- > >>>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>>>>> Sent: 30 May 2008 09:50 > >>>>>>> To: ris...@kc... > >>>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>>> > >>>>>>> > >>>>>>> What errors/stack dump are you getting? > >>>>>>> What url are you using for deposit? > >>>>>>> Have you tried depositing to the Fedora test implementation? > >>>>>>> Have you tried using the test packages? > >>>>>>> What client are you using to deposit? > >>>>>>> > >>>>>>> See: > >>>> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Regards, > >>>>>>> Antony > >>>>>>> -- > >>>>>>> Antony Corfield > >>>>>>> ROAD Project > >>>>>>> http://road.aber.ac.uk > >>>>>>> tel. 01970 628724 > >>>>>>> > >>>>>>> > >>>>>>>> -----Original Message----- > >>>>>>>> From: swo...@li... > >>>> [mailto:sword- > >>>>>>> app- > >>>>>>>> tec...@li...] On Behalf Of Rishi K > >>>> Sharma > >>>>>>>> Sent: 29 May 2008 15:00 > >>>>>>>> To: swo...@li... > >>>>>>>> Subject: [sword-app-tech] File submission error > >>>>>>>> > >>>>>>>> Hi Guys, > >>>>>>>> > >>>>>>>> I am trying to use fedora Sword deposit api implementation > >>>> and i > >>>>>> am > >>>>>>>> not able to ingest > >>>>>>>> file which starting with number like (9.pdf or 9pm.pdf), > >>>>>>>> is there any way so that i can ingest these files into fedora > >>>>>> using > >>>>>>>> Sword deposit API. > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> Best Regards > >>>>>>>> ----------------------------------- > >>>>>>>> Rishi K Sharma > >>>>>>>> Systems Development Project Officer > >>>>>>>> Centre for e-Research > >>>>>>>> King's College London > >>>>>>>> 0207 848 1971 > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> ------------------------------------------------------------- > >>>> ---- > >>>>>> -- > >>>>>>> -- > >>>>>>>> ---- > >>>>>>>> This SF.net email is sponsored by: Microsoft > >>>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>>>>> _______________________________________________ > >>>>>>>> sword-app-tech mailing list > >>>>>>>> swo...@li... > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>>>> > >>>>> > >>>>> ------------------------------------------------------------------- > >>>> ------ > >>>>> This SF.net email is sponsored by: Microsoft > >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>> _______________________________________________ > >>>>> sword-app-tech mailing list > >>>>> swo...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> ---- > >>>> This SF.net email is sponsored by: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ > >>>> sword-app-tech mailing list > >>>> swo...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>> > >>> ------------------------------------------------------------------------- > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> sword-app-tech mailing list > >>> swo...@li... > >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >> > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> sword-app-tech mailing list > >> swo...@li... > >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Antony C. [awc] <aw...@ab...> - 2008-06-02 09:25:54
|
If file doesn't have an extension you could use the mime type. Is mime type mandatory? Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 > -----Original Message----- > From: swo...@li... [mailto:sword-app- > tec...@li...] On Behalf Of Glen Robson > Sent: 02 June 2008 10:21 > To: swo...@li... > Subject: Re: [sword-app-tech] File submission error > > Hi Ian, > > What sort of names were you thinking of? Something like image-jpg.jpg > or application-pdf.pdf? > > Another option is to take the filename without the extension and add > a > number to it so data1.txt data2.pdf. You would also have to check if > the filename starts with a number then prepend a string to the file > uploaded-9.pdf > > Both options are relatively simple to implement. > > Thanks > > Glen > > Fedora Implementation Developer > The National Library of Wales > > On 2 Jun 2008, at 10:06, Ian Ibbotson wrote: > > > Hiya Glen, cheers for the update. > > > > I've no real stake in the fedora adapter, but as an outside > observer > > I'm > > just interested, is there no way to make the datastream identifiers > > more > > representative of the content type? The sword upload request > > contains a > > mime type doesn't it? Would that be any better? > > > > Cheers, > > Ian. > > > > On Mon, 2008-06-02 at 09:59 +0100, Glen Robson wrote: > >> Hi, > >> > >> When I was developing the Fedora Sword client I thought it would > be a > >> good idea to use the deposited file name as the datastream id to > aid > >> identification of the deposit and also to ensure the correct > >> extensions when the item is downloaded using the inbuilt fedora > >> disseminators. I can see now this is causing a few problems with > >> Fedora's inbuilt validation rules. The code which decides the file > >> name is in the following Java class: > >> > >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler > >> > >> The method code is as follows: > >> > >> public String getGenericFileName(final DepositCollection > >> pDeposit) > >> > >> if (pDeposit.getFilename() == null) { > >> tFilename = "upload"; > >> } else { > >> tFilename = pDeposit.getFilename(); > >> } > >> > >> I propose the following change to the method to produce unique > >> datastream names per object: > >> > >> protected static int _uniqueCount = 1; > >> public String getGenericFileName(final DepositCollection pDeposit) > { > >> String tFilename = "upload" + _uniqueCount++; > >> if (pDeposit.getFilename() == null || > >> pDeposit.getFilename().indexOf(".") == -1) { > >> return tFilename; > >> } else { > >> int tExtensionStart = > >> pDeposit.getFilename().indexOf("."); > >> String tExtension = > >> pDeposit.getFilename().substring(tExtensionStart, > >> pDeposit.getFilename().length()); > >> return tFilename + "." + tExtension; > >> } > >> } > >> > >> Does anyone have any comments? > >> > >> Thanks > >> > >> Glen > >> > >> Fedora Implementation Developer > >> The National Library of Wales > >> > >> On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > >> > >>> It looks that way Ian, I needed to rename files such as data.pdf, > >>> data.txt to data_pdf.pdf, data_txt.txt > >>> > >>> I need a bath! > >>> > >>> Caused by: fedora.server.errors.ObjectValidityException: > >>>>>>> DOValidatorXMLSchema returned > >>>>>>> validation exception. > >>>>>>> The underlying exception was a org.xml.sax.SAXException. > >>> > >>> > >>> Regards, > >>> Antony > >>> -- > >>> Antony Corfield > >>> ROAD Project > >>> http://road.aber.ac.uk > >>> tel. 01970 628724 > >>> > >>> > >>>> -----Original Message----- > >>>> From: swo...@li... > [mailto:sword-app- > >>>> tec...@li...] On Behalf Of Ian Ibbotson > >>>> Sent: 30 May 2008 14:57 > >>>> To: ris...@ah...; sword-app- > te...@li... > >>>> Subject: Re: [sword-app-tech] File submission error > >>>> > >>>> Hiya All, > >>>> > >>>> I don't generally use the Fedora backend, but looking through > the > >>>> stack > >>>> trace, I wonder if the problem is that the fedora foxml schema > >>>> defines a > >>>> datastream id as a string that must start with a character (An > >>>> NCName). > >>>> I suspect we need to take a peek insde the fedora adapter.. I > don't > >>>> have > >>>> the code for that to hand, but I'll try and grab hold of it > unless > >>>> Jim D > >>>> or someone else who knows better can beat me to it :) (Actually, > >>>> not > >>>> sure about using the filename as the datastream id, but I think > >>>> thats > >>>> down to my ignorance rather than anything else, I guess it's > >>>> difficult > >>>> to do anything better without more descriptive parameters in the > >>>> upload). I guess the initial hack workaround is to prefix > filenames > >>>> with > >>>> a character. Now don't I feel dirty! > >>>> > >>>> Ian. > >>>> > >>>> > >>>> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > >>>>> I have had a similar problem when depositing files that have > the > >>>> same name but different extensions. If > >>>>> > >>>>> > >>>>> Regards, > >>>>> Antony > >>>>> -- > >>>>> Antony Corfield > >>>>> ROAD Project > >>>>> http://road.aber.ac.uk > >>>>> tel. 01970 628724 > >>>>> > >>>>> > >>>>>> -----Original Message----- > >>>>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>>>> Sent: 30 May 2008 14:34 > >>>>>> To: Antony Corfield [awc] > >>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>> > >>>>>> Yes, it works, if filename starts with character e.g. if i do > >>>> like > >>>>>> p12.pdf, i works > >>>>>> > >>>>>> Best Regards > >>>>>> ----------------------------------- > >>>>>> Rishi K Sharma > >>>>>> Systems Development Project Officer > >>>>>> Centre for e-Research > >>>>>> King's College London > >>>>>> 0207 848 1971 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -----Original Message----- > >>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>>>> Sent: 30 May 2008 14:26 > >>>>>> To: ris...@ah... > >>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>> > >>>>>> > >>>>>> I presume that's the problem, does it work if the file name > >>>> starts > >>>>>> with a character? > >>>>>> > >>>>>> > >>>>>> Regards, > >>>>>> Antony > >>>>>> -- > >>>>>> Antony Corfield > >>>>>> ROAD Project > >>>>>> http://road.aber.ac.uk > >>>>>> tel. 01970 628724 > >>>>>> > >>>>>> > >>>>>>> -----Original Message----- > >>>>>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>>>>> Sent: 30 May 2008 10:37 > >>>>>>> To: Antony Corfield [awc] > >>>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>>> > >>>>>>> Hi Antony, > >>>>>>> > >>>>>>> Thanks for your attention, > >>>>>>> > >>>>>>> I am using the following url to deposit > >>>>>>> http://localhost:8080/sword/app/deposit/collection:open > >>>>>>> > >>>>>>> also i am using the Fedora Server to ingest. > >>>>>>> I am using SWORD java API to deposit. > >>>>>>> > >>>>>>> I can ingest/deposit pdf, zip etc only thing if pdf name > starts > >>>>>> with > >>>>>>> number, i am getting > >>>>>>> the following error > >>>>>>> > >>>>>>> The status is: Code: 500, Message: 'Internal Server Error' > >>>>>>> No valid Entry document was received from the server > >>>>>>> > >>>>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Starting > >>>>>>> deposit processing at > >>>>>>> Fri May 30 10:28:04 BST 2008 by > >>>>>>> 127.0.0.1 > >>>>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Starting > >>>>>>> deposit processing at > >>>>>>> Fri May 30 10:28:05 BST 2008 by > >>>>>>> 127.0.0.1 > >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Received > >>>>>>> filechecksum: > >>>>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe > >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >>>> Received > >>>>>>> file checksum header: > >>>>>>> null > >>>>>>> 10:28:12,515 DEBUG > [org.purl.sword.server.fedora.FedoraServer] > >>>>>>> UserID=sword > >>>>>>> 10:28:12,515 DEBUG > [org.purl.sword.server.fedora.FedoraServer] > >>>>>>> IsAdministrator=true > >>>>>>> 10:28:12,578 DEBUG > >>>>>>> > >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>>>> Looking for collecitons for user gmr > >>>>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>>>> 10:28:12,578 DEBUG > >>>>>>> > >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>>>> Looking for collecitons for user gmr > >>>>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>>>> 10:28:12,609 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Looking > >>>>>>> for application/pdf and format > >>>>>>> null > >>>>>>> 10:28:12,609 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,656 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.JpegHandler as a file handler > >>>>>>> 10:28:12,656 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,656 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.METSFileHandler as a file handler > >>>>>>> 10:28:12,656 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,656 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.ZipFileHandler as a file handler > >>>>>>> 10:28:12,671 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,671 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Loading > >>>>>>> org.purl.sword.server.fedora.f > >>>>>>> ileHandlers.ZipMETSFileHandler as a file handler > >>>>>>> 10:28:12,671 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,687 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>>>> Couldn't > >>>>>>> find a file handler so using > >>>>>>> default > >>>>>>> 10:28:12,687 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,703 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:12,953 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] > >>>> Finding > >>>>>>> next > >>>>>>> pid user=sword password=sword > >>>>>>> 10:28:13,093 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>>>> copying > >>>>>>> file > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>>>> Filename > >>>>>>> '12p.pdf' > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>>>> Returning application/pdf > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>> No > >>>>>>> disseminators are added > >>>>>>> 10:28:13,125 DEBUG > >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>>>> Loading > >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>>>> INF\properties.xml > >>>>>>> 10:28:13,125 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > >>>>>>> Uploading > >>>>>>> C:\Temp\uploaded-file.tmp > >>>>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient > is > >>>>>>> getting > >>>>>>> http://localhost:8080/fedora/management/upload > >>>>>>> 10:28:13,453 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] > Ready > >>>> to > >>>>>>> upload xml > >>>>>>> 10:28:13,453 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>>>> Writing > >>>>>>> out DC to FOXML > >>>>>>> 10:28:13,453 DEBUG > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>>>> Writing > >>>>>>> out RELS-EXT to FOXML > >>>>>>> <?xml version="1.0" encoding="UTF-8"?> > >>>>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > >>>>>>> system:def/foxml#" > >>>>>>> PID="changeme:205"> > >>>>>>> <foxml:objectProperties> > >>>>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- > >>>> syntax- > >>>>>>> ns#type" > >>>>>>> VALUE="FedoraObject" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>> system:def/model#state" > >>>>>>> VALUE="Active" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>> system:def/model#label" > >>>>>>> VALUE="Object created > >>>>>>> through the SWORD deposit sys > >>>>>>> tem" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>>> system:def/model#ownerId" VALUE="gmr" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>>> system:def/model#createdDate" > >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>>>> <foxml:property NAME="info:fedora/fedora- > >>>>>>> system:def/view#lastModifiedDate" > >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > >>>>>> deposit" > >>>>>>> /> > >>>>>>> </foxml:objectProperties> > >>>>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > >>>>>>> VERSIONABLE="true"> > >>>>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core > >>>> Metadata" > >>>>>>> MIMETYPE="text/xml"> > >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>>>> <foxml:xmlContent> > >>>>>>> <oai_dc:dc > >>>>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > >>>>>>> <dc:title > >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the > >>>> JISC > >>>>>>> funded SWORD project</dc:title> > >>>>>>> <dc:creator > >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > >>>>>>> <dc:format > >>>>>>> > >>>>>> > >>>> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</ > >>>> dc:forma > >>>>>>> t> > >>>>>>> <dc:identifier > >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My > >>>>>>> deposit</dc:identifier> > >>>>>>> </oai_dc:dc> > >>>>>>> </foxml:xmlContent> > >>>>>>> </foxml:datastreamVersion> > >>>>>>> </foxml:datastream> > >>>>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > >>>>>>> VERSIONABLE="true"> > >>>>>>> <foxml:datastreamVersion ID="RELS-EXT.0" > >>>> LABEL="Relationships > >>>>>> to > >>>>>>> other objects" > >>>>>>> MIMETYPE="text/xml"> > >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>>>> <foxml:xmlContent> > >>>>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > >>>>>> syntax- > >>>>>>> ns#"> > >>>>>>> <rdf:Description > >>>> rdf:about="info:fedora/changeme:205"> > >>>>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- > >>>>>>> system:def/relations-external#" > >>>>>>> rdf:resource="info:fedora/coll > >>>>>>> ection:open" /> > >>>>>>> </rdf:Description> > >>>>>>> </rdf:rdf> > >>>>>>> </foxml:xmlContent> > >>>>>>> </foxml:datastreamVersion> > >>>>>>> </foxml:datastream> > >>>>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > >>>>>>> VERSIONABLE="true"> > >>>>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD > >>>> Generic > >>>>>> File > >>>>>>> Upload" > >>>>>>> MIMETYPE="application/pdf"> > >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > >>>>>>> </foxml:datastreamVersion> > >>>>>>> </foxml:datastream> > >>>>>>> </foxml:digitalObject> > >>>>>>> > >>>>>>> 10:28:14,437 ERROR > >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > >>>>>>> problems > >>>>>>> adding the object to the repos > >>>>>>> itory; fedora.server.errors.ObjectValidityException: > >>>>>>> DOValidatorXMLSchema returned > >>>>>>> validation exception. > >>>>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>>>> '12p.pdf' is not a valid > >>>>>>> value for 'NCName'." > >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the > >>>> object > >>>>>> to > >>>>>>> the repository; > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > >>>>>>> n Source) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > >>>>>>> post(Unknown Source) > >>>>>>> at > >>>>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown > >>>> Source) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java: > >>>> 240) > >>>>>>> at > >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > >>>>>>> at > >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > >>>>>>> icationFilterChain.ja > >>>>>>> va:269) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > >>>>>>> ilterChain.java:188) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > >>>>>>> alve.java:213) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.core.StandardContextValve.invoke(StandardContextV > >>>>>>> alve.java:174) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > >>>>>>> ava:127) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > >>>>>>> ava:117) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > >>>>>>> ve.java:108) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > >>>>>>> a:151) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.coyote.http11.Http11Processor.process(Http11Processor.java > >>>>>>> :874) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org.apache.coyote.http11.Http11BaseProtocol > >>>> $Http11ConnectionHandler.p > >>>>>>> rocessConnection(Http > >>>>>>> 11BaseProtocol.java > >>>>>>> :665) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > >>>>>>> int.java:528) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > >>>>>>> lowerWorkerThread.jav > >>>>>>> a:81) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org.apache.tomcat.util.threads.ThreadPool > >>>> $ControlRunnable.run(ThreadP > >>>>>>> ool.java:689) > >>>>>>> at java.lang.Thread.run(Thread.java:619) > >>>>>>> Caused by: fedora.server.errors.ObjectValidityException: > >>>>>>> DOValidatorXMLSchema returned > >>>>>>> validation exception. > >>>>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>>>> '12p.pdf' is not a valid > >>>>>>> value for 'NCName'." > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > >>>>>>> .java:222) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > >>>>>>> java:129) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.axis.encoding.DeserializationContext.endElement(Deserializ > >>>>>>> ationContext.java:108 > >>>>>>> 7) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > >>>>>>> nt(AbstractSAXParser. > >>>>>>> java:601) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>>>> l.scanEndElement(XMLD > >>>>>>> ocumentFragmentScan > >>>>>>> nerImpl.java:1772) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>>>> l$FragmentContentDriv > >>>>>>> er.next(XMLDocument > >>>>>>> FragmentScannerImpl.java:2923) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > >>>>>>> MLDocumentScannerImpl > >>>>>>> .java:645) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > >>>>>>> (XMLNSDocumentScanner > >>>>>>> Impl.java:140) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>>>> l.scanDocument(XMLDoc > >>>>>>> umentFragmentScanne > >>>>>>> rImpl.java:508) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>>>> ML11Configuration.jav > >>>>>>> a:807) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>>>> ML11Configuration.jav > >>>>>>> a:737) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > >>>>>>> java:107) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com > >>>> > .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > >>>>>>> stractSAXParser.java: > >>>>>>> 1205) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl > >>>> $JAXPSAXParser.p > >>>>>>> arse(SAXParserImpl.ja > >>>>>>> va:522) > >>>>>>> at > >>>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.axis.encoding.DeserializationContext.parse(Deserialization > >>>>>>> Context.java:227) > >>>>>>> at > >>>>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > >>>>>>> at > >>>>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> org > >>>> > .apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > >>>>>>> tandChecker.java:62) > >>>>>>> at > >>>>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > >>>>>>> at > >>>> org.apache.axis.client.Call.invokeEngine(Call.java:2784) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) > >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) > >>>>>>> at > >>>>>>> > >>>>>> > >>>> info > >>>> > .fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > >>>>>>> t(Unknown > >>>>>>> Source) > >>>>>>> ... 20 more > >>>>>>> 10:28:14,484 ERROR > [org.purl.sword.server.fedora.FedoraServer] > >>>>>>> Exception occured: > >>>>>>> org.purl.sword.base.SWORDException: Ha > >>>>>>> d problems adding the object to the repository; > >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the > >>>> object > >>>>>> to > >>>>>>> the repository; > >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the > ob > >>>>>>> ject to the repository; > >>>>>>> > >>>>>>> > >>>>>>> Best Regards > >>>>>>> ----------------------------------- > >>>>>>> Rishi K Sharma > >>>>>>> Systems Development Project Officer > >>>>>>> Centre for e-Research > >>>>>>> King's College London > >>>>>>> 0207 848 1971 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -----Original Message----- > >>>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>>>>> Sent: 30 May 2008 09:50 > >>>>>>> To: ris...@kc... > >>>>>>> Subject: RE: [sword-app-tech] File submission error > >>>>>>> > >>>>>>> > >>>>>>> What errors/stack dump are you getting? > >>>>>>> What url are you using for deposit? > >>>>>>> Have you tried depositing to the Fedora test implementation? > >>>>>>> Have you tried using the test packages? > >>>>>>> What client are you using to deposit? > >>>>>>> > >>>>>>> See: > >>>> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Regards, > >>>>>>> Antony > >>>>>>> -- > >>>>>>> Antony Corfield > >>>>>>> ROAD Project > >>>>>>> http://road.aber.ac.uk > >>>>>>> tel. 01970 628724 > >>>>>>> > >>>>>>> > >>>>>>>> -----Original Message----- > >>>>>>>> From: swo...@li... > >>>> [mailto:sword- > >>>>>>> app- > >>>>>>>> tec...@li...] On Behalf Of Rishi K > >>>> Sharma > >>>>>>>> Sent: 29 May 2008 15:00 > >>>>>>>> To: swo...@li... > >>>>>>>> Subject: [sword-app-tech] File submission error > >>>>>>>> > >>>>>>>> Hi Guys, > >>>>>>>> > >>>>>>>> I am trying to use fedora Sword deposit api implementation > >>>> and i > >>>>>> am > >>>>>>>> not able to ingest > >>>>>>>> file which starting with number like (9.pdf or 9pm.pdf), > >>>>>>>> is there any way so that i can ingest these files into > fedora > >>>>>> using > >>>>>>>> Sword deposit API. > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> Best Regards > >>>>>>>> ----------------------------------- > >>>>>>>> Rishi K Sharma > >>>>>>>> Systems Development Project Officer > >>>>>>>> Centre for e-Research > >>>>>>>> King's College London > >>>>>>>> 0207 848 1971 > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> ------------------------------------------------------------ > - > >>>> ---- > >>>>>> -- > >>>>>>> -- > >>>>>>>> ---- > >>>>>>>> This SF.net email is sponsored by: Microsoft > >>>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>>>>> _______________________________________________ > >>>>>>>> sword-app-tech mailing list > >>>>>>>> swo...@li... > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>>>> > >>>>> > >>>>> --------------------------------------------------------------- > ---- > >>>> ------ > >>>>> This SF.net email is sponsored by: Microsoft > >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>> _______________________________________________ > >>>>> sword-app-tech mailing list > >>>>> swo...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>>> > >>>> > >>>> ---------------------------------------------------------------- > ----- > >>>> ---- > >>>> This SF.net email is sponsored by: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ > >>>> sword-app-tech mailing list > >>>> swo...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>> > >>> ----------------------------------------------------------------- > -------- > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> sword-app-tech mailing list > >>> swo...@li... > >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >> > >> > >> ------------------------------------------------------------------ > ------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> sword-app-tech mailing list > >> swo...@li... > >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > > --------------------------------------------------------------------- > ---- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Rishi K S. <ris...@ah...> - 2008-06-02 09:21:42
|
Hi Glen,Ian, Sound good, as long as it resolve the issue.(filename starting with number or zip containing more than one file starting with number) just one more thing i want to ask, is there any way we can avoid to ingest zip, as (SFAPI) it inget zip file also as datastream, what i wanted, only file to be ingested which is in zip not zip file itself as well also. Best Regards ----------------------------------- Rishi K Sharma Systems Development Project Officer Centre for e-Research King's College London 0207 848 1971 -----Original Message----- From: swo...@li... [mailto:swo...@li...]On Behalf Of Ian Ibbotson Sent: 02 June 2008 10:06 To: Glen Robson Cc: swo...@li... Subject: Re: [sword-app-tech] File submission error Hiya Glen, cheers for the update. I've no real stake in the fedora adapter, but as an outside observer I'm just interested, is there no way to make the datastream identifiers more representative of the content type? The sword upload request contains a mime type doesn't it? Would that be any better? Cheers, Ian. On Mon, 2008-06-02 at 09:59 +0100, Glen Robson wrote: > Hi, > > When I was developing the Fedora Sword client I thought it would be a > good idea to use the deposited file name as the datastream id to aid > identification of the deposit and also to ensure the correct > extensions when the item is downloaded using the inbuilt fedora > disseminators. I can see now this is causing a few problems with > Fedora's inbuilt validation rules. The code which decides the file > name is in the following Java class: > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler > > The method code is as follows: > > public String getGenericFileName(final DepositCollection > pDeposit) > > if (pDeposit.getFilename() == null) { > tFilename = "upload"; > } else { > tFilename = pDeposit.getFilename(); > } > > I propose the following change to the method to produce unique > datastream names per object: > > protected static int _uniqueCount = 1; > public String getGenericFileName(final DepositCollection pDeposit) { > String tFilename = "upload" + _uniqueCount++; > if (pDeposit.getFilename() == null || > pDeposit.getFilename().indexOf(".") == -1) { > return tFilename; > } else { > int tExtensionStart = > pDeposit.getFilename().indexOf("."); > String tExtension = > pDeposit.getFilename().substring(tExtensionStart, > pDeposit.getFilename().length()); > return tFilename + "." + tExtension; > } > } > > Does anyone have any comments? > > Thanks > > Glen > > Fedora Implementation Developer > The National Library of Wales > > On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > > > It looks that way Ian, I needed to rename files such as data.pdf, > > data.txt to data_pdf.pdf, data_txt.txt > > > > I need a bath! > > > > Caused by: fedora.server.errors.ObjectValidityException: > >>>>> DOValidatorXMLSchema returned > >>>>> validation exception. > >>>>> The underlying exception was a org.xml.sax.SAXException. > > > > > > Regards, > > Antony > > -- > > Antony Corfield > > ROAD Project > > http://road.aber.ac.uk > > tel. 01970 628724 > > > > > >> -----Original Message----- > >> From: swo...@li... [mailto:sword-app- > >> tec...@li...] On Behalf Of Ian Ibbotson > >> Sent: 30 May 2008 14:57 > >> To: ris...@ah...; swo...@li... > >> Subject: Re: [sword-app-tech] File submission error > >> > >> Hiya All, > >> > >> I don't generally use the Fedora backend, but looking through the > >> stack > >> trace, I wonder if the problem is that the fedora foxml schema > >> defines a > >> datastream id as a string that must start with a character (An > >> NCName). > >> I suspect we need to take a peek insde the fedora adapter.. I don't > >> have > >> the code for that to hand, but I'll try and grab hold of it unless > >> Jim D > >> or someone else who knows better can beat me to it :) (Actually, not > >> sure about using the filename as the datastream id, but I think thats > >> down to my ignorance rather than anything else, I guess it's > >> difficult > >> to do anything better without more descriptive parameters in the > >> upload). I guess the initial hack workaround is to prefix filenames > >> with > >> a character. Now don't I feel dirty! > >> > >> Ian. > >> > >> > >> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > >>> I have had a similar problem when depositing files that have the > >> same name but different extensions. If > >>> > >>> > >>> Regards, > >>> Antony > >>> -- > >>> Antony Corfield > >>> ROAD Project > >>> http://road.aber.ac.uk > >>> tel. 01970 628724 > >>> > >>> > >>>> -----Original Message----- > >>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>> Sent: 30 May 2008 14:34 > >>>> To: Antony Corfield [awc] > >>>> Subject: RE: [sword-app-tech] File submission error > >>>> > >>>> Yes, it works, if filename starts with character e.g. if i do > >> like > >>>> p12.pdf, i works > >>>> > >>>> Best Regards > >>>> ----------------------------------- > >>>> Rishi K Sharma > >>>> Systems Development Project Officer > >>>> Centre for e-Research > >>>> King's College London > >>>> 0207 848 1971 > >>>> > >>>> > >>>> > >>>> > >>>> -----Original Message----- > >>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>> Sent: 30 May 2008 14:26 > >>>> To: ris...@ah... > >>>> Subject: RE: [sword-app-tech] File submission error > >>>> > >>>> > >>>> I presume that's the problem, does it work if the file name > >> starts > >>>> with a character? > >>>> > >>>> > >>>> Regards, > >>>> Antony > >>>> -- > >>>> Antony Corfield > >>>> ROAD Project > >>>> http://road.aber.ac.uk > >>>> tel. 01970 628724 > >>>> > >>>> > >>>>> -----Original Message----- > >>>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>>> Sent: 30 May 2008 10:37 > >>>>> To: Antony Corfield [awc] > >>>>> Subject: RE: [sword-app-tech] File submission error > >>>>> > >>>>> Hi Antony, > >>>>> > >>>>> Thanks for your attention, > >>>>> > >>>>> I am using the following url to deposit > >>>>> http://localhost:8080/sword/app/deposit/collection:open > >>>>> > >>>>> also i am using the Fedora Server to ingest. > >>>>> I am using SWORD java API to deposit. > >>>>> > >>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts > >>>> with > >>>>> number, i am getting > >>>>> the following error > >>>>> > >>>>> The status is: Code: 500, Message: 'Internal Server Error' > >>>>> No valid Entry document was received from the server > >>>>> > >>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] > >> Starting > >>>>> deposit processing at > >>>>> Fri May 30 10:28:04 BST 2008 by > >>>>> 127.0.0.1 > >>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] > >> Starting > >>>>> deposit processing at > >>>>> Fri May 30 10:28:05 BST 2008 by > >>>>> 127.0.0.1 > >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >> Received > >>>>> filechecksum: > >>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe > >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >> Received > >>>>> file checksum header: > >>>>> null > >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > >>>>> UserID=sword > >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > >>>>> IsAdministrator=true > >>>>> 10:28:12,578 DEBUG > >>>>> > >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>> Looking for collecitons for user gmr > >>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>> 10:28:12,578 DEBUG > >>>>> > >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>> Looking for collecitons for user gmr > >>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>> 10:28:12,609 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Looking > >>>>> for application/pdf and format > >>>>> null > >>>>> 10:28:12,609 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,656 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.JpegHandler as a file handler > >>>>> 10:28:12,656 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,656 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.METSFileHandler as a file handler > >>>>> 10:28:12,656 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,656 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.ZipFileHandler as a file handler > >>>>> 10:28:12,671 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,671 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.ZipMETSFileHandler as a file handler > >>>>> 10:28:12,671 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,687 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Couldn't > >>>>> find a file handler so using > >>>>> default > >>>>> 10:28:12,687 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,703 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,953 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] > >> Finding > >>>>> next > >>>>> pid user=sword password=sword > >>>>> 10:28:13,093 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>> copying > >>>>> file > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>> Filename > >>>>> '12p.pdf' > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>> Returning application/pdf > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >> No > >>>>> disseminators are added > >>>>> 10:28:13,125 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > >>>>> Uploading > >>>>> C:\Temp\uploaded-file.tmp > >>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > >>>>> getting > >>>>> http://localhost:8080/fedora/management/upload > >>>>> 10:28:13,453 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready > >> to > >>>>> upload xml > >>>>> 10:28:13,453 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>> Writing > >>>>> out DC to FOXML > >>>>> 10:28:13,453 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>> Writing > >>>>> out RELS-EXT to FOXML > >>>>> <?xml version="1.0" encoding="UTF-8"?> > >>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > >>>>> system:def/foxml#" > >>>>> PID="changeme:205"> > >>>>> <foxml:objectProperties> > >>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- > >> syntax- > >>>>> ns#type" > >>>>> VALUE="FedoraObject" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>> system:def/model#state" > >>>>> VALUE="Active" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>> system:def/model#label" > >>>>> VALUE="Object created > >>>>> through the SWORD deposit sys > >>>>> tem" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>>> system:def/model#ownerId" VALUE="gmr" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>>> system:def/model#createdDate" > >>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>>> system:def/view#lastModifiedDate" > >>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > >>>> deposit" > >>>>> /> > >>>>> </foxml:objectProperties> > >>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > >>>>> VERSIONABLE="true"> > >>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core > >> Metadata" > >>>>> MIMETYPE="text/xml"> > >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>> <foxml:xmlContent> > >>>>> <oai_dc:dc > >>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > >>>>> <dc:title > >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the > >> JISC > >>>>> funded SWORD project</dc:title> > >>>>> <dc:creator > >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > >>>>> <dc:format > >>>>> > >>>> > >> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma > >>>>> t> > >>>>> <dc:identifier > >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My > >>>>> deposit</dc:identifier> > >>>>> </oai_dc:dc> > >>>>> </foxml:xmlContent> > >>>>> </foxml:datastreamVersion> > >>>>> </foxml:datastream> > >>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > >>>>> VERSIONABLE="true"> > >>>>> <foxml:datastreamVersion ID="RELS-EXT.0" > >> LABEL="Relationships > >>>> to > >>>>> other objects" > >>>>> MIMETYPE="text/xml"> > >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>> <foxml:xmlContent> > >>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > >>>> syntax- > >>>>> ns#"> > >>>>> <rdf:Description > >> rdf:about="info:fedora/changeme:205"> > >>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- > >>>>> system:def/relations-external#" > >>>>> rdf:resource="info:fedora/coll > >>>>> ection:open" /> > >>>>> </rdf:Description> > >>>>> </rdf:rdf> > >>>>> </foxml:xmlContent> > >>>>> </foxml:datastreamVersion> > >>>>> </foxml:datastream> > >>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > >>>>> VERSIONABLE="true"> > >>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD > >> Generic > >>>> File > >>>>> Upload" > >>>>> MIMETYPE="application/pdf"> > >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > >>>>> </foxml:datastreamVersion> > >>>>> </foxml:datastream> > >>>>> </foxml:digitalObject> > >>>>> > >>>>> 10:28:14,437 ERROR > >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > >>>>> problems > >>>>> adding the object to the repos > >>>>> itory; fedora.server.errors.ObjectValidityException: > >>>>> DOValidatorXMLSchema returned > >>>>> validation exception. > >>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>> '12p.pdf' is not a valid > >>>>> value for 'NCName'." > >>>>> org.purl.sword.base.SWORDException: Had problems adding the > >> object > >>>> to > >>>>> the repository; > >>>>> at > >>>>> > >>>> > >> org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > >>>>> n Source) > >>>>> at > >>>>> > >>>> > >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > >>>>> post(Unknown Source) > >>>>> at > >>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown > >> Source) > >>>>> at > >>>>> > >>>> > >> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) > >>>>> at > >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > >>>>> at > >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > >>>>> icationFilterChain.ja > >>>>> va:269) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > >>>>> ilterChain.java:188) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > >>>>> alve.java:213) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > >>>>> alve.java:174) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > >>>>> ava:127) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > >>>>> ava:117) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > >>>>> ve.java:108) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > >>>>> a:151) > >>>>> at > >>>>> > >>>> > >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > >>>>> :874) > >>>>> at > >>>>> > >>>> > >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p > >>>>> rocessConnection(Http > >>>>> 11BaseProtocol.java > >>>>> :665) > >>>>> at > >>>>> > >>>> > >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > >>>>> int.java:528) > >>>>> at > >>>>> > >>>> > >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > >>>>> lowerWorkerThread.jav > >>>>> a:81) > >>>>> at > >>>>> > >>>> > >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > >>>>> ool.java:689) > >>>>> at java.lang.Thread.run(Thread.java:619) > >>>>> Caused by: fedora.server.errors.ObjectValidityException: > >>>>> DOValidatorXMLSchema returned > >>>>> validation exception. > >>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>> '12p.pdf' is not a valid > >>>>> value for 'NCName'." > >>>>> at > >>>>> > >>>> > >> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > >>>>> .java:222) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > >>>>> java:129) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ > >>>>> ationContext.java:108 > >>>>> 7) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > >>>>> nt(AbstractSAXParser. > >>>>> java:601) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>> l.scanEndElement(XMLD > >>>>> ocumentFragmentScan > >>>>> nerImpl.java:1772) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>> l$FragmentContentDriv > >>>>> er.next(XMLDocument > >>>>> FragmentScannerImpl.java:2923) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > >>>>> MLDocumentScannerImpl > >>>>> .java:645) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > >>>>> (XMLNSDocumentScanner > >>>>> Impl.java:140) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>> l.scanDocument(XMLDoc > >>>>> umentFragmentScanne > >>>>> rImpl.java:508) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>> ML11Configuration.jav > >>>>> a:807) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>> ML11Configuration.jav > >>>>> a:737) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > >>>>> java:107) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > >>>>> stractSAXParser.java: > >>>>> 1205) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p > >>>>> arse(SAXParserImpl.ja > >>>>> va:522) > >>>>> at > >> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.encoding.DeserializationContext.parse(Deserialization > >>>>> Context.java:227) > >>>>> at > >>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > >>>>> at > >>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > >>>>> tandChecker.java:62) > >>>>> at > >>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > >>>>> at > >> org.apache.axis.client.Call.invokeEngine(Call.java:2784) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) > >>>>> at > >>>>> > >>>> > >> info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > >>>>> t(Unknown > >>>>> Source) > >>>>> ... 20 more > >>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > >>>>> Exception occured: > >>>>> org.purl.sword.base.SWORDException: Ha > >>>>> d problems adding the object to the repository; > >>>>> org.purl.sword.base.SWORDException: Had problems adding the > >> object > >>>> to > >>>>> the repository; > >>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > >>>>> org.purl.sword.base.SWORDException: Had problems adding the ob > >>>>> ject to the repository; > >>>>> > >>>>> > >>>>> Best Regards > >>>>> ----------------------------------- > >>>>> Rishi K Sharma > >>>>> Systems Development Project Officer > >>>>> Centre for e-Research > >>>>> King's College London > >>>>> 0207 848 1971 > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> -----Original Message----- > >>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>>> Sent: 30 May 2008 09:50 > >>>>> To: ris...@kc... > >>>>> Subject: RE: [sword-app-tech] File submission error > >>>>> > >>>>> > >>>>> What errors/stack dump are you getting? > >>>>> What url are you using for deposit? > >>>>> Have you tried depositing to the Fedora test implementation? > >>>>> Have you tried using the test packages? > >>>>> What client are you using to deposit? > >>>>> > >>>>> See: > >> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > >>>>> > >>>>> > >>>>> > >>>>> Regards, > >>>>> Antony > >>>>> -- > >>>>> Antony Corfield > >>>>> ROAD Project > >>>>> http://road.aber.ac.uk > >>>>> tel. 01970 628724 > >>>>> > >>>>> > >>>>>> -----Original Message----- > >>>>>> From: swo...@li... > >> [mailto:sword- > >>>>> app- > >>>>>> tec...@li...] On Behalf Of Rishi K > >> Sharma > >>>>>> Sent: 29 May 2008 15:00 > >>>>>> To: swo...@li... > >>>>>> Subject: [sword-app-tech] File submission error > >>>>>> > >>>>>> Hi Guys, > >>>>>> > >>>>>> I am trying to use fedora Sword deposit api implementation > >> and i > >>>> am > >>>>>> not able to ingest > >>>>>> file which starting with number like (9.pdf or 9pm.pdf), > >>>>>> is there any way so that i can ingest these files into fedora > >>>> using > >>>>>> Sword deposit API. > >>>>>> > >>>>>> > >>>>>> > >>>>>> Best Regards > >>>>>> ----------------------------------- > >>>>>> Rishi K Sharma > >>>>>> Systems Development Project Officer > >>>>>> Centre for e-Research > >>>>>> King's College London > >>>>>> 0207 848 1971 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> ------------------------------------------------------------- > >> ---- > >>>> -- > >>>>> -- > >>>>>> ---- > >>>>>> This SF.net email is sponsored by: Microsoft > >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>>> _______________________________________________ > >>>>>> sword-app-tech mailing list > >>>>>> swo...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>> > >>> > >>> ------------------------------------------------------------------- > >> ------ > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> sword-app-tech mailing list > >>> swo...@li... > >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >> > >> > >> --------------------------------------------------------------------- > >> ---- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> sword-app-tech mailing list > >> swo...@li... > >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > sword-app-tech mailing list > > swo...@li... > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sword-app-tech mailing list swo...@li... https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Glen R. <gle...@ll...> - 2008-06-02 09:21:15
|
Hi Ian, What sort of names were you thinking of? Something like image-jpg.jpg or application-pdf.pdf? Another option is to take the filename without the extension and add a number to it so data1.txt data2.pdf. You would also have to check if the filename starts with a number then prepend a string to the file uploaded-9.pdf Both options are relatively simple to implement. Thanks Glen Fedora Implementation Developer The National Library of Wales On 2 Jun 2008, at 10:06, Ian Ibbotson wrote: > Hiya Glen, cheers for the update. > > I've no real stake in the fedora adapter, but as an outside observer > I'm > just interested, is there no way to make the datastream identifiers > more > representative of the content type? The sword upload request > contains a > mime type doesn't it? Would that be any better? > > Cheers, > Ian. > > On Mon, 2008-06-02 at 09:59 +0100, Glen Robson wrote: >> Hi, >> >> When I was developing the Fedora Sword client I thought it would be a >> good idea to use the deposited file name as the datastream id to aid >> identification of the deposit and also to ensure the correct >> extensions when the item is downloaded using the inbuilt fedora >> disseminators. I can see now this is causing a few problems with >> Fedora's inbuilt validation rules. The code which decides the file >> name is in the following Java class: >> >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler >> >> The method code is as follows: >> >> public String getGenericFileName(final DepositCollection >> pDeposit) >> >> if (pDeposit.getFilename() == null) { >> tFilename = "upload"; >> } else { >> tFilename = pDeposit.getFilename(); >> } >> >> I propose the following change to the method to produce unique >> datastream names per object: >> >> protected static int _uniqueCount = 1; >> public String getGenericFileName(final DepositCollection pDeposit) { >> String tFilename = "upload" + _uniqueCount++; >> if (pDeposit.getFilename() == null || >> pDeposit.getFilename().indexOf(".") == -1) { >> return tFilename; >> } else { >> int tExtensionStart = >> pDeposit.getFilename().indexOf("."); >> String tExtension = >> pDeposit.getFilename().substring(tExtensionStart, >> pDeposit.getFilename().length()); >> return tFilename + "." + tExtension; >> } >> } >> >> Does anyone have any comments? >> >> Thanks >> >> Glen >> >> Fedora Implementation Developer >> The National Library of Wales >> >> On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: >> >>> It looks that way Ian, I needed to rename files such as data.pdf, >>> data.txt to data_pdf.pdf, data_txt.txt >>> >>> I need a bath! >>> >>> Caused by: fedora.server.errors.ObjectValidityException: >>>>>>> DOValidatorXMLSchema returned >>>>>>> validation exception. >>>>>>> The underlying exception was a org.xml.sax.SAXException. >>> >>> >>> Regards, >>> Antony >>> -- >>> Antony Corfield >>> ROAD Project >>> http://road.aber.ac.uk >>> tel. 01970 628724 >>> >>> >>>> -----Original Message----- >>>> From: swo...@li... [mailto:sword-app- >>>> tec...@li...] On Behalf Of Ian Ibbotson >>>> Sent: 30 May 2008 14:57 >>>> To: ris...@ah...; swo...@li... >>>> Subject: Re: [sword-app-tech] File submission error >>>> >>>> Hiya All, >>>> >>>> I don't generally use the Fedora backend, but looking through the >>>> stack >>>> trace, I wonder if the problem is that the fedora foxml schema >>>> defines a >>>> datastream id as a string that must start with a character (An >>>> NCName). >>>> I suspect we need to take a peek insde the fedora adapter.. I don't >>>> have >>>> the code for that to hand, but I'll try and grab hold of it unless >>>> Jim D >>>> or someone else who knows better can beat me to it :) (Actually, >>>> not >>>> sure about using the filename as the datastream id, but I think >>>> thats >>>> down to my ignorance rather than anything else, I guess it's >>>> difficult >>>> to do anything better without more descriptive parameters in the >>>> upload). I guess the initial hack workaround is to prefix filenames >>>> with >>>> a character. Now don't I feel dirty! >>>> >>>> Ian. >>>> >>>> >>>> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: >>>>> I have had a similar problem when depositing files that have the >>>> same name but different extensions. If >>>>> >>>>> >>>>> Regards, >>>>> Antony >>>>> -- >>>>> Antony Corfield >>>>> ROAD Project >>>>> http://road.aber.ac.uk >>>>> tel. 01970 628724 >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>>> Sent: 30 May 2008 14:34 >>>>>> To: Antony Corfield [awc] >>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>> >>>>>> Yes, it works, if filename starts with character e.g. if i do >>>> like >>>>>> p12.pdf, i works >>>>>> >>>>>> Best Regards >>>>>> ----------------------------------- >>>>>> Rishi K Sharma >>>>>> Systems Development Project Officer >>>>>> Centre for e-Research >>>>>> King's College London >>>>>> 0207 848 1971 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -----Original Message----- >>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>>> Sent: 30 May 2008 14:26 >>>>>> To: ris...@ah... >>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>> >>>>>> >>>>>> I presume that's the problem, does it work if the file name >>>> starts >>>>>> with a character? >>>>>> >>>>>> >>>>>> Regards, >>>>>> Antony >>>>>> -- >>>>>> Antony Corfield >>>>>> ROAD Project >>>>>> http://road.aber.ac.uk >>>>>> tel. 01970 628724 >>>>>> >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>>>> Sent: 30 May 2008 10:37 >>>>>>> To: Antony Corfield [awc] >>>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>>> >>>>>>> Hi Antony, >>>>>>> >>>>>>> Thanks for your attention, >>>>>>> >>>>>>> I am using the following url to deposit >>>>>>> http://localhost:8080/sword/app/deposit/collection:open >>>>>>> >>>>>>> also i am using the Fedora Server to ingest. >>>>>>> I am using SWORD java API to deposit. >>>>>>> >>>>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts >>>>>> with >>>>>>> number, i am getting >>>>>>> the following error >>>>>>> >>>>>>> The status is: Code: 500, Message: 'Internal Server Error' >>>>>>> No valid Entry document was received from the server >>>>>>> >>>>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] >>>> Starting >>>>>>> deposit processing at >>>>>>> Fri May 30 10:28:04 BST 2008 by >>>>>>> 127.0.0.1 >>>>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] >>>> Starting >>>>>>> deposit processing at >>>>>>> Fri May 30 10:28:05 BST 2008 by >>>>>>> 127.0.0.1 >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >>>> Received >>>>>>> filechecksum: >>>>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe >>>>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >>>> Received >>>>>>> file checksum header: >>>>>>> null >>>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>>>> UserID=sword >>>>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>>>> IsAdministrator=true >>>>>>> 10:28:12,578 DEBUG >>>>>>> >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>>>> Looking for collecitons for user gmr >>>>>>> with XPath=./users/user[./text() = 'gmr'] >>>>>>> 10:28:12,578 DEBUG >>>>>>> >>>> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>>>> Looking for collecitons for user gmr >>>>>>> with XPath=./users/user[./text() = 'gmr'] >>>>>>> 10:28:12,609 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Looking >>>>>>> for application/pdf and format >>>>>>> null >>>>>>> 10:28:12,609 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,656 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.JpegHandler as a file handler >>>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,656 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.METSFileHandler as a file handler >>>>>>> 10:28:12,656 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,656 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.ZipFileHandler as a file handler >>>>>>> 10:28:12,671 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,671 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Loading >>>>>>> org.purl.sword.server.fedora.f >>>>>>> ileHandlers.ZipMETSFileHandler as a file handler >>>>>>> 10:28:12,671 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,687 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>>>> Couldn't >>>>>>> find a file handler so using >>>>>>> default >>>>>>> 10:28:12,687 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,703 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:12,953 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] >>>> Finding >>>>>>> next >>>>>>> pid user=sword password=sword >>>>>>> 10:28:13,093 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>>> copying >>>>>>> file >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>>> Filename >>>>>>> '12p.pdf' >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>>>> Returning application/pdf >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>> No >>>>>>> disseminators are added >>>>>>> 10:28:13,125 DEBUG >>>>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>>>> Loading >>>>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>>>> INF\properties.xml >>>>>>> 10:28:13,125 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] >>>>>>> Uploading >>>>>>> C:\Temp\uploaded-file.tmp >>>>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is >>>>>>> getting >>>>>>> http://localhost:8080/fedora/management/upload >>>>>>> 10:28:13,453 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready >>>> to >>>>>>> upload xml >>>>>>> 10:28:13,453 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>>>> Writing >>>>>>> out DC to FOXML >>>>>>> 10:28:13,453 DEBUG >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>>>> Writing >>>>>>> out RELS-EXT to FOXML >>>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- >>>>>>> system:def/foxml#" >>>>>>> PID="changeme:205"> >>>>>>> <foxml:objectProperties> >>>>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- >>>> syntax- >>>>>>> ns#type" >>>>>>> VALUE="FedoraObject" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/model#state" >>>>>>> VALUE="Active" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>> system:def/model#label" >>>>>>> VALUE="Object created >>>>>>> through the SWORD deposit sys >>>>>>> tem" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>>> system:def/model#ownerId" VALUE="gmr" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>>> system:def/model#createdDate" >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>>>> <foxml:property NAME="info:fedora/fedora- >>>>>>> system:def/view#lastModifiedDate" >>>>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My >>>>>> deposit" >>>>>>> /> >>>>>>> </foxml:objectProperties> >>>>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" >>>>>>> VERSIONABLE="true"> >>>>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core >>>> Metadata" >>>>>>> MIMETYPE="text/xml"> >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>>> <foxml:xmlContent> >>>>>>> <oai_dc:dc >>>>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> >>>>>>> <dc:title >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the >>>> JISC >>>>>>> funded SWORD project</dc:title> >>>>>>> <dc:creator >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> >>>>>>> <dc:format >>>>>>> >>>>>> >>>> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</ >>>> dc:forma >>>>>>> t> >>>>>>> <dc:identifier >>>>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My >>>>>>> deposit</dc:identifier> >>>>>>> </oai_dc:dc> >>>>>>> </foxml:xmlContent> >>>>>>> </foxml:datastreamVersion> >>>>>>> </foxml:datastream> >>>>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" >>>>>>> VERSIONABLE="true"> >>>>>>> <foxml:datastreamVersion ID="RELS-EXT.0" >>>> LABEL="Relationships >>>>>> to >>>>>>> other objects" >>>>>>> MIMETYPE="text/xml"> >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>>> <foxml:xmlContent> >>>>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- >>>>>> syntax- >>>>>>> ns#"> >>>>>>> <rdf:Description >>>> rdf:about="info:fedora/changeme:205"> >>>>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- >>>>>>> system:def/relations-external#" >>>>>>> rdf:resource="info:fedora/coll >>>>>>> ection:open" /> >>>>>>> </rdf:Description> >>>>>>> </rdf:rdf> >>>>>>> </foxml:xmlContent> >>>>>>> </foxml:datastreamVersion> >>>>>>> </foxml:datastream> >>>>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" >>>>>>> VERSIONABLE="true"> >>>>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD >>>> Generic >>>>>> File >>>>>>> Upload" >>>>>>> MIMETYPE="application/pdf"> >>>>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> >>>>>>> </foxml:datastreamVersion> >>>>>>> </foxml:datastream> >>>>>>> </foxml:digitalObject> >>>>>>> >>>>>>> 10:28:14,437 ERROR >>>>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had >>>>>>> problems >>>>>>> adding the object to the repos >>>>>>> itory; fedora.server.errors.ObjectValidityException: >>>>>>> DOValidatorXMLSchema returned >>>>>>> validation exception. >>>>>>> The underlying exception was a org.xml.sax.SAXException. >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>>>> '12p.pdf' is not a valid >>>>>>> value for 'NCName'." >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the >>>> object >>>>>> to >>>>>>> the repository; >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow >>>>>>> n Source) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe >>>>>>> post(Unknown Source) >>>>>>> at >>>>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown >>>> Source) >>>>>>> at >>>>>>> >>>>>> >>>> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java: >>>> 240) >>>>>>> at >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >>>>>>> at >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >>>>>>> icationFilterChain.ja >>>>>>> va:269) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >>>>>>> ilterChain.java:188) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >>>>>>> alve.java:213) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardContextValve.invoke(StandardContextV >>>>>>> alve.java:174) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >>>>>>> ava:127) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >>>>>>> ava:117) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >>>>>>> ve.java:108) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >>>>>>> a:151) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java >>>>>>> :874) >>>>>>> at >>>>>>> >>>>>> >>>> org.apache.coyote.http11.Http11BaseProtocol >>>> $Http11ConnectionHandler.p >>>>>>> rocessConnection(Http >>>>>>> 11BaseProtocol.java >>>>>>> :665) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo >>>>>>> int.java:528) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol >>>>>>> lowerWorkerThread.jav >>>>>>> a:81) >>>>>>> at >>>>>>> >>>>>> >>>> org.apache.tomcat.util.threads.ThreadPool >>>> $ControlRunnable.run(ThreadP >>>>>>> ool.java:689) >>>>>>> at java.lang.Thread.run(Thread.java:619) >>>>>>> Caused by: fedora.server.errors.ObjectValidityException: >>>>>>> DOValidatorXMLSchema returned >>>>>>> validation exception. >>>>>>> The underlying exception was a org.xml.sax.SAXException. >>>>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>>>> '12p.pdf' is not a valid >>>>>>> value for 'NCName'." >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder >>>>>>> .java:222) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. >>>>>>> java:129) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.encoding.DeserializationContext.endElement(Deserializ >>>>>>> ationContext.java:108 >>>>>>> 7) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme >>>>>>> nt(AbstractSAXParser. >>>>>>> java:601) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>>> l.scanEndElement(XMLD >>>>>>> ocumentFragmentScan >>>>>>> nerImpl.java:1772) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>>> l$FragmentContentDriv >>>>>>> er.next(XMLDocument >>>>>>> FragmentScannerImpl.java:2923) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X >>>>>>> MLDocumentScannerImpl >>>>>>> .java:645) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next >>>>>>> (XMLNSDocumentScanner >>>>>>> Impl.java:140) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>>>> l.scanDocument(XMLDoc >>>>>>> umentFragmentScanne >>>>>>> rImpl.java:508) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>>>> ML11Configuration.jav >>>>>>> a:807) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>>>> ML11Configuration.jav >>>>>>> a:737) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. >>>>>>> java:107) >>>>>>> at >>>>>>> >>>>>> >>>> com >>>> .sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab >>>>>>> stractSAXParser.java: >>>>>>> 1205) >>>>>>> at >>>>>>> >>>>>> >>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl >>>> $JAXPSAXParser.p >>>>>>> arse(SAXParserImpl.ja >>>>>>> va:522) >>>>>>> at >>>> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.encoding.DeserializationContext.parse(Deserialization >>>>>>> Context.java:227) >>>>>>> at >>>>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) >>>>>>> at >>>>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) >>>>>>> at >>>>>>> >>>>>> >>>> org >>>> .apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders >>>>>>> tandChecker.java:62) >>>>>>> at >>>>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) >>>>>>> at >>>> org.apache.axis.client.Call.invokeEngine(Call.java:2784) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) >>>>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) >>>>>>> at >>>>>>> >>>>>> >>>> info >>>> .fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges >>>>>>> t(Unknown >>>>>>> Source) >>>>>>> ... 20 more >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] >>>>>>> Exception occured: >>>>>>> org.purl.sword.base.SWORDException: Ha >>>>>>> d problems adding the object to the repository; >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the >>>> object >>>>>> to >>>>>>> the repository; >>>>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] >>>>>>> org.purl.sword.base.SWORDException: Had problems adding the ob >>>>>>> ject to the repository; >>>>>>> >>>>>>> >>>>>>> Best Regards >>>>>>> ----------------------------------- >>>>>>> Rishi K Sharma >>>>>>> Systems Development Project Officer >>>>>>> Centre for e-Research >>>>>>> King's College London >>>>>>> 0207 848 1971 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>>>> Sent: 30 May 2008 09:50 >>>>>>> To: ris...@kc... >>>>>>> Subject: RE: [sword-app-tech] File submission error >>>>>>> >>>>>>> >>>>>>> What errors/stack dump are you getting? >>>>>>> What url are you using for deposit? >>>>>>> Have you tried depositing to the Fedora test implementation? >>>>>>> Have you tried using the test packages? >>>>>>> What client are you using to deposit? >>>>>>> >>>>>>> See: >>>> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access >>>>>>> >>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Antony >>>>>>> -- >>>>>>> Antony Corfield >>>>>>> ROAD Project >>>>>>> http://road.aber.ac.uk >>>>>>> tel. 01970 628724 >>>>>>> >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: swo...@li... >>>> [mailto:sword- >>>>>>> app- >>>>>>>> tec...@li...] On Behalf Of Rishi K >>>> Sharma >>>>>>>> Sent: 29 May 2008 15:00 >>>>>>>> To: swo...@li... >>>>>>>> Subject: [sword-app-tech] File submission error >>>>>>>> >>>>>>>> Hi Guys, >>>>>>>> >>>>>>>> I am trying to use fedora Sword deposit api implementation >>>> and i >>>>>> am >>>>>>>> not able to ingest >>>>>>>> file which starting with number like (9.pdf or 9pm.pdf), >>>>>>>> is there any way so that i can ingest these files into fedora >>>>>> using >>>>>>>> Sword deposit API. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Best Regards >>>>>>>> ----------------------------------- >>>>>>>> Rishi K Sharma >>>>>>>> Systems Development Project Officer >>>>>>>> Centre for e-Research >>>>>>>> King's College London >>>>>>>> 0207 848 1971 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------- >>>> ---- >>>>>> -- >>>>>>> -- >>>>>>>> ---- >>>>>>>> This SF.net email is sponsored by: Microsoft >>>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>>>> _______________________________________________ >>>>>>>> sword-app-tech mailing list >>>>>>>> swo...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>>>> >>>>> >>>>> ------------------------------------------------------------------- >>>> ------ >>>>> This SF.net email is sponsored by: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> _______________________________________________ >>>>> sword-app-tech mailing list >>>>> swo...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>>> >>>> >>>> --------------------------------------------------------------------- >>>> ---- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> sword-app-tech mailing list >>>> swo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> sword-app-tech mailing list >>> swo...@li... >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sword-app-tech mailing list >> swo...@li... >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > |
From: Ian I. <ian...@k-...> - 2008-06-02 09:10:46
|
Hiya Glen, cheers for the update. I've no real stake in the fedora adapter, but as an outside observer I'm just interested, is there no way to make the datastream identifiers more representative of the content type? The sword upload request contains a mime type doesn't it? Would that be any better? Cheers, Ian. On Mon, 2008-06-02 at 09:59 +0100, Glen Robson wrote: > Hi, > > When I was developing the Fedora Sword client I thought it would be a > good idea to use the deposited file name as the datastream id to aid > identification of the deposit and also to ensure the correct > extensions when the item is downloaded using the inbuilt fedora > disseminators. I can see now this is causing a few problems with > Fedora's inbuilt validation rules. The code which decides the file > name is in the following Java class: > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler > > The method code is as follows: > > public String getGenericFileName(final DepositCollection > pDeposit) > > if (pDeposit.getFilename() == null) { > tFilename = "upload"; > } else { > tFilename = pDeposit.getFilename(); > } > > I propose the following change to the method to produce unique > datastream names per object: > > protected static int _uniqueCount = 1; > public String getGenericFileName(final DepositCollection pDeposit) { > String tFilename = "upload" + _uniqueCount++; > if (pDeposit.getFilename() == null || > pDeposit.getFilename().indexOf(".") == -1) { > return tFilename; > } else { > int tExtensionStart = > pDeposit.getFilename().indexOf("."); > String tExtension = > pDeposit.getFilename().substring(tExtensionStart, > pDeposit.getFilename().length()); > return tFilename + "." + tExtension; > } > } > > Does anyone have any comments? > > Thanks > > Glen > > Fedora Implementation Developer > The National Library of Wales > > On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > > > It looks that way Ian, I needed to rename files such as data.pdf, > > data.txt to data_pdf.pdf, data_txt.txt > > > > I need a bath! > > > > Caused by: fedora.server.errors.ObjectValidityException: > >>>>> DOValidatorXMLSchema returned > >>>>> validation exception. > >>>>> The underlying exception was a org.xml.sax.SAXException. > > > > > > Regards, > > Antony > > -- > > Antony Corfield > > ROAD Project > > http://road.aber.ac.uk > > tel. 01970 628724 > > > > > >> -----Original Message----- > >> From: swo...@li... [mailto:sword-app- > >> tec...@li...] On Behalf Of Ian Ibbotson > >> Sent: 30 May 2008 14:57 > >> To: ris...@ah...; swo...@li... > >> Subject: Re: [sword-app-tech] File submission error > >> > >> Hiya All, > >> > >> I don't generally use the Fedora backend, but looking through the > >> stack > >> trace, I wonder if the problem is that the fedora foxml schema > >> defines a > >> datastream id as a string that must start with a character (An > >> NCName). > >> I suspect we need to take a peek insde the fedora adapter.. I don't > >> have > >> the code for that to hand, but I'll try and grab hold of it unless > >> Jim D > >> or someone else who knows better can beat me to it :) (Actually, not > >> sure about using the filename as the datastream id, but I think thats > >> down to my ignorance rather than anything else, I guess it's > >> difficult > >> to do anything better without more descriptive parameters in the > >> upload). I guess the initial hack workaround is to prefix filenames > >> with > >> a character. Now don't I feel dirty! > >> > >> Ian. > >> > >> > >> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > >>> I have had a similar problem when depositing files that have the > >> same name but different extensions. If > >>> > >>> > >>> Regards, > >>> Antony > >>> -- > >>> Antony Corfield > >>> ROAD Project > >>> http://road.aber.ac.uk > >>> tel. 01970 628724 > >>> > >>> > >>>> -----Original Message----- > >>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>> Sent: 30 May 2008 14:34 > >>>> To: Antony Corfield [awc] > >>>> Subject: RE: [sword-app-tech] File submission error > >>>> > >>>> Yes, it works, if filename starts with character e.g. if i do > >> like > >>>> p12.pdf, i works > >>>> > >>>> Best Regards > >>>> ----------------------------------- > >>>> Rishi K Sharma > >>>> Systems Development Project Officer > >>>> Centre for e-Research > >>>> King's College London > >>>> 0207 848 1971 > >>>> > >>>> > >>>> > >>>> > >>>> -----Original Message----- > >>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>> Sent: 30 May 2008 14:26 > >>>> To: ris...@ah... > >>>> Subject: RE: [sword-app-tech] File submission error > >>>> > >>>> > >>>> I presume that's the problem, does it work if the file name > >> starts > >>>> with a character? > >>>> > >>>> > >>>> Regards, > >>>> Antony > >>>> -- > >>>> Antony Corfield > >>>> ROAD Project > >>>> http://road.aber.ac.uk > >>>> tel. 01970 628724 > >>>> > >>>> > >>>>> -----Original Message----- > >>>>> From: Rishi K Sharma [mailto:ris...@ah...] > >>>>> Sent: 30 May 2008 10:37 > >>>>> To: Antony Corfield [awc] > >>>>> Subject: RE: [sword-app-tech] File submission error > >>>>> > >>>>> Hi Antony, > >>>>> > >>>>> Thanks for your attention, > >>>>> > >>>>> I am using the following url to deposit > >>>>> http://localhost:8080/sword/app/deposit/collection:open > >>>>> > >>>>> also i am using the Fedora Server to ingest. > >>>>> I am using SWORD java API to deposit. > >>>>> > >>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts > >>>> with > >>>>> number, i am getting > >>>>> the following error > >>>>> > >>>>> The status is: Code: 500, Message: 'Internal Server Error' > >>>>> No valid Entry document was received from the server > >>>>> > >>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] > >> Starting > >>>>> deposit processing at > >>>>> Fri May 30 10:28:04 BST 2008 by > >>>>> 127.0.0.1 > >>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] > >> Starting > >>>>> deposit processing at > >>>>> Fri May 30 10:28:05 BST 2008 by > >>>>> 127.0.0.1 > >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >> Received > >>>>> filechecksum: > >>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe > >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > >> Received > >>>>> file checksum header: > >>>>> null > >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > >>>>> UserID=sword > >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > >>>>> IsAdministrator=true > >>>>> 10:28:12,578 DEBUG > >>>>> > >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>> Looking for collecitons for user gmr > >>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>> 10:28:12,578 DEBUG > >>>>> > >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > >>>>> Looking for collecitons for user gmr > >>>>> with XPath=./users/user[./text() = 'gmr'] > >>>>> 10:28:12,609 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Looking > >>>>> for application/pdf and format > >>>>> null > >>>>> 10:28:12,609 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,656 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.JpegHandler as a file handler > >>>>> 10:28:12,656 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,656 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.METSFileHandler as a file handler > >>>>> 10:28:12,656 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,656 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.ZipFileHandler as a file handler > >>>>> 10:28:12,671 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,671 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Loading > >>>>> org.purl.sword.server.fedora.f > >>>>> ileHandlers.ZipMETSFileHandler as a file handler > >>>>> 10:28:12,671 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,687 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > >>>>> Couldn't > >>>>> find a file handler so using > >>>>> default > >>>>> 10:28:12,687 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,703 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:12,953 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] > >> Finding > >>>>> next > >>>>> pid user=sword password=sword > >>>>> 10:28:13,093 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>> copying > >>>>> file > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>> Filename > >>>>> '12p.pdf' > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >>>>> Returning application/pdf > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > >> No > >>>>> disseminators are added > >>>>> 10:28:13,125 DEBUG > >>>> [org.purl.sword.server.fedora.utils.XMLProperties] > >>>>> Loading > >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- > >>>>> INF\properties.xml > >>>>> 10:28:13,125 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > >>>>> Uploading > >>>>> C:\Temp\uploaded-file.tmp > >>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > >>>>> getting > >>>>> http://localhost:8080/fedora/management/upload > >>>>> 10:28:13,453 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready > >> to > >>>>> upload xml > >>>>> 10:28:13,453 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>> Writing > >>>>> out DC to FOXML > >>>>> 10:28:13,453 DEBUG > >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > >>>> Writing > >>>>> out RELS-EXT to FOXML > >>>>> <?xml version="1.0" encoding="UTF-8"?> > >>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > >>>>> system:def/foxml#" > >>>>> PID="changeme:205"> > >>>>> <foxml:objectProperties> > >>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- > >> syntax- > >>>>> ns#type" > >>>>> VALUE="FedoraObject" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>> system:def/model#state" > >>>>> VALUE="Active" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>> system:def/model#label" > >>>>> VALUE="Object created > >>>>> through the SWORD deposit sys > >>>>> tem" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>>> system:def/model#ownerId" VALUE="gmr" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>>> system:def/model#createdDate" > >>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>> <foxml:property NAME="info:fedora/fedora- > >>>>> system:def/view#lastModifiedDate" > >>>>> VALUE="2008-05-30T09:28:13.078Z" /> > >>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > >>>> deposit" > >>>>> /> > >>>>> </foxml:objectProperties> > >>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > >>>>> VERSIONABLE="true"> > >>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core > >> Metadata" > >>>>> MIMETYPE="text/xml"> > >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>> <foxml:xmlContent> > >>>>> <oai_dc:dc > >>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > >>>>> <dc:title > >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the > >> JISC > >>>>> funded SWORD project</dc:title> > >>>>> <dc:creator > >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > >>>>> <dc:format > >>>>> > >>>> > >> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma > >>>>> t> > >>>>> <dc:identifier > >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My > >>>>> deposit</dc:identifier> > >>>>> </oai_dc:dc> > >>>>> </foxml:xmlContent> > >>>>> </foxml:datastreamVersion> > >>>>> </foxml:datastream> > >>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > >>>>> VERSIONABLE="true"> > >>>>> <foxml:datastreamVersion ID="RELS-EXT.0" > >> LABEL="Relationships > >>>> to > >>>>> other objects" > >>>>> MIMETYPE="text/xml"> > >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>> <foxml:xmlContent> > >>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > >>>> syntax- > >>>>> ns#"> > >>>>> <rdf:Description > >> rdf:about="info:fedora/changeme:205"> > >>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- > >>>>> system:def/relations-external#" > >>>>> rdf:resource="info:fedora/coll > >>>>> ection:open" /> > >>>>> </rdf:Description> > >>>>> </rdf:rdf> > >>>>> </foxml:xmlContent> > >>>>> </foxml:datastreamVersion> > >>>>> </foxml:datastream> > >>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > >>>>> VERSIONABLE="true"> > >>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD > >> Generic > >>>> File > >>>>> Upload" > >>>>> MIMETYPE="application/pdf"> > >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > >>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > >>>>> </foxml:datastreamVersion> > >>>>> </foxml:datastream> > >>>>> </foxml:digitalObject> > >>>>> > >>>>> 10:28:14,437 ERROR > >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > >>>>> problems > >>>>> adding the object to the repos > >>>>> itory; fedora.server.errors.ObjectValidityException: > >>>>> DOValidatorXMLSchema returned > >>>>> validation exception. > >>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>> '12p.pdf' is not a valid > >>>>> value for 'NCName'." > >>>>> org.purl.sword.base.SWORDException: Had problems adding the > >> object > >>>> to > >>>>> the repository; > >>>>> at > >>>>> > >>>> > >> org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > >>>>> n Source) > >>>>> at > >>>>> > >>>> > >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > >>>>> post(Unknown Source) > >>>>> at > >>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown > >> Source) > >>>>> at > >>>>> > >>>> > >> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) > >>>>> at > >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > >>>>> at > >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > >>>>> icationFilterChain.ja > >>>>> va:269) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > >>>>> ilterChain.java:188) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > >>>>> alve.java:213) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > >>>>> alve.java:174) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > >>>>> ava:127) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > >>>>> ava:117) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > >>>>> ve.java:108) > >>>>> at > >>>>> > >>>> > >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > >>>>> a:151) > >>>>> at > >>>>> > >>>> > >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > >>>>> :874) > >>>>> at > >>>>> > >>>> > >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p > >>>>> rocessConnection(Http > >>>>> 11BaseProtocol.java > >>>>> :665) > >>>>> at > >>>>> > >>>> > >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > >>>>> int.java:528) > >>>>> at > >>>>> > >>>> > >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > >>>>> lowerWorkerThread.jav > >>>>> a:81) > >>>>> at > >>>>> > >>>> > >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > >>>>> ool.java:689) > >>>>> at java.lang.Thread.run(Thread.java:619) > >>>>> Caused by: fedora.server.errors.ObjectValidityException: > >>>>> DOValidatorXMLSchema returned > >>>>> validation exception. > >>>>> The underlying exception was a org.xml.sax.SAXException. > >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > >>>>> '12p.pdf' is not a valid > >>>>> value for 'NCName'." > >>>>> at > >>>>> > >>>> > >> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > >>>>> .java:222) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > >>>>> java:129) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ > >>>>> ationContext.java:108 > >>>>> 7) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > >>>>> nt(AbstractSAXParser. > >>>>> java:601) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>> l.scanEndElement(XMLD > >>>>> ocumentFragmentScan > >>>>> nerImpl.java:1772) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>> l$FragmentContentDriv > >>>>> er.next(XMLDocument > >>>>> FragmentScannerImpl.java:2923) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > >>>>> MLDocumentScannerImpl > >>>>> .java:645) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > >>>>> (XMLNSDocumentScanner > >>>>> Impl.java:140) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > >>>>> l.scanDocument(XMLDoc > >>>>> umentFragmentScanne > >>>>> rImpl.java:508) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>> ML11Configuration.jav > >>>>> a:807) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > >>>>> ML11Configuration.jav > >>>>> a:737) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > >>>>> java:107) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > >>>>> stractSAXParser.java: > >>>>> 1205) > >>>>> at > >>>>> > >>>> > >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p > >>>>> arse(SAXParserImpl.ja > >>>>> va:522) > >>>>> at > >> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.encoding.DeserializationContext.parse(Deserialization > >>>>> Context.java:227) > >>>>> at > >>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > >>>>> at > >>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > >>>>> at > >>>>> > >>>> > >> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > >>>>> tandChecker.java:62) > >>>>> at > >>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > >>>>> at > >> org.apache.axis.client.Call.invokeEngine(Call.java:2784) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) > >>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) > >>>>> at > >>>>> > >>>> > >> info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > >>>>> t(Unknown > >>>>> Source) > >>>>> ... 20 more > >>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > >>>>> Exception occured: > >>>>> org.purl.sword.base.SWORDException: Ha > >>>>> d problems adding the object to the repository; > >>>>> org.purl.sword.base.SWORDException: Had problems adding the > >> object > >>>> to > >>>>> the repository; > >>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > >>>>> org.purl.sword.base.SWORDException: Had problems adding the ob > >>>>> ject to the repository; > >>>>> > >>>>> > >>>>> Best Regards > >>>>> ----------------------------------- > >>>>> Rishi K Sharma > >>>>> Systems Development Project Officer > >>>>> Centre for e-Research > >>>>> King's College London > >>>>> 0207 848 1971 > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> -----Original Message----- > >>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] > >>>>> Sent: 30 May 2008 09:50 > >>>>> To: ris...@kc... > >>>>> Subject: RE: [sword-app-tech] File submission error > >>>>> > >>>>> > >>>>> What errors/stack dump are you getting? > >>>>> What url are you using for deposit? > >>>>> Have you tried depositing to the Fedora test implementation? > >>>>> Have you tried using the test packages? > >>>>> What client are you using to deposit? > >>>>> > >>>>> See: > >> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > >>>>> > >>>>> > >>>>> > >>>>> Regards, > >>>>> Antony > >>>>> -- > >>>>> Antony Corfield > >>>>> ROAD Project > >>>>> http://road.aber.ac.uk > >>>>> tel. 01970 628724 > >>>>> > >>>>> > >>>>>> -----Original Message----- > >>>>>> From: swo...@li... > >> [mailto:sword- > >>>>> app- > >>>>>> tec...@li...] On Behalf Of Rishi K > >> Sharma > >>>>>> Sent: 29 May 2008 15:00 > >>>>>> To: swo...@li... > >>>>>> Subject: [sword-app-tech] File submission error > >>>>>> > >>>>>> Hi Guys, > >>>>>> > >>>>>> I am trying to use fedora Sword deposit api implementation > >> and i > >>>> am > >>>>>> not able to ingest > >>>>>> file which starting with number like (9.pdf or 9pm.pdf), > >>>>>> is there any way so that i can ingest these files into fedora > >>>> using > >>>>>> Sword deposit API. > >>>>>> > >>>>>> > >>>>>> > >>>>>> Best Regards > >>>>>> ----------------------------------- > >>>>>> Rishi K Sharma > >>>>>> Systems Development Project Officer > >>>>>> Centre for e-Research > >>>>>> King's College London > >>>>>> 0207 848 1971 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> ------------------------------------------------------------- > >> ---- > >>>> -- > >>>>> -- > >>>>>> ---- > >>>>>> This SF.net email is sponsored by: Microsoft > >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>>> _______________________________________________ > >>>>>> sword-app-tech mailing list > >>>>>> swo...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >>> > >>> > >>> ------------------------------------------------------------------- > >> ------ > >>> This SF.net email is sponsored by: Microsoft > >>> Defy all challenges. Microsoft(R) Visual Studio 2008. > >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>> _______________________________________________ > >>> sword-app-tech mailing list > >>> swo...@li... > >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >> > >> > >> --------------------------------------------------------------------- > >> ---- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> sword-app-tech mailing list > >> swo...@li... > >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > sword-app-tech mailing list > > swo...@li... > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Glen R. <gle...@ll...> - 2008-06-02 08:59:40
|
Hi, When I was developing the Fedora Sword client I thought it would be a good idea to use the deposited file name as the datastream id to aid identification of the deposit and also to ensure the correct extensions when the item is downloaded using the inbuilt fedora disseminators. I can see now this is causing a few problems with Fedora's inbuilt validation rules. The code which decides the file name is in the following Java class: org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler The method code is as follows: public String getGenericFileName(final DepositCollection pDeposit) if (pDeposit.getFilename() == null) { tFilename = "upload"; } else { tFilename = pDeposit.getFilename(); } I propose the following change to the method to produce unique datastream names per object: protected static int _uniqueCount = 1; public String getGenericFileName(final DepositCollection pDeposit) { String tFilename = "upload" + _uniqueCount++; if (pDeposit.getFilename() == null || pDeposit.getFilename().indexOf(".") == -1) { return tFilename; } else { int tExtensionStart = pDeposit.getFilename().indexOf("."); String tExtension = pDeposit.getFilename().substring(tExtensionStart, pDeposit.getFilename().length()); return tFilename + "." + tExtension; } } Does anyone have any comments? Thanks Glen Fedora Implementation Developer The National Library of Wales On 30 May 2008, at 15:15, Antony Corfield [awc] wrote: > It looks that way Ian, I needed to rename files such as data.pdf, > data.txt to data_pdf.pdf, data_txt.txt > > I need a bath! > > Caused by: fedora.server.errors.ObjectValidityException: >>>>> DOValidatorXMLSchema returned >>>>> validation exception. >>>>> The underlying exception was a org.xml.sax.SAXException. > > > Regards, > Antony > -- > Antony Corfield > ROAD Project > http://road.aber.ac.uk > tel. 01970 628724 > > >> -----Original Message----- >> From: swo...@li... [mailto:sword-app- >> tec...@li...] On Behalf Of Ian Ibbotson >> Sent: 30 May 2008 14:57 >> To: ris...@ah...; swo...@li... >> Subject: Re: [sword-app-tech] File submission error >> >> Hiya All, >> >> I don't generally use the Fedora backend, but looking through the >> stack >> trace, I wonder if the problem is that the fedora foxml schema >> defines a >> datastream id as a string that must start with a character (An >> NCName). >> I suspect we need to take a peek insde the fedora adapter.. I don't >> have >> the code for that to hand, but I'll try and grab hold of it unless >> Jim D >> or someone else who knows better can beat me to it :) (Actually, not >> sure about using the filename as the datastream id, but I think thats >> down to my ignorance rather than anything else, I guess it's >> difficult >> to do anything better without more descriptive parameters in the >> upload). I guess the initial hack workaround is to prefix filenames >> with >> a character. Now don't I feel dirty! >> >> Ian. >> >> >> On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: >>> I have had a similar problem when depositing files that have the >> same name but different extensions. If >>> >>> >>> Regards, >>> Antony >>> -- >>> Antony Corfield >>> ROAD Project >>> http://road.aber.ac.uk >>> tel. 01970 628724 >>> >>> >>>> -----Original Message----- >>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>> Sent: 30 May 2008 14:34 >>>> To: Antony Corfield [awc] >>>> Subject: RE: [sword-app-tech] File submission error >>>> >>>> Yes, it works, if filename starts with character e.g. if i do >> like >>>> p12.pdf, i works >>>> >>>> Best Regards >>>> ----------------------------------- >>>> Rishi K Sharma >>>> Systems Development Project Officer >>>> Centre for e-Research >>>> King's College London >>>> 0207 848 1971 >>>> >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>> Sent: 30 May 2008 14:26 >>>> To: ris...@ah... >>>> Subject: RE: [sword-app-tech] File submission error >>>> >>>> >>>> I presume that's the problem, does it work if the file name >> starts >>>> with a character? >>>> >>>> >>>> Regards, >>>> Antony >>>> -- >>>> Antony Corfield >>>> ROAD Project >>>> http://road.aber.ac.uk >>>> tel. 01970 628724 >>>> >>>> >>>>> -----Original Message----- >>>>> From: Rishi K Sharma [mailto:ris...@ah...] >>>>> Sent: 30 May 2008 10:37 >>>>> To: Antony Corfield [awc] >>>>> Subject: RE: [sword-app-tech] File submission error >>>>> >>>>> Hi Antony, >>>>> >>>>> Thanks for your attention, >>>>> >>>>> I am using the following url to deposit >>>>> http://localhost:8080/sword/app/deposit/collection:open >>>>> >>>>> also i am using the Fedora Server to ingest. >>>>> I am using SWORD java API to deposit. >>>>> >>>>> I can ingest/deposit pdf, zip etc only thing if pdf name starts >>>> with >>>>> number, i am getting >>>>> the following error >>>>> >>>>> The status is: Code: 500, Message: 'Internal Server Error' >>>>> No valid Entry document was received from the server >>>>> >>>>> 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] >> Starting >>>>> deposit processing at >>>>> Fri May 30 10:28:04 BST 2008 by >>>>> 127.0.0.1 >>>>> 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] >> Starting >>>>> deposit processing at >>>>> Fri May 30 10:28:05 BST 2008 by >>>>> 127.0.0.1 >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >> Received >>>>> filechecksum: >>>>> 8ab97bd08e108db1ccf42c2ea5b35cbe >>>>> 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] >> Received >>>>> file checksum header: >>>>> null >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>> UserID=sword >>>>> 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] >>>>> IsAdministrator=true >>>>> 10:28:12,578 DEBUG >>>>> >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>> Looking for collecitons for user gmr >>>>> with XPath=./users/user[./text() = 'gmr'] >>>>> 10:28:12,578 DEBUG >>>>> >> [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] >>>>> Looking for collecitons for user gmr >>>>> with XPath=./users/user[./text() = 'gmr'] >>>>> 10:28:12,609 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Looking >>>>> for application/pdf and format >>>>> null >>>>> 10:28:12,609 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.JpegHandler as a file handler >>>>> 10:28:12,656 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.METSFileHandler as a file handler >>>>> 10:28:12,656 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,656 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.ZipFileHandler as a file handler >>>>> 10:28:12,671 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,671 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Loading >>>>> org.purl.sword.server.fedora.f >>>>> ileHandlers.ZipMETSFileHandler as a file handler >>>>> 10:28:12,671 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,687 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] >>>>> Couldn't >>>>> find a file handler so using >>>>> default >>>>> 10:28:12,687 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,703 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:12,953 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] >> Finding >>>>> next >>>>> pid user=sword password=sword >>>>> 10:28:13,093 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>> copying >>>>> file >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>> Filename >>>>> '12p.pdf' >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >>>>> Returning application/pdf >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] >> No >>>>> disseminators are added >>>>> 10:28:13,125 DEBUG >>>> [org.purl.sword.server.fedora.utils.XMLProperties] >>>>> Loading >>>>> C:\apache-tomcat-5.5.25\webapps\sword\WEB- >>>>> INF\properties.xml >>>>> 10:28:13,125 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] >>>>> Uploading >>>>> C:\Temp\uploaded-file.tmp >>>>> 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is >>>>> getting >>>>> http://localhost:8080/fedora/management/upload >>>>> 10:28:13,453 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready >> to >>>>> upload xml >>>>> 10:28:13,453 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>> Writing >>>>> out DC to FOXML >>>>> 10:28:13,453 DEBUG >>>>> [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] >>>> Writing >>>>> out RELS-EXT to FOXML >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <foxml:digitalObject xmlns:foxml="info:fedora/fedora- >>>>> system:def/foxml#" >>>>> PID="changeme:205"> >>>>> <foxml:objectProperties> >>>>> <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- >> syntax- >>>>> ns#type" >>>>> VALUE="FedoraObject" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>> system:def/model#state" >>>>> VALUE="Active" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>> system:def/model#label" >>>>> VALUE="Object created >>>>> through the SWORD deposit sys >>>>> tem" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/model#ownerId" VALUE="gmr" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/model#createdDate" >>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>> <foxml:property NAME="info:fedora/fedora- >>>>> system:def/view#lastModifiedDate" >>>>> VALUE="2008-05-30T09:28:13.078Z" /> >>>>> <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My >>>> deposit" >>>>> /> >>>>> </foxml:objectProperties> >>>>> <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" >>>>> VERSIONABLE="true"> >>>>> <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core >> Metadata" >>>>> MIMETYPE="text/xml"> >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>> <foxml:xmlContent> >>>>> <oai_dc:dc >>>>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> >>>>> <dc:title >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the >> JISC >>>>> funded SWORD project</dc:title> >>>>> <dc:creator >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> >>>>> <dc:format >>>>> >>>> >> xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma >>>>> t> >>>>> <dc:identifier >>>>> xmlns:dc="http://purl.org/dc/elements/1.1/">My >>>>> deposit</dc:identifier> >>>>> </oai_dc:dc> >>>>> </foxml:xmlContent> >>>>> </foxml:datastreamVersion> >>>>> </foxml:datastream> >>>>> <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" >>>>> VERSIONABLE="true"> >>>>> <foxml:datastreamVersion ID="RELS-EXT.0" >> LABEL="Relationships >>>> to >>>>> other objects" >>>>> MIMETYPE="text/xml"> >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>> <foxml:xmlContent> >>>>> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- >>>> syntax- >>>>> ns#"> >>>>> <rdf:Description >> rdf:about="info:fedora/changeme:205"> >>>>> <rel:isMemberOf xmlns:rel="info:fedora/fedora- >>>>> system:def/relations-external#" >>>>> rdf:resource="info:fedora/coll >>>>> ection:open" /> >>>>> </rdf:Description> >>>>> </rdf:rdf> >>>>> </foxml:xmlContent> >>>>> </foxml:datastreamVersion> >>>>> </foxml:datastream> >>>>> <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" >>>>> VERSIONABLE="true"> >>>>> <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD >> Generic >>>> File >>>>> Upload" >>>>> MIMETYPE="application/pdf"> >>>>> <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> >>>>> <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> >>>>> </foxml:datastreamVersion> >>>>> </foxml:datastream> >>>>> </foxml:digitalObject> >>>>> >>>>> 10:28:14,437 ERROR >>>>> [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had >>>>> problems >>>>> adding the object to the repos >>>>> itory; fedora.server.errors.ObjectValidityException: >>>>> DOValidatorXMLSchema returned >>>>> validation exception. >>>>> The underlying exception was a org.xml.sax.SAXException. >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>> '12p.pdf' is not a valid >>>>> value for 'NCName'." >>>>> org.purl.sword.base.SWORDException: Had problems adding the >> object >>>> to >>>>> the repository; >>>>> at >>>>> >>>> >> org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow >>>>> n Source) >>>>> at >>>>> >>>> >> org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe >>>>> post(Unknown Source) >>>>> at >>>>> org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown >> Source) >>>>> at >>>>> >>>> >> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) >>>>> at >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) >>>>> at >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>>>> at >>>>> >>>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >>>>> icationFilterChain.ja >>>>> va:269) >>>>> at >>>>> >>>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >>>>> ilterChain.java:188) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >>>>> alve.java:213) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV >>>>> alve.java:174) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >>>>> ava:127) >>>>> at >>>>> >>>> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >>>>> ava:117) >>>>> at >>>>> >>>> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >>>>> ve.java:108) >>>>> at >>>>> >>>> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >>>>> a:151) >>>>> at >>>>> >>>> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java >>>>> :874) >>>>> at >>>>> >>>> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p >>>>> rocessConnection(Http >>>>> 11BaseProtocol.java >>>>> :665) >>>>> at >>>>> >>>> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo >>>>> int.java:528) >>>>> at >>>>> >>>> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol >>>>> lowerWorkerThread.jav >>>>> a:81) >>>>> at >>>>> >>>> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP >>>>> ool.java:689) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> Caused by: fedora.server.errors.ObjectValidityException: >>>>> DOValidatorXMLSchema returned >>>>> validation exception. >>>>> The underlying exception was a org.xml.sax.SAXException. >>>>> The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: >>>>> '12p.pdf' is not a valid >>>>> value for 'NCName'." >>>>> at >>>>> >>>> >> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder >>>>> .java:222) >>>>> at >>>>> >>>> >> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. >>>>> java:129) >>>>> at >>>>> >>>> >> org.apache.axis.encoding.DeserializationContext.endElement(Deserializ >>>>> ationContext.java:108 >>>>> 7) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme >>>>> nt(AbstractSAXParser. >>>>> java:601) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>> l.scanEndElement(XMLD >>>>> ocumentFragmentScan >>>>> nerImpl.java:1772) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>> l$FragmentContentDriv >>>>> er.next(XMLDocument >>>>> FragmentScannerImpl.java:2923) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X >>>>> MLDocumentScannerImpl >>>>> .java:645) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next >>>>> (XMLNSDocumentScanner >>>>> Impl.java:140) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp >>>>> l.scanDocument(XMLDoc >>>>> umentFragmentScanne >>>>> rImpl.java:508) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>> ML11Configuration.jav >>>>> a:807) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X >>>>> ML11Configuration.jav >>>>> a:737) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. >>>>> java:107) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab >>>>> stractSAXParser.java: >>>>> 1205) >>>>> at >>>>> >>>> >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p >>>>> arse(SAXParserImpl.ja >>>>> va:522) >>>>> at >> javax.xml.parsers.SAXParser.parse(SAXParser.java:395) >>>>> at >>>>> >>>> >> org.apache.axis.encoding.DeserializationContext.parse(Deserialization >>>>> Context.java:227) >>>>> at >>>>> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) >>>>> at >>>> org.apache.axis.Message.getSOAPEnvelope(Message.java:435) >>>>> at >>>>> >>>> >> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders >>>>> tandChecker.java:62) >>>>> at >>>>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) >>>>> at >> org.apache.axis.client.Call.invokeEngine(Call.java:2784) >>>>> at org.apache.axis.client.Call.invoke(Call.java:2767) >>>>> at org.apache.axis.client.Call.invoke(Call.java:2443) >>>>> at org.apache.axis.client.Call.invoke(Call.java:2366) >>>>> at org.apache.axis.client.Call.invoke(Call.java:1812) >>>>> at >>>>> >>>> >> info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges >>>>> t(Unknown >>>>> Source) >>>>> ... 20 more >>>>> 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] >>>>> Exception occured: >>>>> org.purl.sword.base.SWORDException: Ha >>>>> d problems adding the object to the repository; >>>>> org.purl.sword.base.SWORDException: Had problems adding the >> object >>>> to >>>>> the repository; >>>>> 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] >>>>> org.purl.sword.base.SWORDException: Had problems adding the ob >>>>> ject to the repository; >>>>> >>>>> >>>>> Best Regards >>>>> ----------------------------------- >>>>> Rishi K Sharma >>>>> Systems Development Project Officer >>>>> Centre for e-Research >>>>> King's College London >>>>> 0207 848 1971 >>>>> >>>>> >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: Antony Corfield [awc] [mailto:aw...@ab...] >>>>> Sent: 30 May 2008 09:50 >>>>> To: ris...@kc... >>>>> Subject: RE: [sword-app-tech] File submission error >>>>> >>>>> >>>>> What errors/stack dump are you getting? >>>>> What url are you using for deposit? >>>>> Have you tried depositing to the Fedora test implementation? >>>>> Have you tried using the test packages? >>>>> What client are you using to deposit? >>>>> >>>>> See: >> http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access >>>>> >>>>> >>>>> >>>>> Regards, >>>>> Antony >>>>> -- >>>>> Antony Corfield >>>>> ROAD Project >>>>> http://road.aber.ac.uk >>>>> tel. 01970 628724 >>>>> >>>>> >>>>>> -----Original Message----- >>>>>> From: swo...@li... >> [mailto:sword- >>>>> app- >>>>>> tec...@li...] On Behalf Of Rishi K >> Sharma >>>>>> Sent: 29 May 2008 15:00 >>>>>> To: swo...@li... >>>>>> Subject: [sword-app-tech] File submission error >>>>>> >>>>>> Hi Guys, >>>>>> >>>>>> I am trying to use fedora Sword deposit api implementation >> and i >>>> am >>>>>> not able to ingest >>>>>> file which starting with number like (9.pdf or 9pm.pdf), >>>>>> is there any way so that i can ingest these files into fedora >>>> using >>>>>> Sword deposit API. >>>>>> >>>>>> >>>>>> >>>>>> Best Regards >>>>>> ----------------------------------- >>>>>> Rishi K Sharma >>>>>> Systems Development Project Officer >>>>>> Centre for e-Research >>>>>> King's College London >>>>>> 0207 848 1971 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------- >> ---- >>>> -- >>>>> -- >>>>>> ---- >>>>>> This SF.net email is sponsored by: Microsoft >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>> _______________________________________________ >>>>>> sword-app-tech mailing list >>>>>> swo...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >>> >>> >>> ------------------------------------------------------------------- >> ------ >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> sword-app-tech mailing list >>> swo...@li... >>> https://lists.sourceforge.net/lists/listinfo/sword-app-tech >> >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> sword-app-tech mailing list >> swo...@li... >> https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Xinjian G. <xin...@ya...> - 2008-05-30 14:24:51
|
Hi Rishi, You are right. This URL works! Someone needs to update README.txt in section 1.6 View Results to have "app" in the URL. Thanks. Neil At 10:10 AM 5/30/2008, Rishi K Sharma wrote: >Hi Neil, > >It seems that you have done everything right, Try the following URL instead: >http://localhost:8080/sword/app/servicedocument > >It should ask you for user and pass. > >Best Regards >----------------------------------- >Rishi K Sharma >Systems Development Project Officer >Centre for e-Research >King's College London >0207 848 1971 > > > >-----Original Message----- >From: swo...@li... >[mailto:swo...@li...]On Behalf Of Xinjian Guo >Sent: 30 May 2008 15:03 >To: swo...@li... >Subject: [sword-app-tech] SWORD-Fedora question > > >Hi All SWORD experts, > >I am trying to use SWORD with Fedora. I followed the instrctuions to >download, unpack, >config, and build. I deployed sword.war under Fedora Tomcat and >edited properties.xml to >use host "localhost" and port 8080. But when I tried to view the >result using Web browser >or SwordClient to access this URL >http://localhost:8080/sword/servicedocument, I get the 404 "The >requested resource >(/sword/servicedocument) is not available" error. > >Has anyone run into the same problem? Is the instruction >(sword-fedora/README.txt) not >clear/detail enough? or did I install and configure incorrectly? > >Help is appreciated. > >Neil > >properties.xml is attached |
From: Antony C. [awc] <aw...@ab...> - 2008-05-30 14:19:22
|
It looks that way Ian, I needed to rename files such as data.pdf, data.txt to data_pdf.pdf, data_txt.txt I need a bath! Caused by: fedora.server.errors.ObjectValidityException: > > > > DOValidatorXMLSchema returned > > > > validation exception. > > > > The underlying exception was a org.xml.sax.SAXException. Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 > -----Original Message----- > From: swo...@li... [mailto:sword-app- > tec...@li...] On Behalf Of Ian Ibbotson > Sent: 30 May 2008 14:57 > To: ris...@ah...; swo...@li... > Subject: Re: [sword-app-tech] File submission error > > Hiya All, > > I don't generally use the Fedora backend, but looking through the > stack > trace, I wonder if the problem is that the fedora foxml schema > defines a > datastream id as a string that must start with a character (An > NCName). > I suspect we need to take a peek insde the fedora adapter.. I don't > have > the code for that to hand, but I'll try and grab hold of it unless > Jim D > or someone else who knows better can beat me to it :) (Actually, not > sure about using the filename as the datastream id, but I think thats > down to my ignorance rather than anything else, I guess it's > difficult > to do anything better without more descriptive parameters in the > upload). I guess the initial hack workaround is to prefix filenames > with > a character. Now don't I feel dirty! > > Ian. > > > On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > > I have had a similar problem when depositing files that have the > same name but different extensions. If > > > > > > Regards, > > Antony > > -- > > Antony Corfield > > ROAD Project > > http://road.aber.ac.uk > > tel. 01970 628724 > > > > > > > -----Original Message----- > > > From: Rishi K Sharma [mailto:ris...@ah...] > > > Sent: 30 May 2008 14:34 > > > To: Antony Corfield [awc] > > > Subject: RE: [sword-app-tech] File submission error > > > > > > Yes, it works, if filename starts with character e.g. if i do > like > > > p12.pdf, i works > > > > > > Best Regards > > > ----------------------------------- > > > Rishi K Sharma > > > Systems Development Project Officer > > > Centre for e-Research > > > King's College London > > > 0207 848 1971 > > > > > > > > > > > > > > > -----Original Message----- > > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > > Sent: 30 May 2008 14:26 > > > To: ris...@ah... > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > > I presume that's the problem, does it work if the file name > starts > > > with a character? > > > > > > > > > Regards, > > > Antony > > > -- > > > Antony Corfield > > > ROAD Project > > > http://road.aber.ac.uk > > > tel. 01970 628724 > > > > > > > > > > -----Original Message----- > > > > From: Rishi K Sharma [mailto:ris...@ah...] > > > > Sent: 30 May 2008 10:37 > > > > To: Antony Corfield [awc] > > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > Hi Antony, > > > > > > > > Thanks for your attention, > > > > > > > > I am using the following url to deposit > > > > http://localhost:8080/sword/app/deposit/collection:open > > > > > > > > also i am using the Fedora Server to ingest. > > > > I am using SWORD java API to deposit. > > > > > > > > I can ingest/deposit pdf, zip etc only thing if pdf name starts > > > with > > > > number, i am getting > > > > the following error > > > > > > > > The status is: Code: 500, Message: 'Internal Server Error' > > > > No valid Entry document was received from the server > > > > > > > > 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] > Starting > > > > deposit processing at > > > > Fri May 30 10:28:04 BST 2008 by > > > > 127.0.0.1 > > > > 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] > Starting > > > > deposit processing at > > > > Fri May 30 10:28:05 BST 2008 by > > > > 127.0.0.1 > > > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > Received > > > > filechecksum: > > > > 8ab97bd08e108db1ccf42c2ea5b35cbe > > > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] > Received > > > > file checksum header: > > > > null > > > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > > > UserID=sword > > > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > > > IsAdministrator=true > > > > 10:28:12,578 DEBUG > > > > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > > > Looking for collecitons for user gmr > > > > with XPath=./users/user[./text() = 'gmr'] > > > > 10:28:12,578 DEBUG > > > > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > > > Looking for collecitons for user gmr > > > > with XPath=./users/user[./text() = 'gmr'] > > > > 10:28:12,609 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Looking > > > > for application/pdf and format > > > > null > > > > 10:28:12,609 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,656 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.JpegHandler as a file handler > > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,656 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.METSFileHandler as a file handler > > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,656 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.ZipFileHandler as a file handler > > > > 10:28:12,671 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,671 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.ZipMETSFileHandler as a file handler > > > > 10:28:12,671 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,687 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Couldn't > > > > find a file handler so using > > > > default > > > > 10:28:12,687 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,703 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,953 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] > Finding > > > > next > > > > pid user=sword password=sword > > > > 10:28:13,093 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > > copying > > > > file > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > > Filename > > > > '12p.pdf' > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > > Returning application/pdf > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > No > > > > disseminators are added > > > > 10:28:13,125 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > > > > Uploading > > > > C:\Temp\uploaded-file.tmp > > > > 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > > > > getting > > > > http://localhost:8080/fedora/management/upload > > > > 10:28:13,453 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready > to > > > > upload xml > > > > 10:28:13,453 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > > > Writing > > > > out DC to FOXML > > > > 10:28:13,453 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > > > Writing > > > > out RELS-EXT to FOXML > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > > > > system:def/foxml#" > > > > PID="changeme:205"> > > > > <foxml:objectProperties> > > > > <foxml:property NAME="http://www.w3.org/1999/02/22-rdf- > syntax- > > > > ns#type" > > > > VALUE="FedoraObject" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/model#state" > > > > VALUE="Active" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/model#label" > > > > VALUE="Object created > > > > through the SWORD deposit sys > > > > tem" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > > system:def/model#ownerId" VALUE="gmr" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > > system:def/model#createdDate" > > > > VALUE="2008-05-30T09:28:13.078Z" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > > system:def/view#lastModifiedDate" > > > > VALUE="2008-05-30T09:28:13.078Z" /> > > > > <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > > > deposit" > > > > /> > > > > </foxml:objectProperties> > > > > <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > > > > VERSIONABLE="true"> > > > > <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core > Metadata" > > > > MIMETYPE="text/xml"> > > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > > <foxml:xmlContent> > > > > <oai_dc:dc > > > > xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > > > > <dc:title > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the > JISC > > > > funded SWORD project</dc:title> > > > > <dc:creator > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > > > > <dc:format > > > > > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma > > > > t> > > > > <dc:identifier > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">My > > > > deposit</dc:identifier> > > > > </oai_dc:dc> > > > > </foxml:xmlContent> > > > > </foxml:datastreamVersion> > > > > </foxml:datastream> > > > > <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > > > > VERSIONABLE="true"> > > > > <foxml:datastreamVersion ID="RELS-EXT.0" > LABEL="Relationships > > > to > > > > other objects" > > > > MIMETYPE="text/xml"> > > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > > <foxml:xmlContent> > > > > <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > > > syntax- > > > > ns#"> > > > > <rdf:Description > rdf:about="info:fedora/changeme:205"> > > > > <rel:isMemberOf xmlns:rel="info:fedora/fedora- > > > > system:def/relations-external#" > > > > rdf:resource="info:fedora/coll > > > > ection:open" /> > > > > </rdf:Description> > > > > </rdf:rdf> > > > > </foxml:xmlContent> > > > > </foxml:datastreamVersion> > > > > </foxml:datastream> > > > > <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > > > > VERSIONABLE="true"> > > > > <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD > Generic > > > File > > > > Upload" > > > > MIMETYPE="application/pdf"> > > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > > <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > > > > </foxml:datastreamVersion> > > > > </foxml:datastream> > > > > </foxml:digitalObject> > > > > > > > > 10:28:14,437 ERROR > > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > > > > problems > > > > adding the object to the repos > > > > itory; fedora.server.errors.ObjectValidityException: > > > > DOValidatorXMLSchema returned > > > > validation exception. > > > > The underlying exception was a org.xml.sax.SAXException. > > > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > > > '12p.pdf' is not a valid > > > > value for 'NCName'." > > > > org.purl.sword.base.SWORDException: Had problems adding the > object > > > to > > > > the repository; > > > > at > > > > > > > > org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > > > > n Source) > > > > at > > > > > > > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > > > > post(Unknown Source) > > > > at > > > > org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown > Source) > > > > at > > > > > > > > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) > > > > at > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > > > at > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > at > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > > > icationFilterChain.ja > > > > va:269) > > > > at > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > > > ilterChain.java:188) > > > > at > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > > > alve.java:213) > > > > at > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > > > alve.java:174) > > > > at > > > > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > > > ava:127) > > > > at > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > > > > ava:117) > > > > at > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > > > > ve.java:108) > > > > at > > > > > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > > > > a:151) > > > > at > > > > > > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > > > > :874) > > > > at > > > > > > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p > > > > rocessConnection(Http > > > > 11BaseProtocol.java > > > > :665) > > > > at > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > > > > int.java:528) > > > > at > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > > > > lowerWorkerThread.jav > > > > a:81) > > > > at > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > > > > ool.java:689) > > > > at java.lang.Thread.run(Thread.java:619) > > > > Caused by: fedora.server.errors.ObjectValidityException: > > > > DOValidatorXMLSchema returned > > > > validation exception. > > > > The underlying exception was a org.xml.sax.SAXException. > > > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > > > '12p.pdf' is not a valid > > > > value for 'NCName'." > > > > at > > > > > > > > org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > > > > .java:222) > > > > at > > > > > > > > org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > > > > java:129) > > > > at > > > > > > > > org.apache.axis.encoding.DeserializationContext.endElement(Deserializ > > > > ationContext.java:108 > > > > 7) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > > > > nt(AbstractSAXParser. > > > > java:601) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > > l.scanEndElement(XMLD > > > > ocumentFragmentScan > > > > nerImpl.java:1772) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > > l$FragmentContentDriv > > > > er.next(XMLDocument > > > > FragmentScannerImpl.java:2923) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > > > > MLDocumentScannerImpl > > > > .java:645) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > > > > (XMLNSDocumentScanner > > > > Impl.java:140) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > > l.scanDocument(XMLDoc > > > > umentFragmentScanne > > > > rImpl.java:508) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > > > ML11Configuration.jav > > > > a:807) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > > > ML11Configuration.jav > > > > a:737) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > > > > java:107) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > > > > stractSAXParser.java: > > > > 1205) > > > > at > > > > > > > > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p > > > > arse(SAXParserImpl.ja > > > > va:522) > > > > at > javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > > > > at > > > > > > > > org.apache.axis.encoding.DeserializationContext.parse(Deserialization > > > > Context.java:227) > > > > at > > > > org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > > > > at > > > org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > > > > at > > > > > > > > org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > > > > tandChecker.java:62) > > > > at > > > > org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > > > > at > org.apache.axis.client.Call.invokeEngine(Call.java:2784) > > > > at org.apache.axis.client.Call.invoke(Call.java:2767) > > > > at org.apache.axis.client.Call.invoke(Call.java:2443) > > > > at org.apache.axis.client.Call.invoke(Call.java:2366) > > > > at org.apache.axis.client.Call.invoke(Call.java:1812) > > > > at > > > > > > > > info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > > > > t(Unknown > > > > Source) > > > > ... 20 more > > > > 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > > > > Exception occured: > > > > org.purl.sword.base.SWORDException: Ha > > > > d problems adding the object to the repository; > > > > org.purl.sword.base.SWORDException: Had problems adding the > object > > > to > > > > the repository; > > > > 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > > > > org.purl.sword.base.SWORDException: Had problems adding the ob > > > > ject to the repository; > > > > > > > > > > > > Best Regards > > > > ----------------------------------- > > > > Rishi K Sharma > > > > Systems Development Project Officer > > > > Centre for e-Research > > > > King's College London > > > > 0207 848 1971 > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > > > Sent: 30 May 2008 09:50 > > > > To: ris...@kc... > > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > > > > > What errors/stack dump are you getting? > > > > What url are you using for deposit? > > > > Have you tried depositing to the Fedora test implementation? > > > > Have you tried using the test packages? > > > > What client are you using to deposit? > > > > > > > > See: > http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > > > > > > > > > > > > > > > > Regards, > > > > Antony > > > > -- > > > > Antony Corfield > > > > ROAD Project > > > > http://road.aber.ac.uk > > > > tel. 01970 628724 > > > > > > > > > > > > > -----Original Message----- > > > > > From: swo...@li... > [mailto:sword- > > > > app- > > > > > tec...@li...] On Behalf Of Rishi K > Sharma > > > > > Sent: 29 May 2008 15:00 > > > > > To: swo...@li... > > > > > Subject: [sword-app-tech] File submission error > > > > > > > > > > Hi Guys, > > > > > > > > > > I am trying to use fedora Sword deposit api implementation > and i > > > am > > > > > not able to ingest > > > > > file which starting with number like (9.pdf or 9pm.pdf), > > > > > is there any way so that i can ingest these files into fedora > > > using > > > > > Sword deposit API. > > > > > > > > > > > > > > > > > > > > Best Regards > > > > > ----------------------------------- > > > > > Rishi K Sharma > > > > > Systems Development Project Officer > > > > > Centre for e-Research > > > > > King's College London > > > > > 0207 848 1971 > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------- > ---- > > > -- > > > > -- > > > > > ---- > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > sword-app-tech mailing list > > > > > swo...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > > > ------------------------------------------------------------------- > ------ > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > sword-app-tech mailing list > > swo...@li... > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > --------------------------------------------------------------------- > ---- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Xinjian G. <xin...@ya...> - 2008-05-30 14:19:18
|
I am a Fedora user. I haven't looked at the Fedora datastream ID naming convention, but what you said: "...fedora foxml schema defines a datastream id as a string that must start with a character..." is basically true. Normally we choose DS IDs in the format of, e.g. PDF, DC, RELS-EXT, SOURCE1, FULLTXT1, S0001, IMAGE2, etc. Neil At 09:56 AM 5/30/2008, Ian Ibbotson wrote: >Hiya All, > >I don't generally use the Fedora backend, but looking through the stack >trace, I wonder if the problem is that the fedora foxml schema defines a >datastream id as a string that must start with a character (An NCName). >I suspect we need to take a peek insde the fedora adapter.. I don't have >the code for that to hand, but I'll try and grab hold of it unless Jim D >or someone else who knows better can beat me to it :) (Actually, not >sure about using the filename as the datastream id, but I think thats >down to my ignorance rather than anything else, I guess it's difficult >to do anything better without more descriptive parameters in the >upload). I guess the initial hack workaround is to prefix filenames with >a character. Now don't I feel dirty! > >Ian. > > >On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > > I have had a similar problem when depositing files that have the > same name but different extensions. If > > > > > > Regards, > > Antony > > -- > > Antony Corfield > > ROAD Project > > http://road.aber.ac.uk > > tel. 01970 628724 > > > > > > > -----Original Message----- > > > From: Rishi K Sharma [mailto:ris...@ah...] > > > Sent: 30 May 2008 14:34 > > > To: Antony Corfield [awc] > > > Subject: RE: [sword-app-tech] File submission error > > > > > > Yes, it works, if filename starts with character e.g. if i do like > > > p12.pdf, i works > > > > > > Best Regards > > > ----------------------------------- > > > Rishi K Sharma > > > Systems Development Project Officer > > > Centre for e-Research > > > King's College London > > > 0207 848 1971 > > > > > > > > > > > > > > > -----Original Message----- > > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > > Sent: 30 May 2008 14:26 > > > To: ris...@ah... > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > > I presume that's the problem, does it work if the file name starts > > > with a character? > > > > > > > > > Regards, > > > Antony > > > -- > > > Antony Corfield > > > ROAD Project > > > http://road.aber.ac.uk > > > tel. 01970 628724 > > > > > > > > > > -----Original Message----- > > > > From: Rishi K Sharma [mailto:ris...@ah...] > > > > Sent: 30 May 2008 10:37 > > > > To: Antony Corfield [awc] > > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > Hi Antony, > > > > > > > > Thanks for your attention, > > > > > > > > I am using the following url to deposit > > > > http://localhost:8080/sword/app/deposit/collection:open > > > > > > > > also i am using the Fedora Server to ingest. > > > > I am using SWORD java API to deposit. > > > > > > > > I can ingest/deposit pdf, zip etc only thing if pdf name starts > > > with > > > > number, i am getting > > > > the following error > > > > > > > > The status is: Code: 500, Message: 'Internal Server Error' > > > > No valid Entry document was received from the server > > > > > > > > 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] Starting > > > > deposit processing at > > > > Fri May 30 10:28:04 BST 2008 by > > > > 127.0.0.1 > > > > 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] Starting > > > > deposit processing at > > > > Fri May 30 10:28:05 BST 2008 by > > > > 127.0.0.1 > > > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] Received > > > > filechecksum: > > > > 8ab97bd08e108db1ccf42c2ea5b35cbe > > > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] Received > > > > file checksum header: > > > > null > > > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > > > UserID=sword > > > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > > > IsAdministrator=true > > > > 10:28:12,578 DEBUG > > > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > > > Looking for collecitons for user gmr > > > > with XPath=./users/user[./text() = 'gmr'] > > > > 10:28:12,578 DEBUG > > > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > > > Looking for collecitons for user gmr > > > > with XPath=./users/user[./text() = 'gmr'] > > > > 10:28:12,609 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Looking > > > > for application/pdf and format > > > > null > > > > 10:28:12,609 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,656 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.JpegHandler as a file handler > > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,656 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.METSFileHandler as a file handler > > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,656 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.ZipFileHandler as a file handler > > > > 10:28:12,671 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,671 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Loading > > > > org.purl.sword.server.fedora.f > > > > ileHandlers.ZipMETSFileHandler as a file handler > > > > 10:28:12,671 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,687 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > > Couldn't > > > > find a file handler so using > > > > default > > > > 10:28:12,687 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,703 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:12,953 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Finding > > > > next > > > > pid user=sword password=sword > > > > 10:28:13,093 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > > copying > > > > file > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > > Filename > > > > '12p.pdf' > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > > Returning application/pdf > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] No > > > > disseminators are added > > > > 10:28:13,125 DEBUG > > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > > Loading > > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > > INF\properties.xml > > > > 10:28:13,125 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > > > > Uploading > > > > C:\Temp\uploaded-file.tmp > > > > 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > > > > getting > > > > http://localhost:8080/fedora/management/upload > > > > 10:28:13,453 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready to > > > > upload xml > > > > 10:28:13,453 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > > > Writing > > > > out DC to FOXML > > > > 10:28:13,453 DEBUG > > > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > > > Writing > > > > out RELS-EXT to FOXML > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > > > > system:def/foxml#" > > > > PID="changeme:205"> > > > > <foxml:objectProperties> > > > > <foxml:property NAME="http://www.w3.org/1999/02/22-rdf-syntax- > > > > ns#type" > > > > VALUE="FedoraObject" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/model#state" > > > > VALUE="Active" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/model#label" > > > > VALUE="Object created > > > > through the SWORD deposit sys > > > > tem" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > > system:def/model#ownerId" VALUE="gmr" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > > system:def/model#createdDate" > > > > VALUE="2008-05-30T09:28:13.078Z" /> > > > > <foxml:property NAME="info:fedora/fedora- > > > > system:def/view#lastModifiedDate" > > > > VALUE="2008-05-30T09:28:13.078Z" /> > > > > <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > > > deposit" > > > > /> > > > > </foxml:objectProperties> > > > > <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > > > > VERSIONABLE="true"> > > > > <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core Metadata" > > > > MIMETYPE="text/xml"> > > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > > <foxml:xmlContent> > > > > <oai_dc:dc > > > > xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > > > > <dc:title > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the JISC > > > > funded SWORD project</dc:title> > > > > <dc:creator > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > > > > <dc:format > > > > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma > > > > t> > > > > <dc:identifier > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">My > > > > deposit</dc:identifier> > > > > </oai_dc:dc> > > > > </foxml:xmlContent> > > > > </foxml:datastreamVersion> > > > > </foxml:datastream> > > > > <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > > > > VERSIONABLE="true"> > > > > <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Relationships > > > to > > > > other objects" > > > > MIMETYPE="text/xml"> > > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > > <foxml:xmlContent> > > > > <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > > > syntax- > > > > ns#"> > > > > <rdf:Description rdf:about="info:fedora/changeme:205"> > > > > <rel:isMemberOf xmlns:rel="info:fedora/fedora- > > > > system:def/relations-external#" > > > > rdf:resource="info:fedora/coll > > > > ection:open" /> > > > > </rdf:Description> > > > > </rdf:rdf> > > > > </foxml:xmlContent> > > > > </foxml:datastreamVersion> > > > > </foxml:datastream> > > > > <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > > > > VERSIONABLE="true"> > > > > <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD Generic > > > File > > > > Upload" > > > > MIMETYPE="application/pdf"> > > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > > <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > > > > </foxml:datastreamVersion> > > > > </foxml:datastream> > > > > </foxml:digitalObject> > > > > > > > > 10:28:14,437 ERROR > > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > > > > problems > > > > adding the object to the repos > > > > itory; fedora.server.errors.ObjectValidityException: > > > > DOValidatorXMLSchema returned > > > > validation exception. > > > > The underlying exception was a org.xml.sax.SAXException. > > > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > > > '12p.pdf' is not a valid > > > > value for 'NCName'." > > > > org.purl.sword.base.SWORDException: Had problems adding the object > > > to > > > > the repository; > > > > at > > > > > > > org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > > > > n Source) > > > > at > > > > > > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > > > > post(Unknown Source) > > > > at > > > > org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown Source) > > > > at > > > > > > > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) > > > > at > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > > > at > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > at > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > > > icationFilterChain.ja > > > > va:269) > > > > at > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > > > ilterChain.java:188) > > > > at > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > > > alve.java:213) > > > > at > > > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > > > alve.java:174) > > > > at > > > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > > > ava:127) > > > > at > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > > > > ava:117) > > > > at > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > > > > ve.java:108) > > > > at > > > > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > > > > a:151) > > > > at > > > > > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > > > > :874) > > > > at > > > > > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p > > > > rocessConnection(Http > > > > 11BaseProtocol.java > > > > :665) > > > > at > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > > > > int.java:528) > > > > at > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > > > > lowerWorkerThread.jav > > > > a:81) > > > > at > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > > > > ool.java:689) > > > > at java.lang.Thread.run(Thread.java:619) > > > > Caused by: fedora.server.errors.ObjectValidityException: > > > > DOValidatorXMLSchema returned > > > > validation exception. > > > > The underlying exception was a org.xml.sax.SAXException. > > > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > > > '12p.pdf' is not a valid > > > > value for 'NCName'." > > > > at > > > > > > > org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > > > > .java:222) > > > > at > > > > > > > org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > > > > java:129) > > > > at > > > > > > > org.apache.axis.encoding.DeserializationContext.endElement(Deserializ > > > > ationContext.java:108 > > > > 7) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > > > > nt(AbstractSAXParser. > > > > java:601) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > > l.scanEndElement(XMLD > > > > ocumentFragmentScan > > > > nerImpl.java:1772) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > > l$FragmentContentDriv > > > > er.next(XMLDocument > > > > FragmentScannerImpl.java:2923) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > > > > MLDocumentScannerImpl > > > > .java:645) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > > > > (XMLNSDocumentScanner > > > > Impl.java:140) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > > l.scanDocument(XMLDoc > > > > umentFragmentScanne > > > > rImpl.java:508) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > > > ML11Configuration.jav > > > > a:807) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > > > ML11Configuration.jav > > > > a:737) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > > > > java:107) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > > > > stractSAXParser.java: > > > > 1205) > > > > at > > > > > > > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p > > > > arse(SAXParserImpl.ja > > > > va:522) > > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > > > > at > > > > > > > org.apache.axis.encoding.DeserializationContext.parse(Deserialization > > > > Context.java:227) > > > > at > > > > org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > > > > at > > > org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > > > > at > > > > > > > org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > > > > tandChecker.java:62) > > > > at > > > > org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > > > > at org.apache.axis.client.Call.invokeEngine(Call.java:2784) > > > > at org.apache.axis.client.Call.invoke(Call.java:2767) > > > > at org.apache.axis.client.Call.invoke(Call.java:2443) > > > > at org.apache.axis.client.Call.invoke(Call.java:2366) > > > > at org.apache.axis.client.Call.invoke(Call.java:1812) > > > > at > > > > > > > info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > > > > t(Unknown > > > > Source) > > > > ... 20 more > > > > 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > > > > Exception occured: > > > > org.purl.sword.base.SWORDException: Ha > > > > d problems adding the object to the repository; > > > > org.purl.sword.base.SWORDException: Had problems adding the object > > > to > > > > the repository; > > > > 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > > > > org.purl.sword.base.SWORDException: Had problems adding the ob > > > > ject to the repository; > > > > > > > > > > > > Best Regards > > > > ----------------------------------- > > > > Rishi K Sharma > > > > Systems Development Project Officer > > > > Centre for e-Research > > > > King's College London > > > > 0207 848 1971 > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > > > Sent: 30 May 2008 09:50 > > > > To: ris...@kc... > > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > > > > > What errors/stack dump are you getting? > > > > What url are you using for deposit? > > > > Have you tried depositing to the Fedora test implementation? > > > > Have you tried using the test packages? > > > > What client are you using to deposit? > > > > > > > > See: http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > > > > > > > > > > > > > > > > Regards, > > > > Antony > > > > -- > > > > Antony Corfield > > > > ROAD Project > > > > http://road.aber.ac.uk > > > > tel. 01970 628724 > > > > > > > > > > > > > -----Original Message----- > > > > > From: swo...@li... [mailto:sword- > > > > app- > > > > > tec...@li...] On Behalf Of Rishi K Sharma > > > > > Sent: 29 May 2008 15:00 > > > > > To: swo...@li... > > > > > Subject: [sword-app-tech] File submission error > > > > > > > > > > Hi Guys, > > > > > > > > > > I am trying to use fedora Sword deposit api implementation and i > > > am > > > > > not able to ingest > > > > > file which starting with number like (9.pdf or 9pm.pdf), > > > > > is there any way so that i can ingest these files into fedora > > > using > > > > > Sword deposit API. > > > > > > > > > > > > > > > > > > > > Best Regards > > > > > ----------------------------------- > > > > > Rishi K Sharma > > > > > Systems Development Project Officer > > > > > Centre for e-Research > > > > > King's College London > > > > > 0207 848 1971 > > > > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > -- > > > > -- > > > > > ---- > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > sword-app-tech mailing list > > > > > swo...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > sword-app-tech mailing list > > swo...@li... > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >sword-app-tech mailing list >swo...@li... >https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Rishi K S. <ris...@kc...> - 2008-05-30 14:14:46
|
Best Regards ----------------------------------- Rishi K Sharma Systems Development Project Officer Centre for e-Research King's College London 0207 848 1971 -----Original Message----- From: swo...@li... [mailto:swo...@li...]On Behalf Of Xinjian Guo Sent: 30 May 2008 15:03 To: swo...@li... Subject: [sword-app-tech] SWORD-Fedora question Hi All SWORD experts, I am trying to use SWORD with Fedora. I followed the instrctuions to download, unpack, config, and build. I deployed sword.war under Fedora Tomcat and edited properties.xml to use host "localhost" and port 8080. But when I tried to view the result using Web browser or SwordClient to access this URL http://localhost:8080/sword/servicedocument, I get the 404 "The requested resource (/sword/servicedocument) is not available" error. Has anyone run into the same problem? Is the instruction (sword-fedora/README.txt) not clear/detail enough? or did I install and configure incorrectly? Help is appreciated. Neil properties.xml is attached |
From: Rishi K S. <ris...@ah...> - 2008-05-30 14:10:14
|
Hi Neil, It seems that you have done everything right, Try the following URL instead: http://localhost:8080/sword/app/servicedocument It should ask you for user and pass. Best Regards ----------------------------------- Rishi K Sharma Systems Development Project Officer Centre for e-Research King's College London 0207 848 1971 -----Original Message----- From: swo...@li... [mailto:swo...@li...]On Behalf Of Xinjian Guo Sent: 30 May 2008 15:03 To: swo...@li... Subject: [sword-app-tech] SWORD-Fedora question Hi All SWORD experts, I am trying to use SWORD with Fedora. I followed the instrctuions to download, unpack, config, and build. I deployed sword.war under Fedora Tomcat and edited properties.xml to use host "localhost" and port 8080. But when I tried to view the result using Web browser or SwordClient to access this URL http://localhost:8080/sword/servicedocument, I get the 404 "The requested resource (/sword/servicedocument) is not available" error. Has anyone run into the same problem? Is the instruction (sword-fedora/README.txt) not clear/detail enough? or did I install and configure incorrectly? Help is appreciated. Neil properties.xml is attached |
From: Ian I. <ian...@k-...> - 2008-05-30 14:00:54
|
Hiya All, I don't generally use the Fedora backend, but looking through the stack trace, I wonder if the problem is that the fedora foxml schema defines a datastream id as a string that must start with a character (An NCName). I suspect we need to take a peek insde the fedora adapter.. I don't have the code for that to hand, but I'll try and grab hold of it unless Jim D or someone else who knows better can beat me to it :) (Actually, not sure about using the filename as the datastream id, but I think thats down to my ignorance rather than anything else, I guess it's difficult to do anything better without more descriptive parameters in the upload). I guess the initial hack workaround is to prefix filenames with a character. Now don't I feel dirty! Ian. On Fri, 2008-05-30 at 14:35 +0100, Antony Corfield [awc] wrote: > I have had a similar problem when depositing files that have the same name but different extensions. If > > > Regards, > Antony > -- > Antony Corfield > ROAD Project > http://road.aber.ac.uk > tel. 01970 628724 > > > > -----Original Message----- > > From: Rishi K Sharma [mailto:ris...@ah...] > > Sent: 30 May 2008 14:34 > > To: Antony Corfield [awc] > > Subject: RE: [sword-app-tech] File submission error > > > > Yes, it works, if filename starts with character e.g. if i do like > > p12.pdf, i works > > > > Best Regards > > ----------------------------------- > > Rishi K Sharma > > Systems Development Project Officer > > Centre for e-Research > > King's College London > > 0207 848 1971 > > > > > > > > > > -----Original Message----- > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > Sent: 30 May 2008 14:26 > > To: ris...@ah... > > Subject: RE: [sword-app-tech] File submission error > > > > > > I presume that's the problem, does it work if the file name starts > > with a character? > > > > > > Regards, > > Antony > > -- > > Antony Corfield > > ROAD Project > > http://road.aber.ac.uk > > tel. 01970 628724 > > > > > > > -----Original Message----- > > > From: Rishi K Sharma [mailto:ris...@ah...] > > > Sent: 30 May 2008 10:37 > > > To: Antony Corfield [awc] > > > Subject: RE: [sword-app-tech] File submission error > > > > > > Hi Antony, > > > > > > Thanks for your attention, > > > > > > I am using the following url to deposit > > > http://localhost:8080/sword/app/deposit/collection:open > > > > > > also i am using the Fedora Server to ingest. > > > I am using SWORD java API to deposit. > > > > > > I can ingest/deposit pdf, zip etc only thing if pdf name starts > > with > > > number, i am getting > > > the following error > > > > > > The status is: Code: 500, Message: 'Internal Server Error' > > > No valid Entry document was received from the server > > > > > > 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] Starting > > > deposit processing at > > > Fri May 30 10:28:04 BST 2008 by > > > 127.0.0.1 > > > 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] Starting > > > deposit processing at > > > Fri May 30 10:28:05 BST 2008 by > > > 127.0.0.1 > > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] Received > > > filechecksum: > > > 8ab97bd08e108db1ccf42c2ea5b35cbe > > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] Received > > > file checksum header: > > > null > > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > > UserID=sword > > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > > IsAdministrator=true > > > 10:28:12,578 DEBUG > > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > > Looking for collecitons for user gmr > > > with XPath=./users/user[./text() = 'gmr'] > > > 10:28:12,578 DEBUG > > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > > Looking for collecitons for user gmr > > > with XPath=./users/user[./text() = 'gmr'] > > > 10:28:12,609 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > Looking > > > for application/pdf and format > > > null > > > 10:28:12,609 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > Loading > > > org.purl.sword.server.fedora.f > > > ileHandlers.JpegHandler as a file handler > > > 10:28:12,656 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > Loading > > > org.purl.sword.server.fedora.f > > > ileHandlers.METSFileHandler as a file handler > > > 10:28:12,656 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,656 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > Loading > > > org.purl.sword.server.fedora.f > > > ileHandlers.ZipFileHandler as a file handler > > > 10:28:12,671 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,671 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > Loading > > > org.purl.sword.server.fedora.f > > > ileHandlers.ZipMETSFileHandler as a file handler > > > 10:28:12,671 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,687 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > > Couldn't > > > find a file handler so using > > > default > > > 10:28:12,687 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,703 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:12,953 DEBUG > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Finding > > > next > > > pid user=sword password=sword > > > 10:28:13,093 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > copying > > > file > > > 10:28:13,125 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > Filename > > > '12p.pdf' > > > 10:28:13,125 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > > Returning application/pdf > > > 10:28:13,125 DEBUG > > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] No > > > disseminators are added > > > 10:28:13,125 DEBUG > > [org.purl.sword.server.fedora.utils.XMLProperties] > > > Loading > > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > > INF\properties.xml > > > 10:28:13,125 DEBUG > > > [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > > > Uploading > > > C:\Temp\uploaded-file.tmp > > > 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > > > getting > > > http://localhost:8080/fedora/management/upload > > > 10:28:13,453 DEBUG > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready to > > > upload xml > > > 10:28:13,453 DEBUG > > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > > Writing > > > out DC to FOXML > > > 10:28:13,453 DEBUG > > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > > Writing > > > out RELS-EXT to FOXML > > > <?xml version="1.0" encoding="UTF-8"?> > > > <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > > > system:def/foxml#" > > > PID="changeme:205"> > > > <foxml:objectProperties> > > > <foxml:property NAME="http://www.w3.org/1999/02/22-rdf-syntax- > > > ns#type" > > > VALUE="FedoraObject" /> > > > <foxml:property NAME="info:fedora/fedora- > > system:def/model#state" > > > VALUE="Active" /> > > > <foxml:property NAME="info:fedora/fedora- > > system:def/model#label" > > > VALUE="Object created > > > through the SWORD deposit sys > > > tem" /> > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/model#ownerId" VALUE="gmr" /> > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/model#createdDate" > > > VALUE="2008-05-30T09:28:13.078Z" /> > > > <foxml:property NAME="info:fedora/fedora- > > > system:def/view#lastModifiedDate" > > > VALUE="2008-05-30T09:28:13.078Z" /> > > > <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > > deposit" > > > /> > > > </foxml:objectProperties> > > > <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > > > VERSIONABLE="true"> > > > <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core Metadata" > > > MIMETYPE="text/xml"> > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > <foxml:xmlContent> > > > <oai_dc:dc > > > xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > > > <dc:title > > > xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the JISC > > > funded SWORD project</dc:title> > > > <dc:creator > > > xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > > > <dc:format > > > > > xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma > > > t> > > > <dc:identifier > > > xmlns:dc="http://purl.org/dc/elements/1.1/">My > > > deposit</dc:identifier> > > > </oai_dc:dc> > > > </foxml:xmlContent> > > > </foxml:datastreamVersion> > > > </foxml:datastream> > > > <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > > > VERSIONABLE="true"> > > > <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Relationships > > to > > > other objects" > > > MIMETYPE="text/xml"> > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > <foxml:xmlContent> > > > <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > > syntax- > > > ns#"> > > > <rdf:Description rdf:about="info:fedora/changeme:205"> > > > <rel:isMemberOf xmlns:rel="info:fedora/fedora- > > > system:def/relations-external#" > > > rdf:resource="info:fedora/coll > > > ection:open" /> > > > </rdf:Description> > > > </rdf:rdf> > > > </foxml:xmlContent> > > > </foxml:datastreamVersion> > > > </foxml:datastream> > > > <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > > > VERSIONABLE="true"> > > > <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD Generic > > File > > > Upload" > > > MIMETYPE="application/pdf"> > > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > > <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > > > </foxml:datastreamVersion> > > > </foxml:datastream> > > > </foxml:digitalObject> > > > > > > 10:28:14,437 ERROR > > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > > > problems > > > adding the object to the repos > > > itory; fedora.server.errors.ObjectValidityException: > > > DOValidatorXMLSchema returned > > > validation exception. > > > The underlying exception was a org.xml.sax.SAXException. > > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > > '12p.pdf' is not a valid > > > value for 'NCName'." > > > org.purl.sword.base.SWORDException: Had problems adding the object > > to > > > the repository; > > > at > > > > > org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > > > n Source) > > > at > > > > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > > > post(Unknown Source) > > > at > > > org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown Source) > > > at > > > > > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > > icationFilterChain.ja > > > va:269) > > > at > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > > ilterChain.java:188) > > > at > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > > alve.java:213) > > > at > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > > alve.java:174) > > > at > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > > ava:127) > > > at > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > > > ava:117) > > > at > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > > > ve.java:108) > > > at > > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > > > a:151) > > > at > > > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > > > :874) > > > at > > > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p > > > rocessConnection(Http > > > 11BaseProtocol.java > > > :665) > > > at > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > > > int.java:528) > > > at > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > > > lowerWorkerThread.jav > > > a:81) > > > at > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > > > ool.java:689) > > > at java.lang.Thread.run(Thread.java:619) > > > Caused by: fedora.server.errors.ObjectValidityException: > > > DOValidatorXMLSchema returned > > > validation exception. > > > The underlying exception was a org.xml.sax.SAXException. > > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > > '12p.pdf' is not a valid > > > value for 'NCName'." > > > at > > > > > org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > > > .java:222) > > > at > > > > > org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > > > java:129) > > > at > > > > > org.apache.axis.encoding.DeserializationContext.endElement(Deserializ > > > ationContext.java:108 > > > 7) > > > at > > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > > > nt(AbstractSAXParser. > > > java:601) > > > at > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > l.scanEndElement(XMLD > > > ocumentFragmentScan > > > nerImpl.java:1772) > > > at > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > l$FragmentContentDriv > > > er.next(XMLDocument > > > FragmentScannerImpl.java:2923) > > > at > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > > > MLDocumentScannerImpl > > > .java:645) > > > at > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > > > (XMLNSDocumentScanner > > > Impl.java:140) > > > at > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > > l.scanDocument(XMLDoc > > > umentFragmentScanne > > > rImpl.java:508) > > > at > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > > ML11Configuration.jav > > > a:807) > > > at > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > > ML11Configuration.jav > > > a:737) > > > at > > > > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > > > java:107) > > > at > > > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > > > stractSAXParser.java: > > > 1205) > > > at > > > > > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p > > > arse(SAXParserImpl.ja > > > va:522) > > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > > > at > > > > > org.apache.axis.encoding.DeserializationContext.parse(Deserialization > > > Context.java:227) > > > at > > > org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > > > at > > org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > > > at > > > > > org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > > > tandChecker.java:62) > > > at > > > org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > > > at org.apache.axis.client.Call.invokeEngine(Call.java:2784) > > > at org.apache.axis.client.Call.invoke(Call.java:2767) > > > at org.apache.axis.client.Call.invoke(Call.java:2443) > > > at org.apache.axis.client.Call.invoke(Call.java:2366) > > > at org.apache.axis.client.Call.invoke(Call.java:1812) > > > at > > > > > info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > > > t(Unknown > > > Source) > > > ... 20 more > > > 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > > > Exception occured: > > > org.purl.sword.base.SWORDException: Ha > > > d problems adding the object to the repository; > > > org.purl.sword.base.SWORDException: Had problems adding the object > > to > > > the repository; > > > 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > > > org.purl.sword.base.SWORDException: Had problems adding the ob > > > ject to the repository; > > > > > > > > > Best Regards > > > ----------------------------------- > > > Rishi K Sharma > > > Systems Development Project Officer > > > Centre for e-Research > > > King's College London > > > 0207 848 1971 > > > > > > > > > > > > > > > -----Original Message----- > > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > > Sent: 30 May 2008 09:50 > > > To: ris...@kc... > > > Subject: RE: [sword-app-tech] File submission error > > > > > > > > > What errors/stack dump are you getting? > > > What url are you using for deposit? > > > Have you tried depositing to the Fedora test implementation? > > > Have you tried using the test packages? > > > What client are you using to deposit? > > > > > > See: http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > > > > > > > > > > > > Regards, > > > Antony > > > -- > > > Antony Corfield > > > ROAD Project > > > http://road.aber.ac.uk > > > tel. 01970 628724 > > > > > > > > > > -----Original Message----- > > > > From: swo...@li... [mailto:sword- > > > app- > > > > tec...@li...] On Behalf Of Rishi K Sharma > > > > Sent: 29 May 2008 15:00 > > > > To: swo...@li... > > > > Subject: [sword-app-tech] File submission error > > > > > > > > Hi Guys, > > > > > > > > I am trying to use fedora Sword deposit api implementation and i > > am > > > > not able to ingest > > > > file which starting with number like (9.pdf or 9pm.pdf), > > > > is there any way so that i can ingest these files into fedora > > using > > > > Sword deposit API. > > > > > > > > > > > > > > > > Best Regards > > > > ----------------------------------- > > > > Rishi K Sharma > > > > Systems Development Project Officer > > > > Centre for e-Research > > > > King's College London > > > > 0207 848 1971 > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > -- > > > -- > > > > ---- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > sword-app-tech mailing list > > > > swo...@li... > > > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Antony C. [awc] <aw...@ab...> - 2008-05-30 13:38:08
|
I have had a similar problem when depositing files that have the same name but different extensions. If Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 > -----Original Message----- > From: Rishi K Sharma [mailto:ris...@ah...] > Sent: 30 May 2008 14:34 > To: Antony Corfield [awc] > Subject: RE: [sword-app-tech] File submission error > > Yes, it works, if filename starts with character e.g. if i do like > p12.pdf, i works > > Best Regards > ----------------------------------- > Rishi K Sharma > Systems Development Project Officer > Centre for e-Research > King's College London > 0207 848 1971 > > > > > -----Original Message----- > From: Antony Corfield [awc] [mailto:aw...@ab...] > Sent: 30 May 2008 14:26 > To: ris...@ah... > Subject: RE: [sword-app-tech] File submission error > > > I presume that's the problem, does it work if the file name starts > with a character? > > > Regards, > Antony > -- > Antony Corfield > ROAD Project > http://road.aber.ac.uk > tel. 01970 628724 > > > > -----Original Message----- > > From: Rishi K Sharma [mailto:ris...@ah...] > > Sent: 30 May 2008 10:37 > > To: Antony Corfield [awc] > > Subject: RE: [sword-app-tech] File submission error > > > > Hi Antony, > > > > Thanks for your attention, > > > > I am using the following url to deposit > > http://localhost:8080/sword/app/deposit/collection:open > > > > also i am using the Fedora Server to ingest. > > I am using SWORD java API to deposit. > > > > I can ingest/deposit pdf, zip etc only thing if pdf name starts > with > > number, i am getting > > the following error > > > > The status is: Code: 500, Message: 'Internal Server Error' > > No valid Entry document was received from the server > > > > 10:28:04,125 DEBUG [org.purl.sword.server.DepositServlet] Starting > > deposit processing at > > Fri May 30 10:28:04 BST 2008 by > > 127.0.0.1 > > 10:28:05,187 DEBUG [org.purl.sword.server.DepositServlet] Starting > > deposit processing at > > Fri May 30 10:28:05 BST 2008 by > > 127.0.0.1 > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] Received > > filechecksum: > > 8ab97bd08e108db1ccf42c2ea5b35cbe > > 10:28:12,234 DEBUG [org.purl.sword.server.DepositServlet] Received > > file checksum header: > > null > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > UserID=sword > > 10:28:12,515 DEBUG [org.purl.sword.server.fedora.FedoraServer] > > IsAdministrator=true > > 10:28:12,578 DEBUG > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > Looking for collecitons for user gmr > > with XPath=./users/user[./text() = 'gmr'] > > 10:28:12,578 DEBUG > > [org.purl.sword.server.fedora.baseExtensions.XMLServiceDocument] > > Looking for collecitons for user gmr > > with XPath=./users/user[./text() = 'gmr'] > > 10:28:12,609 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > Looking > > for application/pdf and format > > null > > 10:28:12,609 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,656 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > Loading > > org.purl.sword.server.fedora.f > > ileHandlers.JpegHandler as a file handler > > 10:28:12,656 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,656 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > Loading > > org.purl.sword.server.fedora.f > > ileHandlers.METSFileHandler as a file handler > > 10:28:12,656 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,656 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > Loading > > org.purl.sword.server.fedora.f > > ileHandlers.ZipFileHandler as a file handler > > 10:28:12,671 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,671 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > Loading > > org.purl.sword.server.fedora.f > > ileHandlers.ZipMETSFileHandler as a file handler > > 10:28:12,671 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,687 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.FileHandlerFactory] > > Couldn't > > find a file handler so using > > default > > 10:28:12,687 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,703 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:12,953 DEBUG > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Finding > > next > > pid user=sword password=sword > > 10:28:13,093 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > copying > > file > > 10:28:13,125 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > Filename > > '12p.pdf' > > 10:28:13,125 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] > > Returning application/pdf > > 10:28:13,125 DEBUG > > [org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler] No > > disseminators are added > > 10:28:13,125 DEBUG > [org.purl.sword.server.fedora.utils.XMLProperties] > > Loading > > C:\apache-tomcat-5.5.25\webapps\sword\WEB- > > INF\properties.xml > > 10:28:13,125 DEBUG > > [org.purl.sword.server.fedora.fedoraObjects.LocalDatastream] > > Uploading > > C:\Temp\uploaded-file.tmp > > 10:28:13,125 DEBUG [fedora.client.FedoraClient] FedoraClient is > > getting > > http://localhost:8080/fedora/management/upload > > 10:28:13,453 DEBUG > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Ready to > > upload xml > > 10:28:13,453 DEBUG > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > Writing > > out DC to FOXML > > 10:28:13,453 DEBUG > > [org.purl.sword.server.fedora.fedoraObjects.InlineDatastream] > Writing > > out RELS-EXT to FOXML > > <?xml version="1.0" encoding="UTF-8"?> > > <foxml:digitalObject xmlns:foxml="info:fedora/fedora- > > system:def/foxml#" > > PID="changeme:205"> > > <foxml:objectProperties> > > <foxml:property NAME="http://www.w3.org/1999/02/22-rdf-syntax- > > ns#type" > > VALUE="FedoraObject" /> > > <foxml:property NAME="info:fedora/fedora- > system:def/model#state" > > VALUE="Active" /> > > <foxml:property NAME="info:fedora/fedora- > system:def/model#label" > > VALUE="Object created > > through the SWORD deposit sys > > tem" /> > > <foxml:property NAME="info:fedora/fedora- > > system:def/model#ownerId" VALUE="gmr" /> > > <foxml:property NAME="info:fedora/fedora- > > system:def/model#createdDate" > > VALUE="2008-05-30T09:28:13.078Z" /> > > <foxml:property NAME="info:fedora/fedora- > > system:def/view#lastModifiedDate" > > VALUE="2008-05-30T09:28:13.078Z" /> > > <foxml:extproperty NAME="org.purl.sword.slug" VALUE="My > deposit" > > /> > > </foxml:objectProperties> > > <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" > > VERSIONABLE="true"> > > <foxml:datastreamVersion ID="DC.0" LABEL="Dublin Core Metadata" > > MIMETYPE="text/xml"> > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > <foxml:xmlContent> > > <oai_dc:dc > > xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> > > <dc:title > > xmlns:dc="http://purl.org/dc/elements/1.1/">Uploaded by the JISC > > funded SWORD project</dc:title> > > <dc:creator > > xmlns:dc="http://purl.org/dc/elements/1.1/">gmr</dc:creator> > > <dc:format > > > xmlns:dc="http://purl.org/dc/elements/1.1/">application/pdf</dc:forma > > t> > > <dc:identifier > > xmlns:dc="http://purl.org/dc/elements/1.1/">My > > deposit</dc:identifier> > > </oai_dc:dc> > > </foxml:xmlContent> > > </foxml:datastreamVersion> > > </foxml:datastream> > > <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" > > VERSIONABLE="true"> > > <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Relationships > to > > other objects" > > MIMETYPE="text/xml"> > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > <foxml:xmlContent> > > <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf- > syntax- > > ns#"> > > <rdf:Description rdf:about="info:fedora/changeme:205"> > > <rel:isMemberOf xmlns:rel="info:fedora/fedora- > > system:def/relations-external#" > > rdf:resource="info:fedora/coll > > ection:open" /> > > </rdf:Description> > > </rdf:rdf> > > </foxml:xmlContent> > > </foxml:datastreamVersion> > > </foxml:datastream> > > <foxml:datastream ID="12p.pdf" STATE="A" CONTROL_GROUP="M" > > VERSIONABLE="true"> > > <foxml:datastreamVersion ID="12p.pdf.0" LABEL="SWORD Generic > File > > Upload" > > MIMETYPE="application/pdf"> > > <foxml:contentDigest TYPE="DISABLED" DIGEST="none" /> > > <foxml:contentLocation TYPE="URL" REF="uploaded://443" /> > > </foxml:datastreamVersion> > > </foxml:datastream> > > </foxml:digitalObject> > > > > 10:28:14,437 ERROR > > [org.purl.sword.server.fedora.fedoraObjects.FedoraObject] Had > > problems > > adding the object to the repos > > itory; fedora.server.errors.ObjectValidityException: > > DOValidatorXMLSchema returned > > validation exception. > > The underlying exception was a org.xml.sax.SAXException. > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > '12p.pdf' is not a valid > > value for 'NCName'." > > org.purl.sword.base.SWORDException: Had problems adding the object > to > > the repository; > > at > > > org.purl.sword.server.fedora.fedoraObjects.FedoraObject.ingest(Unknow > > n Source) > > at > > > org.purl.sword.server.fedora.fileHandlers.DefaultFileHandler.ingestDe > > post(Unknown Source) > > at > > org.purl.sword.server.fedora.FedoraServer.doDeposit(Unknown Source) > > at > > > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:240) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > icationFilterChain.ja > > va:269) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > ilterChain.java:188) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > alve.java:213) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > alve.java:174) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > ava:127) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > > ava:117) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > > ve.java:108) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > > a:151) > > at > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > > :874) > > at > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p > > rocessConnection(Http > > 11BaseProtocol.java > > :665) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo > > int.java:528) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol > > lowerWorkerThread.jav > > a:81) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP > > ool.java:689) > > at java.lang.Thread.run(Thread.java:619) > > Caused by: fedora.server.errors.ObjectValidityException: > > DOValidatorXMLSchema returned > > validation exception. > > The underlying exception was a org.xml.sax.SAXException. > > The message was "URI=null Line=37: cvc-datatype-valid.1.2.1: > > '12p.pdf' is not a valid > > value for 'NCName'." > > at > > > org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder > > .java:222) > > at > > > org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. > > java:129) > > at > > > org.apache.axis.encoding.DeserializationContext.endElement(Deserializ > > ationContext.java:108 > > 7) > > at > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme > > nt(AbstractSAXParser. > > java:601) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > l.scanEndElement(XMLD > > ocumentFragmentScan > > nerImpl.java:1772) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > l$FragmentContentDriv > > er.next(XMLDocument > > FragmentScannerImpl.java:2923) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X > > MLDocumentScannerImpl > > .java:645) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > > (XMLNSDocumentScanner > > Impl.java:140) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > > l.scanDocument(XMLDoc > > umentFragmentScanne > > rImpl.java:508) > > at > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > ML11Configuration.jav > > a:807) > > at > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X > > ML11Configuration.jav > > a:737) > > at > > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. > > java:107) > > at > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab > > stractSAXParser.java: > > 1205) > > at > > > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p > > arse(SAXParserImpl.ja > > va:522) > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) > > at > > > org.apache.axis.encoding.DeserializationContext.parse(Deserialization > > Context.java:227) > > at > > org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > > at > org.apache.axis.Message.getSOAPEnvelope(Message.java:435) > > at > > > org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > > tandChecker.java:62) > > at > > org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > > at org.apache.axis.client.Call.invokeEngine(Call.java:2784) > > at org.apache.axis.client.Call.invoke(Call.java:2767) > > at org.apache.axis.client.Call.invoke(Call.java:2443) > > at org.apache.axis.client.Call.invoke(Call.java:2366) > > at org.apache.axis.client.Call.invoke(Call.java:1812) > > at > > > info.fedora.www.definitions._1._0.api.ManagementSoapBindingStub.inges > > t(Unknown > > Source) > > ... 20 more > > 10:28:14,484 ERROR [org.purl.sword.server.fedora.FedoraServer] > > Exception occured: > > org.purl.sword.base.SWORDException: Ha > > d problems adding the object to the repository; > > org.purl.sword.base.SWORDException: Had problems adding the object > to > > the repository; > > 10:28:14,484 ERROR [org.purl.sword.server.DepositServlet] > > org.purl.sword.base.SWORDException: Had problems adding the ob > > ject to the repository; > > > > > > Best Regards > > ----------------------------------- > > Rishi K Sharma > > Systems Development Project Officer > > Centre for e-Research > > King's College London > > 0207 848 1971 > > > > > > > > > > -----Original Message----- > > From: Antony Corfield [awc] [mailto:aw...@ab...] > > Sent: 30 May 2008 09:50 > > To: ris...@kc... > > Subject: RE: [sword-app-tech] File submission error > > > > > > What errors/stack dump are you getting? > > What url are you using for deposit? > > Have you tried depositing to the Fedora test implementation? > > Have you tried using the test packages? > > What client are you using to deposit? > > > > See: http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access > > > > > > > > Regards, > > Antony > > -- > > Antony Corfield > > ROAD Project > > http://road.aber.ac.uk > > tel. 01970 628724 > > > > > > > -----Original Message----- > > > From: swo...@li... [mailto:sword- > > app- > > > tec...@li...] On Behalf Of Rishi K Sharma > > > Sent: 29 May 2008 15:00 > > > To: swo...@li... > > > Subject: [sword-app-tech] File submission error > > > > > > Hi Guys, > > > > > > I am trying to use fedora Sword deposit api implementation and i > am > > > not able to ingest > > > file which starting with number like (9.pdf or 9pm.pdf), > > > is there any way so that i can ingest these files into fedora > using > > > Sword deposit API. > > > > > > > > > > > > Best Regards > > > ----------------------------------- > > > Rishi K Sharma > > > Systems Development Project Officer > > > Centre for e-Research > > > King's College London > > > 0207 848 1971 > > > > > > > > > > > > > > > ----------------------------------------------------------------- > -- > > -- > > > ---- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > sword-app-tech mailing list > > > swo...@li... > > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Rishi K S. <ris...@kc...> - 2008-05-29 13:58:39
|
Hi Guys, I am trying to use fedora Sword deposit api implementation and i am not able to ingest file which starting with number like (9.pdf or 9pm.pdf), is there any way so that i can ingest these files into fedora using Sword deposit API. Best Regards ----------------------------------- Rishi K Sharma Systems Development Project Officer Centre for e-Research King's College London 0207 848 1971 |
From: Antony C. [awc] <aw...@ab...> - 2008-05-20 13:20:28
|
We're using SWORD to deposit research data generated by an intelligent 'Robot Scientist', and testing with Fedora, Dspace and Eprints repositories. SWORD functionality that allowed the creation of Communities and Collections would be useful as would updates and deletions of items. Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 > -----Original Message----- > From: swo...@li... [mailto:sword-app- > tec...@li...] On Behalf Of Ed Summers > Sent: 20 May 2008 13:54 > To: swo...@li... > Subject: [sword-app-tech] sword and oai-ore > > I imagine some of you are on the OAI-ORE discussion list, but I > figured it couldn't hurt to let you know about the discussion about > SWORD and OAI-ORE going on over there: > > http://groups.google.com/group/oai- > ore/browse_thread/thread/9db65f427b096cf5 > > In short, there is already some exciting work going by Rob Sanderson, > Richard Jones and Simeon Warner. Also there is an interesting > question > from Sean Gillies (which I also wondered about recently) about the > rationale behind not requiring feed representations for collections > [1]. Did you basically want to leave the door open to implementors to > do what they wanted, rather than being too prescriptive? > > //Ed > > PS. The repository team at the Library of Congress is looking to > experiment a bit with SWORD in the near future...so I'm wondering > about what the future of SWORD is looking like, and if there is > anything we can do to help the effort. > > [1] > http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_1 > .2#10._Listing_Collections_-_Not_Used > > --------------------------------------------------------------------- > ---- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech |
From: Jim D. <jim...@po...> - 2008-05-20 13:08:45
|
Hi Ed, 2008/5/20 Ed Summers <eh...@po...>: > I imagine some of you are on the OAI-ORE discussion list, but I > figured it couldn't hurt to let you know about the discussion about > SWORD and OAI-ORE going on over there: > > http://groups.google.com/group/oai-ore/browse_thread/thread/9db65f427b096cf5 > > In short, there is already some exciting work going by Rob Sanderson, > Richard Jones and Simeon Warner. Also there is an interesting question > from Sean Gillies (which I also wondered about recently) about the > rationale behind not requiring feed representations for collections > [1]. Did you basically want to leave the door open to implementors to > do what they wanted, rather than being too prescriptive? That was exactly the motivation. The longer answer is that we were aware that much of the world would look at SWORD wondering how they could implement it in a single CGI; we had adoption as a higher priority than promoting web orientation. Of course, the world has turned faster in that direction than we might have expected, so it's reasonable to re-examine those decisions. > PS. The repository team at the Library of Congress is looking to > experiment a bit with SWORD in the near future...so I'm wondering > about what the future of SWORD is looking like, and if there is > anything we can do to help the effort. Julie's probably best placed to answer this. I'm excited about the LoC news though! jim |
From: Ed S. <eh...@po...> - 2008-05-20 12:53:57
|
I imagine some of you are on the OAI-ORE discussion list, but I figured it couldn't hurt to let you know about the discussion about SWORD and OAI-ORE going on over there: http://groups.google.com/group/oai-ore/browse_thread/thread/9db65f427b096cf5 In short, there is already some exciting work going by Rob Sanderson, Richard Jones and Simeon Warner. Also there is an interesting question from Sean Gillies (which I also wondered about recently) about the rationale behind not requiring feed representations for collections [1]. Did you basically want to leave the door open to implementors to do what they wanted, rather than being too prescriptive? //Ed PS. The repository team at the Library of Congress is looking to experiment a bit with SWORD in the near future...so I'm wondering about what the future of SWORD is looking like, and if there is anything we can do to help the effort. [1] http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_1.2#10._Listing_Collections_-_Not_Used |
From: Jim D. <jim...@po...> - 2008-05-02 08:36:14
|
2008/5/2 Stuart Lewis <sd...@ab...>: > > Anyway, I am thinking to apply the SWORD to a following model. > > 1. Harvest (OAI-PMH) metadata from Japanese repositories. > > 2. Enrich or modify metadata for each item. > > 3. Return difference in metadata (enriched metadata) > > to original repositories. > > > > In this case I need to implement "updating items" function. > > Is there anyone who have already tried this kind of work? > > > > I have found some description about these additional functions > > in Julie's paper (Ariadne 54) and her presentation at OR08 > > but would like to know more the current status. > > We are hoping to look into the possibility of adding this functionality > (and > DELETE) over the next few months. APP of which SWORD is an extension > supports these functions, so it is likely we will make SWORD support them > too. It might be useful to kick the update / delete discussion off now. APP gives clients URLs of individual resources that they might be able to use to PUT and DELETE representations to. What should SWORD do to support update and delete? 1. Give the URL of the package and allow update to the package (inefficient and unsafe, especially for the kind of functionality Kazu wants to implement). 2. Give the URL to a package manifest (ORE?) that can be dereferenced to find the URLs of the components, that clients might be able to use to PUT and DELETE. 3. Stick to the current implementation of allowing a "status page" URL to be returned, and expect that clients will auto-discover the manifest (ORE?) from the representation at that URL. (then as 2.) Any other possibilities? jim |
From: Stuart L. <sd...@ab...> - 2008-05-02 08:18:27
|
Hi, > Anyway, I am thinking to apply the SWORD to a following model. > 1. Harvest (OAI-PMH) metadata from Japanese repositories. > 2. Enrich or modify metadata for each item. > 3. Return difference in metadata (enriched metadata) > to original repositories. > > In this case I need to implement "updating items" function. > Is there anyone who have already tried this kind of work? > > I have found some description about these additional functions > in Julie's paper (Ariadne 54) and her presentation at OR08 > but would like to know more the current status. We are hoping to look into the possibility of adding this functionality (and DELETE) over the next few months. APP of which SWORD is an extension supports these functions, so it is likely we will make SWORD support them too. Thanks, Stuart _________________________________________________________________ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: Stu...@ab... Ffon / Tel: (01970) 622860 _________________________________________________________________ |
From: Kazutsuna Y. <ya...@ni...> - 2008-05-02 01:48:05
|
Hi Antony, ** On Thu, 1 May 2008 09:14:27 +0100 ** "Antony Corfield [awc]" <aw...@ab...> writes: > Have you tried depositing the test packages using the eprints test implementation? > http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access Thank you very much for your information. I could realize the differences between the test package and my created XML file in case of EP3 XML format. The XML file downloaded just from EPrints wasn't wrapped by the following tags. I feel ashamed of the easy mistake^^;. ---------------------------------------------- <?xml version="1.0" encoding="utf-8" ?> <eprints> .... </eprint> </eprints> ---------------------------------------------- Anyway, I am thinking to apply the SWORD to a following model. 1. Harvest (OAI-PMH) metadata from Japanese repositories. 2. Enrich or modify metadata for each item. 3. Return difference in metadata (enriched metadata) to original repositories. In this case I need to implement "updating items" function. Is there anyone who have already tried this kind of work? I have found some description about these additional functions in Julie's paper (Ariadne 54) and her presentation at OR08 but would like to know more the current status. # Please let me know if this kind of question is out of the theme # of this ML. -- Kazu |
From: Antony C. [awc] <aw...@ab...> - 2008-05-01 08:16:21
|
Have you tried depositing the test packages using the eprints test implementation? http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_access Regards, Antony -- Antony Corfield ROAD Project http://road.aber.ac.uk tel. 01970 628724 > -----Original Message----- > From: swo...@li... [mailto:sword-app- > tec...@li...] On Behalf Of Kazutsuna YAMAJI > Sent: 01 May 2008 01:20 > To: swo...@li... > Cc: ya...@ni... > Subject: Re: [sword-app-tech] How to prepare EPrints ZIP file > > Hi Stuart, > > Thank you very much for your reply. > > ** On Wed, 30 Apr 2008 14:56:52 +0100 > ** Stuart Lewis <sd...@ab...> writes: > > > When depositing the item, are you setting the MIME type? > > > > "application/zip" > > Yes. > > > I'm not sure, but you might also need to set the namespace: > > > > "X-Format-Namespace: METS" > > I have been only writing as "METS" in the Format Namespace. I was set > it as you mentioned the above, however, I obtained a different error. > --------------------------------------------------------------------- > status: The status is: Code: 415, Message: 'Unsupported Media Type' > --------------------------------------------------------------------- > > Does anyone have a succeeded ZIP file for EPrints3 and SWORD Client > combination? > > thanks, > -- > Kazu |