Hello,
After a recent upgrade from 1.7 -> 3.2, embargoing no longer appears to work.
For now, we are still using the old pre-Dspace 3 embargo functions. However,
when an item is submitted with an embargo we are receiving the following error:
2014-02-12 16:39:06,217 ERROR org.dspace.submit.step.CompleteStep @ Caught
exception in submission step:
java.lang.NullPointerException
at
org.dspace.embargo.DefaultEmbargoSetter.setEmbargo(DefaultEmbargoSetter.java:89)
at org.dspace.embargo.EmbargoManager.setEmbargo(EmbargoManager.java:102)
at org.dspace.content.InstallItem.finishItem(InstallItem.java:218)
at org.dspace.content.InstallItem.installItem(InstallItem.java:78)
at org.dspace.content.InstallItem.installItem(InstallItem.java:44)
at org.dspace.workflow.WorkflowManager.archive(WorkflowManager.java:724)
………..
Running the migrate-embargo –a script produced the following error (for each
currently embargoed item I think):
2014-02-13 14:04:40,782 ERROR org.dspace.embargo.EmbargoManager @ Failed
attempting to lift embargo, item=1805/3743:
java.lang.NullPointerException
at
org.dspace.embargo.DefaultEmbargoSetter.setEmbargo(DefaultEmbargoSetter.java:89)
at
org.dspace.embargo.EmbargoManager.processOneItem(EmbargoManager.java:350)
at org.dspace.embargo.EmbargoManager.main(EmbargoManager.java:303)
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.main(ScriptLauncher.java:183)
2014-02-13 14:04:40,793 ERROR org.dspace.embargo.EmbargoManager @ Failed
attempting to lift embargo, item=1805/3745:
In dspace.cfg, we have:
#### Embargo Settings ####
# DC metadata field to hold the user-supplied embargo terms
embargo.field.terms = dc.description.embargo
# DC metadata field to hold computed "lift date" of embargo
embargo.field.lift = dc.description.embargo
# string in terms field to indicate indefinite embargo
embargo.terms.open = forever
# emabargo periods
# embargo.terms.days = 6 months:182,1 year:365
embargo.terms.days = 3 months:91,6 months:182,9 months:274,12 months:365,1
year:365,15 months:456,18 months:548,21 months:639,24 months:730
# implementation of embargo setter plugin - replace with local implementation
if applicable
plugin.single.org.dspace.embargo.EmbargoSetter =
org.dspace.embargo.DayTableEmbargoSetter
# implementation of embargo lifter plugin - - replace with local implementation
if applicable
plugin.single.org.dspace.embargo.EmbargoLifter =
org.dspace.embargo.DefaultEmbargoLifter
These match the settings we were using in 1.7.2.
Any suggestions on what might be the issue?
Thanks,
Andy
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette