[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] {Disarmed} Problem by depositing in EPrints repository with JAVA SWORD Client v2


since at least one month I am trying to use the Java SWORD Client (for
SWORDv2) in order to deposit files in an EPrints repository. The deposit
part works correct and I get the following entry as an answer from server:

<?xml version="1.0" encoding="utf-8" ?>
<entry xmlns="http://www.w3.org/2005/Atom";  
<link rel="self"
<link rel="edit" href="http://altar.tu-darmstadt.de/id/eprint/26";  />
<link rel="edit-media"
href="http://altar.tu-darmstadt.de/id/eprint/26/contents";  />
<link rel="contents"
href="http://altar.tu-darmstadt.de/id/eprint/26/contents";  />
<link rel="alternate" href="http://altar.tu-darmstadt.de/id/eprint/26";  />
<published />
<category term="article" label="Article"
scheme="http://altar.tu-darmstadt.de/data/eprint/type";  />
<category term="buffer" label="Under Review"
scheme="http://eprints.org/ep2/data/2.0/eprint/eprint_status";  />
<link rel="http://purl.org/net/sword/terms/statement";  
href="http://altar.tu-darmstadt.de/id/eprint/26";  />
href="http://eprints.org/ep2/data/2.0/eprint/eprint_status/buffer";  />
<sword:stateDescription>This item is in review. It will not appear in
the repository until it has been approved by an
<sword:originalDeposit href="http://altar.tu-darmstadt.de/id/eprint/26";>
<sword:depositedOn />
<title type="xhtml">On Testing the Atom Protocol...</title>
<summary type="xhtml">This is where the abstract of this record would
appear. This is only demonstration data.</summary>
<name>Y. Lericolais</name>
<email />

The problem is that this entry cannot be parsed internally from the
org.apache.abdera classes and at the end it asks agaian the server
for the entry but it looks for it under false location i.e.
<link rel="edit" href="http://altar.tu-darmstadt.de/id/eprint/26";  />
and at the end I get the following exception:

org.apache.abdera.parser.stax.FOMExtensibleElement cannot be cast to
      at org.swordapp.client.SWORDClient.deposit(SWORDClient.java:375)
      at org.swordapp.client.SWORDClient.deposit(SWORDClient.java:265)

I tried with the Java SWORD Client (for SWORDv1) and I got no problems
but there as far as I know is used completely different implementation for
parsing the <entry> tags.

I tried to post a message in the SWORD mailings list but till now came no
answer. Has anyone tried to use the provided from SWORD JAVA Client?
Any suggestions? I hope that someone can give me a hint what can I do to
get this thing working.

Thanks in advance,

-- Dipl.-Math. Zaharina Stoynova Universit?ts- und Landesbibliothek 
Darmstadt Abteilung Elektronische Informationsdienste Schlo?, 64283 
Darmstadt Tel: +49 6151 16-58773 Fax: +49 6151 16-5897 
Live Security Virtual Conference Exclusive live event will cover all the 
ways today's security and threat landscape has changed and how IT 
managers can respond. Discussions will include endpoint security, mobile 
security and the latest in malware threats. 
_______________________________________________ sword-app-tech mailing 
list sword-app-tech at lists.sourceforge.net 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120614/b50e4280/attachment-0001.html