Hi all, I need assistance in getting rid of this error. When I run
bin/dspace index-discovery cammand, I keep getting this error:
The script has started
Updating Index
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:1535)
at org.hibernate.query.Query.getResultList(Query.java:165)
at
org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.getResultList(CriteriaQueryTypeQueryAdapter.java:76)
at
org.dspace.core.AbstractHibernateDAO.executeCriteriaQuery(AbstractHibernateDAO.java:428)
at
org.dspace.core.AbstractHibernateDAO.findAll(AbstractHibernateDAO.java:78)
at
org.dspace.core.AbstractHibernateDAO.findAll(AbstractHibernateDAO.java:70)
at
org.dspace.xmlworkflow.storedcomponents.PoolTaskServiceImpl.findAll(PoolTaskServiceImpl.java:52)
at
org.dspace.discovery.indexobject.PoolTaskIndexFactoryImpl.findAll(PoolTaskIndexFactoryImpl.java:42)
at
org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:335)
at
org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:325)
at
org.dspace.discovery.IndexClient.internalRun(IndexClient.java:133)
at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:104)
at
org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:169)
at
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:150)
at
org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:124)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)
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:606)
at
org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218)
at
org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:585)
at
org.hibernate.collection.internal.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:777)
at
org.hibernate.engine.internal.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:997)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:359)
at org.hibernate.loader.Loader.doList(Loader.java:2815)
at org.hibernate.loader.Loader.doList(Loader.java:2797)
at
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2629)
at org.hibernate.loader.Loader.list(Loader.java:2624)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:506)
at
org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:396)
at
org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:219)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1396)
at
org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1558)
at
org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1526)
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-tech/bdae7ef2-9a7b-4123-8f8f-228c264d2be3n%40googlegroups.com.