Hi Domingo,

This looks quite a strange problem.  The stack trace suggests that when it has 
downloaded the epdcx (eprints dublin core) schema, it has become corrupted 
somehow:

 - http://purl.org/eprint/epdcx/xsd/2006-11-16/epdcx.xsd
 - Caused by: org.jdom.input.JDOMParseException: Error on line 132 of document 
http://purl.org/eprint/epdcx/xsd/2006-11-16/epdcx.xsd: src-resolve: Cannot 
resolve the name 'xml:lang' to a(n) 'attribute declaration' component.

This problem may go away on its own once it manages to get a good copy of the 
schema - maybe it has cached a bad one?

Alternatively, you can host copies of these files on your DSpace server, and 
reference them from the mets.xml, for example:

 - file:///dspace/schema/epdcx.xsd instead of 
http://purl.org/eprint/epdcx/xsd/2006-11-16/epdcx.xsd

(you'll have to download and store these schemas in the location you specify)

You'll find that this probably makes your deposits a bit quicker too.

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928



On 24/11/2010, at 9:48 PM, Domingo Iglesias wrote:

> Hello
> 
> We have a parsing problem when ingesting documents to our repository via 
> sword interface. The strange thing is that It was working properly until last 
> week and we are "sure" we haven't change anything in the installation.
> 
> Here is the dspace.log output:
> 
> 2010-11-24 08:48:28,688 ERROR org.dspace.sword.SWORDMETSIngester @ caught 
> exception: 
> org.dspace.content.crosswalk.MetadataValidationException: Error validating 
> METS in org.dspace.content.packager.packageutils$unclosableinputstr...@1df55f2
>         at 
> org.dspace.content.packager.METSManifest.create(METSManifest.java:301)
>         at 
> org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:233)
>         at 
> org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:115)
>         at 
> org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:179)
>         at org.dspace.sword.DepositManager.deposit(DepositManager.java:173)
>         at 
> org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:149)
>         at 
> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:336)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>         at 
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
>         at 
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
>         at 
> com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
>         at 
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
>         at 
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
>         at 
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
>         at 
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>         at 
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.jdom.input.JDOMParseException: Error on line 132 of document 
> http://purl.org/eprint/epdcx/xsd/2006-11-16/epdcx.xsd: src-resolve: Cannot 
> resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
>         at 
> org.dspace.content.packager.METSManifest.create(METSManifest.java:290)
>         ... 17 more
> Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the 
> name 'xml:lang' to a(n) 'attribute declaration' component.
>         at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAttributeTraverser.traverseLocal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAttributeGroupTraverser.traverseGlobal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAttributeGroupTraverser.traverseLocal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseSimpleContent(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
>         at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
> Source)
>         at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
>         ... 19 more
> 2010-11-24 08:48:28,689 ERROR org.dspace.sword.DSpaceSWORDServer @ caught 
> exception:
> org.dspace.sword.DSpaceSWORDException: 
> org.dspace.content.crosswalk.MetadataValidationException: Error validating 
> METS in org.dspace.content.packager.packageutils$unclosableinputstr...@1df55f2
>         at 
> org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:171)
>         at 
> org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:179)
>         at org.dspace.sword.DepositManager.deposit(DepositManager.java:173)
>         at 
> org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:149)
>         at 
> org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:336)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>         at 
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
>         at 
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
>         at 
> com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
>         at 
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
>         at 
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
>         at 
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
>         at 
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>         at 
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.dspace.content.crosswalk.MetadataValidationException: Error 
> validating METS in 
> org.dspace.content.packager.packageutils$unclosableinputstr...@1df55f2
>         at 
> org.dspace.content.packager.METSManifest.create(METSManifest.java:301)
>         at 
> org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:233)
>         at 
> org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:115)
>         ... 15 more
> Caused by: org.jdom.input.JDOMParseException: Error on line 132 of document 
> http://purl.org/eprint/epdcx/xsd/2006-11-16/epdcx.xsd: src-resolve: Cannot 
> resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
>         at 
> org.dspace.content.packager.METSManifest.create(METSManifest.java:290)
>         ... 17 more
> Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the 
> name 'xml:lang' to a(n) 'attribute declaration' component.
>         at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAttributeTraverser.traverseLocal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAttributeGroupTraverser.traverseGlobal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAttributeGroupTraverser.traverseLocal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseSimpleContent(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
>         at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
> Source)
>         at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
>         ... 19 more
> 2010-11-24 08:48:28,693 ERROR org.purl.sword.server.DepositServlet @ 
> org.purl.sword.base.SWORDException: There was a problem depositing the item
> 
> Any ideas?
> Thanks in advance
> 
> ---
> Domingo Iglesias
> Universitat de Barcelona
> Area de Tecnologies
> 
> <ATT00001..txt><ATT00002..txt>



------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to