Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2131

SWORDv2 ingestion fails with NullPointerException

    Details

    • Attachments:
      1
    • Comments:
      6
    • Documentation Status:
      Not Required

      Description

      When ingesting a METS deposit without a license thus inheriting the license from the Collection to which the deposit will be ingested, a NullpointerException is encountered:
      java.lang.NullPointerException
      at org.dspace.content.packager.PackageUtils.addDepositLicense(PackageUtils.java:156)
      at org.dspace.content.packager.DSpaceMETSIngester.addLicense(DSpaceMETSIngester.java:178)
      at org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:663)
      at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1191)
      at org.dspace.sword2.SwordMETSContentIngester.ingestToCollection(SwordMETSContentIngester.java:108)
      at org.dspace.sword2.AbstractSwordContentIngester.ingest(AbstractSwordContentIngester.java:45)
      at org.dspace.sword2.SwordMETSContentIngester.ingest(SwordMETSContentIngester.java:44)
      at org.dspace.sword2.CollectionDepositManagerDSpace.createNewFromBinary(CollectionDepositManagerDSpace.java:229)
      at org.dspace.sword2.CollectionDepositManagerDSpace.createNew(CollectionDepositManagerDSpace.java:116)
      at org.swordapp.server.CollectionAPI.post(CollectionAPI.java:165)
      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:103)
      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.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      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:744)

        Attachments

          Activity

            People

            • Assignee:
              kevin van de velde Kevin Van de Velde (Atmire)
              Reporter:
              jalie Jan Lievens
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: