java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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 ]
    via by Terry Brady,
  • 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
    via by Terry Brady,
    • 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)
    No Bugmate found.