submission error in DSpace 7

194 views
Skip to first unread message

Dr. Surinder Kumar Gaba

unread,
Nov 30, 2020, 12:20:22 AM11/30/20
to dspace-community
I installed DSpace 7 in a traditional way by using the following dependencies

java 11.0.9 2020-10-20 LTS
Solr 8.7
Centos OS 7
Postgres 12

When entering items, it is saving continuously and not coming out. checked log and given below:

2020-11-30 10:35:02,414 ERROR org.dspace.event.BasicDispatcher @ Consumer("discovery").consume threw: java.lang.ClassCastException: class org.dspace.discovery.indexobject.IndexableWorkspaceItem cannot be cast to class org.dspace.discovery.indexobject.IndexableDSpaceObject (org.dspace.discovery.indexobject.IndexableWorkspaceItem and org.dspace.discovery.indexobject.IndexableDSpaceObject are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @aa10649)
java.lang.ClassCastException: class org.dspace.discovery.indexobject.IndexableWorkspaceItem cannot be cast to class org.dspace.discovery.indexobject.IndexableDSpaceObject (org.dspace.discovery.indexobject.IndexableWorkspaceItem and org.dspace.discovery.indexobject.IndexableDSpaceObject are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @aa10649)
        at org.dspace.discovery.indexobject.AbstractIndexableObject.equals(AbstractIndexableObject.java:33) ~[dspace-api-7.0-beta4.1.jar:7.0-beta4.1]
        at java.util.HashMap.putVal(HashMap.java:630) ~[?:?]
        at java.util.HashMap.put(HashMap.java:607) ~[?:?]
        at java.util.HashSet.add(HashSet.java:220) ~[?:?]
        at java.util.AbstractCollection.addAll(AbstractCollection.java:352) ~[?:?]
        at org.dspace.discovery.IndexEventConsumer.consume(IndexEventConsumer.java:133) ~[dspace-api-7.0-beta4.1.jar:7.0-beta4.1]
        at org.dspace.event.BasicDispatcher.dispatch(BasicDispatcher.java:104) [dspace-api-7.0-beta4.1.jar:7.0-beta4.1]
        at org.dspace.core.Context.dispatchEvents(Context.java:455) [dspace-api-7.0-beta4.1.jar:7.0-beta4.1]
        at org.dspace.core.Context.commit(Context.java:424) [dspace-api-7.0-beta4.1.jar:7.0-beta4.1]
        at org.dspace.app.rest.repository.DSpaceRestRepository.patch(DSpaceRestRepository.java:408) [classes/:7.0-beta4.1]
        at org.dspace.app.rest.repository.DSpaceRestRepository$$FastClassBySpringCGLIB$$615525f9.invoke(<generated>) [classes/:7.0-beta4.1]
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) [spring-core-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) [spring-aop-5.2.5.RELEASE.jar:5.2.5.RELEASE]
        at org.dspace.app.rest.repository.WorkspaceItemRestRepository$$EnhancerBySpringCGLIB$$536b073c.patch(<generated>) [classes/:7.0-beta4.1]
        at org.dspace.app.rest.RestResourceController.patchInternal(RestResourceController.java:707) [classes/:7.0-beta4.1]
        at org.dspace.app.rest.RestResourceController.patch(RestResourceController.java:661) [classes/:7.0-beta4.1]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
                                                                          
It is bug in DSpace 7 or missing some dependencies.

--
Dr. Surinder Kumar Gaba
DDG
Digital Archiving & Management Group
National Informatics Centre
A-Block, CGO Complex, Lodhi Road
New Delhi-110 003
Tel : 011-24362359 (o)
      : 011-27865224 (r)

Tim Donohue

unread,
Nov 30, 2020, 11:09:34 AM11/30/20
to Dr. Surinder Kumar Gaba, dspace-community
Hi,

That error is a known issue in 7.0 Beta 4.  The ticket is at: https://github.com/DSpace/DSpace/issues/2989

However, this error in your logs should not block submissions from occurring (at least it does not do so on our DSpace 7 demo site at https://dspace7-demo.atmire.com/).  That error only notes that some items were not properly indexed for searching/browsing.

In any case, keep in mind DSpace 7 is still under development and is not yet stable or production ready.  You are more than welcome to try it out early, but there will still be some bugs.  More info on trying out DSpace 7 early can be found at https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7

Tim

From: dspace-c...@googlegroups.com <dspace-c...@googlegroups.com> on behalf of Dr. Surinder Kumar Gaba <surind...@gmail.com>
Sent: Sunday, November 29, 2020 11:20 PM
To: dspace-community <dspace-c...@googlegroups.com>
Subject: [dspace-community] submission error in DSpace 7
 
--
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 Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/CAJtF%3DquZgL6e_S3TwR9HS9D9u12ytAejX6GRoT9WCPjQH7t%2Byg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages