Well org.apache.abdera is the Atom XML parser, and it's an ' ArrayIndexOutOfBoundsException'
I'm guessing that you need to check the exact formatting of the SWORD content you're trying to feed into DSpace. cheers stuart -- ...let us be heard from red core to black sky On Thu, Jun 9, 2016 at 2:49 AM, Alex Fletcher <[email protected]> wrote: > I've been working with someone at another company to get a Swordv2 > connection going between their client and our 5.5 DSpace server. > > When they connect and try to upload something to a particular collection, > the server throws the following error: > > May 27, 2016 12:29:08 PM org.apache.catalina.core.StandardWrapperValve > invoke > SEVERE: Servlet.service() for servlet [collection] in context with path > [/swordv2] threw exception > org.apache.abdera.parser.ParseException: > java.lang.ArrayIndexOutOfBoundsException > at > org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:128) > at > org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:65) > at > org.swordapp.server.SwordAPIEndpoint.addDepositPropertiesFromEntry(SwordAPIEndpoint.java:355) > at org.swordapp.server.CollectionAPI.post(CollectionAPI.java:156) > at > org.swordapp.server.servlets.CollectionServletDefault.doPost(CollectionServletDefault.java:48) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) > at > org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193) > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) > at > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.ArrayIndexOutOfBoundsException > at java.lang.System.arraycopy(Native Method) > at java.io.PushbackInputStream.unread(PushbackInputStream.java:235) > at > org.apache.abdera.i18n.text.io.DynamicPushbackInputStream.unread(DynamicPushbackInputStream.java:91) > at > org.apache.abdera.i18n.text.io.PeekAheadInputStream.peek(PeekAheadInputStream.java:61) > at > org.apache.abdera.i18n.text.io.PeekAheadInputStream.peek(PeekAheadInputStream.java:52) > at > org.apache.abdera.i18n.text.io.CharsetSniffingInputStream.detectEncoding(CharsetSniffingInputStream.java:110) > at > org.apache.abdera.parser.stax.util.FOMSniffingInputStream.detectEncoding(FOMSniffingInputStream.java:39) > at > org.apache.abdera.i18n.text.io.CharsetSniffingInputStream.<init>(CharsetSniffingInputStream.java:81) > at > org.apache.abdera.i18n.text.io.CharsetSniffingInputStream.<init>(CharsetSniffingInputStream.java:74) > at > org.apache.abdera.parser.stax.util.FOMSniffingInputStream.<init>(FOMSniffingInputStream.java:35) > at > org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:107) > ... 26 more > > The configuration file (swordv2-server.cfg) has the following variables > set: > > url = {dspace.url}/swordv2 > # > servicedocument.url = > https://qspace-prod.library.queensu.ca/swordv2/servicedocument > # > accept-packaging.collection.METSDSpaceSIP = > http://purl.org/net/sword/package/METSDSpaceSIP > accept-packaging.collection.SimpleZip = > http://purl.org/net/sword/package/SimpleZip > accept-packaging.collection.Binary = > http://purl.org/net/sword/package/Binary > # > accept-packaging.item.METSDSpaceSIP = > http://purl.org/net/sword/package/METSDSpaceSIP > accept-packaging.item.SimpleZip = > http://purl.org/net/sword/package/SimpleZip > accept-packaging.item.Binary = http://purl.org/net/sword/package/Binary > # > accepts = */* > # > expose-communities = false > allow-community-deposit = false > # > max-upload-size = 0 > # > keep-original-package = true > # > on-behalf-of.enable = true > # > verbose-description.receipt.enable = false > # > verbose-description.error.enable = true > # > error.alternate.url = http://qspace-prod.library.queensu.ca/contact > # > error.alternate.content-type = text/html > # > generator.version = 2.0 > # > auth-type = Basic > # > upload.tempdir = /home/dspace/qspace/upload > # > updated.field = dc.date.updated > # > slug.field = dc.identifier.slug > # > author.field = dc.contributor.author > # > title.field = dc.title > # > disseminate-packaging.SimpleZip = > http://purl.org/net/sword/package/SimpleZip > # > plugin.named.org.dspace.sword2.SwordContentIngester = \ > org.dspace.sword2.SimpleZipContentIngester = > http://purl.org/net/sword/package/SimpleZip, \ > org.dspace.sword2.SwordMETSContentIngester = > http://purl.org/net/sword/package/METSDSpaceSIP, \ > org.dspace.sword2.BinaryContentIngester = > http://purl.org/net/sword/package/Binary > # > plugin.single.org.dspace.sword2.SwordEntryIngester = \ > org.dspace.sword2.SimpleDCEntryIngester > plugin.single.org.dspace.sword2.SwordEntryDisseminator = \ > org.dspace.sword2.SimpleDCEntryDisseminator > # > plugin.named.org.dspace.sword2.SwordContentDisseminator = \ > org.dspace.sword2.SimpleZipContentDisseminator = > http://purl.org/net/sword/package/SimpleZip, \ > org.dspace.sword2.FeedContentDisseminator = application/atom+xml, \ > org.dspace.sword2.FeedContentDisseminator = > application/atom+xml_type_feed > # > plugin.named.org.dspace.sword2.SwordStatementDisseminator = \ > org.dspace.sword2.AtomStatementDisseminator = atom, \ > org.dspace.sword2.OreStatementDisseminator = rdf, \ > org.dspace.sword2.AtomStatementDisseminator = > application/atom+xml_type_feed, \ > org.dspace.sword2.OreStatementDisseminator = application/rdf+xml > # > statement.bundles = ORIGINAL, SWORD, LICENSE > # > plugin.single.org.dspace.sword2.WorkflowManager = \ > org.dspace.sword2.WorkflowManagerDefault > # > workflowmanagerdefault.always-update-metadata = true > workflowmanagerdefault.file-replace.enable = false > # > restore-mode.enable = false > # > simpledc.abstract = dc.description.abstract > simpledc.accessRights = dc.rights > simpledc.alternative = dc.title.alternative > simpledc.available = dc.date.available > simpledc.bibliographicCitation = dc.identifier.citation > simpledc.contributor = dc.contributor > simpledc.coverage = dc.coverage > simpledc.created = dc.date.created > simpledc.creator = dc.contributor.author > simpledc.date = dc.date > simpledc.dateAccepted = dc.date.accepted > simpledc.dateSubmitted = dc.date.submitted > simpledc.description = dc.description > simpledc.extent = dc.format.extent > simpledc.format = dc.format > simpledc.identifier = dc.identifier > simpledc.isPartOf = dc.relation.ispartof > simpledc.isReferencedBy = dc.relation.isreferencedby > simpledc.isReplacedBy = dc.relation.isreplacedby > simpledc.isRequiredBy = dc.relation.isrequiredby > simpledc.issued = dc.date.issued > simpledc.medium = dc.format.medium > simpledc.modified = dc.date.modified > simpledc.provenance = dc.description.provenance > simpledc.publisher = dc.publisher > simpledc.references = dc.relation.references > simpledc.relation = dc.relation > simpledc.replaces = dc.relation.replaces > simpledc.requires = dc.relation.requires > simpledc.rights = dc.rights > simpledc.rightsHolder = dc.rights > simpledc.source = dc.source > simpledc.spatial = dc.coverage.spatial > simpledc.subject = dc.subject > simpledc.temporal = dc.coverage.temporal > simpledc.title = dc.title > simpledc.type = dc.type > # > atom.author = dc.contributor.author > atom.published = dc.date.created > atom.rights = dc.rights > atom.summary = dc.description.abstract > atom.title = dc.title > atom.updated = dc.date.created > # > metadata.replaceable = dc.description.abstract, \ > dc.rights, \ > dc.title.alternative, \ > dc.identifier.citation, \ > dc.contributor, \ > dc.coverage, \ > dc.contributor.author, \ > dc.date, \ > dc.description, \ > dc.format.extent, \ > dc.format, dc.identifier, \ > dc.relation.ispartof, \ > > dc.relation.isreferencedby, \ > dc.relation.isreplacedby, \ > dc.relation.isrequiredby, \ > dc.language, \ > dc.format.medium, \ > dc.date.modified, \ > dc.publisher, \ > dc.relation.references, \ > dc.relation, \ > dc.relation.replaces, \ > dc.relation.requires, \ > dc.source, \ > dc.coverage.spatial, \ > dc.subject, \ > dc.coverage.temporal, \ > dc.title, \ > dc.type > # > multipart.entry-first = false > # > workflow.notify = true > # > versions.keep = true > state.workspace.uri = > http://qspace-prod.library.queensu.ca/state/inprogress > state.workspace.description = The item is in the user workspace > state.workflow.uri = http://qspace-prod.library.queensu.ca/state/inreview > state.workflow.description = The item is undergoing review prior to > acceptance to the archive > state.archive.uri = http://qspace-prod.library.queensu.ca/state/archived > state.archive.description = The item has been archived > state.withdrawn.uri = > http://qspace-prod.library.queensu.ca/state/withdrawn > state.withdrawn.description = The item has been withdrawn from the archive > and is no longer available > # > workspace.url-template = > http://qspace-prod.library.queensu.ca/submit?workspaceID=#wsid# > > I've been fighting with this, and without a Sword v2 client of my own, > it's challenging to debug, and moreso when the errors are unusual and odd > like above. > > I have attached an image of the error that came up at the client end. > > Any advice or help on this one, as I'm completely stumped at this point in > time :( > > Alex > > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
