Hi Marco, On 2 May 2012 14:38, Marco Fabiani <marco.fabi...@eecs.qmul.ac.uk> wrote: > Hello, > > while trying to get DataFlow/DataStage talk to DSpace, I found a possible bug > in the DSpace sword2 server (NullPointer exception). > > When I update an item using for example (python): > > deposit_receipt = c.update(edit_media_iri = new_receipt.edit_media, > payload = payload, > filename = filename, > mimetype = 'application/zip', > packaging = packaging, > in_progress = True) > > the update is successfully carried out in DSpace (the files are deleted and > new files are added), but the server returns a 500 error: > > <u>The server encountered an internal error () that prevented it from > fulfilling this request.</u></p><p><b>exception</b> > <pre>java.lang.NullPointerException > org.swordapp.server.MediaResourceAPI.put(MediaResourceAPI.java:174) > > org.swordapp.server.servlets.MediaResourceServletDefault.doPut(MediaResourceServletDefault.java:56) > javax.servlet.http.HttpServlet.service(HttpServlet.java:640) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > I couldn't find out why this happens, maybe you have an idea?
Are you using the standard DSpace swordv2 or my stabilised implementation at https://github.com/nye-duo/DSpace/tree/duo The latter fixes a lot of issues in the implementation, and i'll be seeing if we can merge some of that back into the master at some point soon. Cheers, Richard > > Cheers, > > Marco > > -------------------------------------------------- > Marco Fabiani > Postdoctoral Research Assistant > Centre for Digital Music > School of Electronic Engineering and Computer Science > Queen Mary, University of London > Mile End Road, London E1 4NS, UK > > > ------------------------------------------------------------------------------ > 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. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sword-app-tech mailing list > sword-app-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sword-app-tech -- Richard Jones, Founder, Cottage Labs t: @richard_d_jones, @cottagelabs w: http://cottagelabs.com ------------------------------------------------------------------------------ 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. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech