java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13

Sakai JIRA | Terry Brady | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have migrated one of my test instances to 6.0 RC3 and I am attempting to populate my repository using exported AIP packages. Some items are being rejected due to a past lift date. Replacing DSpace object(s) with package located at /opt/dg-transfer/data/resources/aip_10822-761364_10822-761419_10822-761857.zip java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13 at org.dspace.embargo.EmbargoServiceImpl.getEmbargoTermsAsDate(EmbargoServiceImpl.java:145) at org.dspace.embargo.EmbargoServiceImpl.setEmbargo(EmbargoServiceImpl.java:87) at org.dspace.content.InstallItemServiceImpl.finishItem(InstallItemServiceImpl.java:236) at org.dspace.content.InstallItemServiceImpl.restoreItem(InstallItemServiceImpl.java:142) at org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:524) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:525) at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1192) at org.dspace.app.packager.Packager.replace(Packager.java:780) at org.dspace.app.packager.Packager.main(Packager.java:377) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81) java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13 h3. If I attempt this same action in a DSpace 5 instance, it is successful. Beginning replacement process... Replacing DSpace object(s) with package located at /opt/dg-transfer/data/resources/aip_10822-761364_10822-761419_10822-761857.zip REPLACED DSpace ITEM [ hdl=10822/761857 ]

    Sakai JIRA | 7 months ago | Terry Brady
    java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13
  2. 0

    I am attempting to populate my repository using exported AIP packages. Some items are being rejected due to a past lift date. Replacing DSpace object(s) with package located at /opt/dg-transfer/data/resources/aip_10822-761364_10822-761419_10822-761857.zip java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13 at org.dspace.embargo.EmbargoServiceImpl.getEmbargoTermsAsDate(EmbargoServiceImpl.java:145) at org.dspace.embargo.EmbargoServiceImpl.setEmbargo(EmbargoServiceImpl.java:87) at org.dspace.content.InstallItemServiceImpl.finishItem(InstallItemServiceImpl.java:236) at org.dspace.content.InstallItemServiceImpl.restoreItem(InstallItemServiceImpl.java:142) at org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:524) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:525) at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1192) at org.dspace.app.packager.Packager.replace(Packager.java:780) at org.dspace.app.packager.Packager.main(Packager.java:377) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81) java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13

    Sakai JIRA | 7 months ago | Terry Brady
    java.lang.IllegalArgumentException: Embargo lift date must be in the future, but this is in the past: 2016-09-13

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Embargo lift date must be in the future, but this is in the past: 2016-09-13

      at org.dspace.embargo.EmbargoServiceImpl.getEmbargoTermsAsDate()
    2. DSpace Kernel :: API and Implementation
      Packager.main
      1. org.dspace.embargo.EmbargoServiceImpl.getEmbargoTermsAsDate(EmbargoServiceImpl.java:145)
      2. org.dspace.embargo.EmbargoServiceImpl.setEmbargo(EmbargoServiceImpl.java:87)
      3. org.dspace.content.InstallItemServiceImpl.finishItem(InstallItemServiceImpl.java:236)
      4. org.dspace.content.InstallItemServiceImpl.restoreItem(InstallItemServiceImpl.java:142)
      5. org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:524)
      6. org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:525)
      7. org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1192)
      8. org.dspace.app.packager.Packager.replace(Packager.java:780)
      9. org.dspace.app.packager.Packager.main(Packager.java:377)
      9 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
      2 frames