Hi Jose,
it looks as the dspace spring context (dspace kernel) was not initialized.
Please be sure to run the script using the dspace cmd line launcher, i.e
dspace dsrun your-class-fullname
Hope this help,
Andrea


Inviato da Samsung MobileJose Blanco <blan...@umich.edu> ha scritto:I have a 
script that reinstates items, basically it calls.

item.reinstate(),
and then
context.complete();

It works fine as long as I don't have discovery
event.dispatcher.default.consumers = search, browse, eperson, harvester

but when I add discovery
event.dispatcher.default.consumers = search, browse, discovery,
eperson, harvester

and it goes to do this
            context.complete();

I get this message.  It seems like I have to do something else before
doing complete. :

Exception in thread "main" java.lang.IllegalStateException: Unable to
aquire dispatcher named default
        at org.dspace.event.EventManager.getDispatcher(EventManager.java:115)
        at org.dspace.core.Context.commit(Context.java:350)
        at 
org.dspace.administer.ReleaseRestricted.main(ReleaseRestricted.java:89)
Caused by: java.lang.IllegalStateException: DSpace kernel cannot be null
        at org.dspace.utils.DSpace.getServiceManager(DSpace.java:63)
        at 
org.dspace.discovery.IndexEventConsumer.<init>(IndexEventConsumer.java:43)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at 
org.dspace.event.ConsumerProfile.readConfiguration(ConsumerProfile.java:87)
        at 
org.dspace.event.ConsumerProfile.makeConsumerProfile(ConsumerProfile.java:62)
        at 
org.dspace.event.EventManager$DispatcherPoolFactory.makeObject(EventManager.java:227)
        at 
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:964)
        at 
org.apache.commons.pool.PoolUtils$SynchronizedKeyedObjectPool.borrowObject(PoolUtils.java:1159)
        at org.dspace.event.EventManager.getDispatcher(EventManager.java:111)
        ... 2 more

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to