Hello, I am getting a java.lang.NullPointerException at java.util.zip.ZipFile.getInputStream when attempting to deposit a zipfile into a collection on a DSpace server using SWORD. Naturally, this causes an HTTP 500 error response from the server. (I get proper responses for all other error conditions such as unrecognized packaging, invalid content-type, invalid auth, etc.)
I get the same results using both the sword2ruby lib (after an X-Packaging fix) and the web-based client at http://client.swordapp.org/client/. The zipfiles I've tried are all small and valid/non-corrupted, etc.. For reference, I am using the collection.post_media!() method within the sword2ruby lib. I do not personally have access to the DSpace server, but I have gotten an excerpt of the logs for these events. I am completely out of ideas on what I can try differently on my client-side. Does anyone have any suggestions? Here's an excerpt from the log for one of the events: 2012-05-23 00:10:58,947 INFO org.dspace.sword.SWORDService @ [2012-05-23 00:10:58.947] Initialising depositor for an Item in a Collection; 2012-05-23 00:10:58,948 INFO org.dspace.sword.SWORDService @ [2012-05-23 00:10:58.948] Loaded ingester: org.dspace.sword.SWORDMETSIngester; 2012-05-23 00:10:58,948 INFO org.dspace.sword.SWORDService @ [2012-05-23 00:10:58.948] Using package manifest format: METS; 2012-05-23 00:10:58,948 INFO org.dspace.sword.SWORDService @ [2012-05-23 00:10:58.948] Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester; 2012-05-23 00:10:58,948 INFO org.dspace.content.packager.AbstractMETSIngester @ bgado...@endpoint.com:session_id=0:ip_addr=174.37.140.14:package_parse:Parsing package for ingest, file=SWORD-174.37.140.14-29 2012-05-23 00:10:58,948 ERROR org.dspace.sword.SWORDMETSIngester @ caught exception: java.lang.NullPointerException at java.util.zip.ZipFile.getInputStream(ZipFile.java:192) at org.dspace.content.packager.AbstractMETSIngester.parsePackage(AbstractMETSIngester.java:333) at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:201) at org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:93) at org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:112) at org.dspace.sword.DepositManager.deposit(DepositManager.java:148) at org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:120) at org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:662) 2012-05-23 00:10:58,949 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sword].[deposit] @ Servlet.service() for servlet deposit threw exception [SNIP - log repeats Java stacktrack beginning with java.lang.NullPointerException here -bgadoury] Thank you, Brian Gadoury ------------------------------------------------------------------------------ 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