Hi all

We are getting an error every time we try to execute "/dspace/bin/dspace 
index-discovery", but not problem when executing "/dspace/bin/dspace 
index-discovery -b"
Anyone know what the problem might be and how to resolve it? Any help is 
greatly appreciated, thanks!
Error msg at follows:

javax.persistence.PersistenceException: 
org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: org.dspace.content.DSpaceObject.metadata, could not 
initialize proxy - no Session
 at 
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154)
 at 
org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1626)
 at org.hibernate.query.Query.getResultList(Query.java:165)
 at 
org.dspace.authorize.dao.impl.ResourcePolicyDAOImpl.findValidPolicyOwners(ResourcePolicyDAOImpl.java:450)
 at 
org.dspace.authorize.ResourcePolicyServiceImpl.findValidPolicyOwners(ResourcePolicyServiceImpl.java:430)
 at 
org.dspace.authorize.AuthorizeServiceImpl.getValidPolicyOwnersActionFilter(AuthorizeServiceImpl.java:529)
 at 
org.dspace.discovery.SolrServiceResourceRestrictionPlugin.additionalIndex(SolrServiceResourceRestrictionPlugin.java:79)
 at 
org.dspace.discovery.indexobject.IndexFactoryImpl.buildDocument(IndexFactoryImpl.java:70)
 at 
org.dspace.discovery.indexobject.DSpaceObjectIndexFactoryImpl.buildDocument(DSpaceObjectIndexFactoryImpl.java:30)
 at 
org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:144)
 at 
org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:81)
 at org.dspace.discovery.SolrServiceImpl.update(SolrServiceImpl.java:185)
 at 
org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:175)
 at 
org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:365)
 at 
org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:352)
 at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:139)
 at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150)
 at 
org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:174)
 at 
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:151)
 at 
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:125)
 at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:100)
Caused by: org.hibernate.LazyInitializationException: failed to lazily 
initialize a collection of role: org.dspace.content.DSpaceObject.metadata, 
could not initialize proxy - no Session
 at 
org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:614)
 at 
org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218)
 at 
org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:591)
 at 
org.hibernate.collection.internal.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:787)
 at 
org.hibernate.engine.internal.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:1005)
 at 
org.hibernate.engine.internal.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:991)
 at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:362)
 at org.hibernate.loader.Loader.doList(Loader.java:2868)
 at org.hibernate.loader.Loader.doList(Loader.java:2850)
 at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2682)
 at org.hibernate.loader.Loader.list(Loader.java:2677)
 at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:540)
 at 
org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:400)
 at 
org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:218)
 at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1459)
 at 
org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1649)
 at 
org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1617)

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/162e92bc-01f4-4600-b2c1-e2bae0e9c921n%40googlegroups.com.

Reply via email to