Fwd: Error harvesting through OAI - failed to lazily initialize a collection of role...

805 views
Skip to first unread message

Diego Brice

unread,
Oct 26, 2018, 2:16:45 PM10/26/18
to dspace...@googlegroups.com


El martes, 23 de octubre de 2018, 11:51:28 (UTC-3), Diego Brice escribió:
Hi. When trying to harvest metadata and docs from a collection I get the error:

"failed to lazily initialize a collection of role: org.dspace.content.DSpaceObject.metadata, could not initialize proxy - no Session"

I'm having trouble using the automatic harvest scheduler both in the XMLUI and in the command line. 

I´m running Dspace 6.3 on Debian and Oracle database. This not happen when I only harvest metadata.

This is the full trace:

Java stacktrace: 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:569) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:188) at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:548) at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:126) at org.hibernate.collection.internal.PersistentBag.iterator(PersistentBag.java:266) at org.dspace.content.DSpaceObjectServiceImpl.getMetadata(DSpaceObjectServiceImpl.java:129) at org.dspace.content.DSpaceObjectServiceImpl.getMetadataFirstValue(DSpaceObjectServiceImpl.java:380) at org.dspace.eperson.EPerson.getFirstName(EPerson.java:253) at org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:344) at org.dspace.app.xmlui.aspect.administrative.Navigation.getValidity(Navigation.java:166) at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy102.getValidity(Unknown Source) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.getValidityForInternalPipeline(AbstractCachingProcessingPipeline.java:987) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupValidities(AbstractCachingProcessingPipeline.java:482) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:720) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.prepareInternal(Unknown Source) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183) at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99) at org.dspace.app.xmlui.cocoon.AspectGenerator.setup(AspectGenerator.java:81) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy96.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:343) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.prepareInternal(Unknown Source) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183) at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99) at org.dspace.app.xmlui.cocoon.AspectGenerator.setup(AspectGenerator.java:81) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy96.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:343) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.prepareInternal(Unknown Source) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183) at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99) at org.dspace.app.xmlui.cocoon.AspectGenerator.setup(AspectGenerator.java:81) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy96.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:343) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.prepareInternal(Unknown Source) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183) at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99) at org.dspace.app.xmlui.cocoon.AspectGenerator.setup(AspectGenerator.java:81) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy96.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:343) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.prepareInternal(Unknown Source) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183) at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99) at org.dspace.app.xmlui.cocoon.AspectGenerator.setup(AspectGenerator.java:81) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy96.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:343) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480) at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.prepareInternal(Unknown Source) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:148) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:62) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:153) at org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:183) at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:99) at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy96.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:343) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:411) at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy95.process(Unknown Source) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.java:351) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443) at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy92.service(Unknown Source) at org.dspace.springmvc.CocoonView.render(CocoonView.java:113) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:853) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:160) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

Any help!?

Thanks

Tim Donohue

unread,
Oct 26, 2018, 2:20:41 PM10/26/18
to Diego Brice, dspace...@googlegroups.com
Hi Diego,

Unfortunately this is a know issue in 6.x. It was first reported here: https://jira.duraspace.org/browse/DS-4028

We are still looking for a volunteer to help resolve this issue in 6.x.  If you (or anyone else on this list) is interested in helping solve this issue, we have more information in the ticket itself, and have code contribution guidelines at: https://wiki.duraspace.org/display/DSPACE/Code+Contribution+Guidelines 

- Tim

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-devel...@googlegroups.com.
To post to this group, send email to dspace...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-devel.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

John Preston

unread,
Oct 26, 2018, 2:43:36 PM10/26/18
to Tim Donohue, Diego Brice, dspace...@googlegroups.com
Thanks for the info. I'm gonna try first to copy the contents of my local .m2 repo on another machine that already downloaded it, and try and install it on the new machine in its local maven repository and see if dspace-solr compiles ok. As I understand it, the issue is a solr 4.4 dependency that DSpace cannot really override other than ensuring that the maven repo is available.

John

Diego Brice

unread,
Oct 29, 2018, 11:59:54 AM10/29/18
to DSpace Developers
Just to add more context. Because I´m using Oracle, Identify verb was not working so I applied the modifications mentioned here: https://github.com/DSpace/DSpace/pull/2225/commits/2e13ce3fe8e722b65777c029366db6cece9e9435
Now it works OK but the problem is to harvest metadata and document files.
John, I´m not a developer but if you need me to test something please tell me.

Thanks.

Diego Brice

unread,
Nov 8, 2018, 2:54:35 PM11/8/18
to DSpace Developers
John, did you have any progress?.

Regards.

Diego

Diego Spano

unread,
Nov 8, 2018, 4:42:03 PM11/8/18
to dspace...@googlegroups.com, byhis...@gmail.com, Tim Donohue
Thanks John. I'm not a programmer, so what should I do?. I run mvn and ant update commands on dspace.5.3.source code running in a virtual machine with Debian and Oracle. 

Do you suggest to install a new virtual Machine and compile it again? 

Thanks. 

El jue., 8 nov. 2018 6:25 p. m., John Preston <byhis...@gmail.com> escribió:
Hi, Sorry for not replying but what I proposed to do worked. I copied the local maven repository entry from a machine that already had it to the new windows 10 machine, placing it in the local machines maven repository and rebuilt DSpace and it worked flawlessly.

John

Diego Brice

unread,
Nov 14, 2018, 2:21:22 PM11/14/18
to DSpace Developers
Tim, I did what John said. I deleted my local maven repo and start again, but the problem still exists. I see at https://jira.duraspace.org/browse/DS-4028 that this bug is marked as "minor", but do you really think that having OAI server not working correctly is a minor issue?. I don´t have the knowledge to write code but if I can help in some way to get this bug corrected please tell me.

Thanks.

Diego

Tim Donohue

unread,
Nov 14, 2018, 2:58:17 PM11/14/18
to Diego Brice, DSpace Developers
Hi Diego & All,

The "minor" categorization on that bug ticket is just the default setting for all bug tickets. It was not a conscious decision on anyone's part, but is just the default value when no other categorization is selected: https://jira.duraspace.org/browse/DS-4028   That said, it's worth clarifying that this bug appears to be in the *XMLUI* and not in the OAI-PMH server.  We have received no reports (as of yet) of general OAI-PMH harvesting issues (of external sites harvesting from DSpace's OAI-PMH server) The only reports seem to be that DSpace's XMLUI is not able to properly harvest from external OAI-PMH servers.

I can change that categorization based on this discussion thread. I just bumped it to "Major". 

However, the reality here is still that we need a volunteer to help analyze and resolve this issue.  All DSpace development (including bug fixes) comes from our highly active DSpace developer community & service providers. DSpace is a massive, collaborative effort from volunteers around the world. There is no centralized development team (at DuraSpace or anywhere else). Unfortunately, at this time, our most active community developers / service providers are currently concentrating heavily on the upcoming DSpace 7 release, which means fixes to 6.x have moved slower in recent months. 

However, I am certain that 6.4 release will occur. We definitely are not done with 6.x fixes/releases. They've just slowed down because of a prioritization on DSpace 7 by our DSpace Steering Group. I don't have an estimated date for a 6.4 yet, but I fully agree that it'd be great to see this fixed prior to that release.

As noted in the DS-4028 bug ticket, this general bug sounds very similar to a few others that were fixed in 6.1, 6.2 and 6.3.  So, if anyone is interested in digging in further, I'd recommend looking at those fixes and seeing if there's a similar issue going on in the XMLUI's OAI harvester.  It's possible this is actually a small fix, but tracking it down may take some effort/time.

Tim

Diego Spano

unread,
Nov 14, 2018, 3:47:58 PM11/14/18
to Tim Donohue, dspace...@googlegroups.com
Tim, you said that the problem is related with XMLUI. But the error appears at command line too when I run "dspace harvest ...".
Regards.

Diego

Tim Donohue

unread,
Nov 14, 2018, 4:54:24 PM11/14/18
to Diego Spano, dspace...@googlegroups.com
Hi Diego,

Apologies, I forgot this harvesting feature is also enabled at the Commandline level. (I just know it doesn't exist in the JSPUI)

I'll correct the ticket to ensure it's clear this also occurs whether the external harvest is run from the commandline or the XMLUI.  However, my main point is still accurate here -- this bug doesn't affect the OAI-PMH server within DSpace. It only affects the OAI-PMH *client* (the code that allows DSpace to harvest from an external OAI-PMH server). That said, I completely agree it's a bug that needs resolving soon, and hopefully we can find a volunteer to help us out there.

If you have further feedback to share, you are also welcome to add any into the ticket yourself. (If you don't have a JIRA account, and want to add feedback, you can request an invite by emailing sysa...@duraspace.org)

- Tim

Denis Assunção

unread,
Feb 19, 2019, 3:20:54 AM2/19/19
to DSpace Developers
Hi Tim,

I'm facing the same problem reported by Diego. I would like to know when version 6.4 will be released or if version 7 (scheduled for the middle of the year) will come with the correction of this error.

Thanks in advance,
Denis

Tim Donohue

unread,
Feb 21, 2019, 12:04:01 PM2/21/19
to Denis Assunção, DSpace Developers
Hi Denis & All,

At this point, this error is still waiting for a volunteer developer to step forward (i.e. the ticket is in "Needs Volunteer" status): https://jira.duraspace.org/browse/DS-4028   DSpace does not have a centralized development team that I can assign tasks to, so I work with volunteers throughout the world to try and find interested individuals/institutions willing to investigate bugs and/or look for fixes.  That's also where our Committers Team comes from (these are trusted volunteers from around the world who help with all new releases of DSpace).

So, I would love to be able to promise this fix in the 6.4 (or 7.0) release, but I'm still looking to find someone to help analyze the issue.  If this is of interest to you *or anyone on this list*, please get in touch, or add a comment to the DS-4028 ticket that you are investigating the problem. I'd love to see this get analyzed in the very near future, so that (at a minimum) we can make a patch available to anyone running 6.3 who has encountered this bug.

The 6.4 release does not yet have an official release date.  Most of our most active volunteer developers are currently concentrating efforts on finishing up 7.0.  A 6.4 release will definitely be coming this year, but I'm unable to narrow down the release date at this time -- my best guess is that it may come out around the same time as 7.0 *unless a very high priority bug/issue* appears in 6.x (and one or more of our Committers  is able to switch their efforts over to helping to finalize the 6.4 release).

I hope that helps explain the current status.  If you have further questions, please do let me know.

Tim

José Geraldo

unread,
Apr 4, 2019, 10:11:20 AM4/4/19
to DSpace Developers
Hi Tim & All,

I believe that this error is related to the report (https://groups.google.com/forum/#!msg/dspace-tech/95xmbswHxW0/CEPvzWVvCAAJ), with the following error:

We need at least an eperson or a group in order to create a resource policy.

Exception:
java.lang.IllegalArgumentException: We need at least an eperson or a group in order to create a resource policy.
        at org.dspace.authorize.AuthorizeServiceImpl.createResourcePolicy(AuthorizeServiceImpl.java:777)
        at org.dspace.authorize.AuthorizeServiceImpl.addPolicy(AuthorizeServiceImpl.java:533)
        at org.dspace.content.WorkspaceItemServiceImpl.create(WorkspaceItemServiceImpl.java:99)
        at org.dspace.harvest.OAIHarvester.processRecord(OAIHarvester.java:539)
        at org.dspace.harvest.OAIHarvester.runHarvest(OAIHarvester.java:367)
        at org.dspace.harvest.HarvestThread.runHarvest(HarvestThread.java:57)
        at org.dspace.harvest.HarvestThread.run(HarvestThread.java:41)
        at java.lang.Thread.run(Unknown Source)


I would like to report a possible solution to the error:

1 - insert the oai.harvester.eperson property in the file oai.cfg

2 - edit the class HavestThread.java

private void runHarvest()
    {
        Context context;
        Collection dso;
        HarvestedCollection hc = null;
        try {
            context = new Context();
            String harvestAdminParam = ConfigurationManager.getProperty("oai", "harvester.eperson");
            context.setCurrentUser(EPersonServiceFactory.getInstance().getEPersonService().findByEmail(context, harvestAdminParam));
            dso = collectionService.find(context, collectionId);
            hc = harvestedCollectionService.find(context, dso);


What is the impact of this change on the system?





Em quinta-feira, 21 de fevereiro de 2019 14:04:01 UTC-3, Tim Donohue escreveu:
Hi Denis & All,

At this point, this error is still waiting for a volunteer developer to step forward (i.e. the ticket is in "Needs Volunteer" status): https://jira.duraspace.org/browse/DS-4028   DSpace does not have a centralized development team that I can assign tasks to, so I work with volunteers throughout the world to try and find interested individuals/institutions willing to investigate bugs and/or look for fixes.  That's also where our Committers Team comes from (these are trusted volunteers from around the world who help with all new releases of DSpace).

So, I would love to be able to promise this fix in the 6.4 (or 7.0) release, but I'm still looking to find someone to help analyze the issue.  If this is of interest to you *or anyone on this list*, please get in touch, or add a comment to the DS-4028 ticket that you are investigating the problem. I'd love to see this get analyzed in the very near future, so that (at a minimum) we can make a patch available to anyone running 6.3 who has encountered this bug.

The 6.4 release does not yet have an official release date.  Most of our most active volunteer developers are currently concentrating efforts on finishing up 7.0.  A 6.4 release will definitely be coming this year, but I'm unable to narrow down the release date at this time -- my best guess is that it may come out around the same time as 7.0 *unless a very high priority bug/issue* appears in 6.x (and one or more of our Committers  is able to switch their efforts over to helping to finalize the 6.4 release).

I hope that helps explain the current status.  If you have further questions, please do let me know.

Tim


To unsubscribe from this group and stop receiving emails from it, send an email to dspace...@googlegroups.com.

To post to this group, send email to dspace...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-devel.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages