Error while running DSpace 7

692 views
Skip to first unread message

Sheril Jose

unread,
Nov 2, 2020, 10:39:28 AM11/2/20
to DSpace Technical Support
I followed the installation steps as mentioned found on: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace

Currently, I'm stuck on the 'End User Agreement' page with an error when attempting to save. I have already tried a few thing to troubleshoot and the error thrown is:

org.dspace.app.rest.exception.DSpaceBadRequestException: There was no metadataField found in path of operation\n\tat org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataPatchUtils.checkMetadataFieldNotNull(DSpaceObjectMetadataPatchUtils.java:157)\n\tat org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataAddOperation.add(DSpaceObjectMetadataAddOperation.java:63)\n\tat org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataAddOperation.perform(DSpaceObjectMetadataAddOperation.java:47)\n\tat org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataAddOperation.perform(DSpaceObjectMetadataAddOperation.java:34)\n\tat org.dspace.app.rest.repository.patch.ResourcePatch.performPatchOperation(ResourcePatch.java:58)\n\tat org.dspace.app.rest.repository.patch.ResourcePatch.patch(ResourcePatch.java:42)\n\tat org.dspace.app.rest.repository.DSpaceObjectRestRepository.patchDSpaceObject(DSpaceObjectRestRepository.java:64)\n\tat org.dspace.app.rest.repository.EPersonRestRepository.patch(EPersonRestRepository.java:170)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752)\n\tat 

A more extensive error report is attached as a textfile and any feedback is much appreciated. 

Cheers,
Sheril

Message has been deleted

Sheril Jose

unread,
Nov 2, 2020, 5:32:04 PM11/2/20
to DSpace Technical Support
More specifically, I used code from -  DSpace 7.0 Beta 4 Release (Frontend / UI Only) and  DSpace 7.0 Beta 4.1 Release (Backend / REST API Only). 

Tim Donohue

unread,
Nov 3, 2020, 5:19:33 PM11/3/20
to Sheril Jose, DSpace Technical Support
Hi Sheril,

It almost sounds like your DSpace 7 doesn't have the new "dspace.agreements.end-user" and "dspace.agreements.cookies" metadata fields that are required for that feature to work properly.

They should have been added automatically by our DatabaseRegistryUpdater when you installed or updated to DSpace 7 beta 4, but it sounds like that didn't work for some reason.

You can manually add these fields to the registry by running:

[dspace]/bin/dspace registry-loader -metadata [dspace]/config/registries/dspace-types.xml

I suspect that's the issue, but if it doesn't work, we may need you to send more information from your logs to this list/thread.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Sheril Jose <sjos...@prosentient.com.au>
Sent: Monday, November 2, 2020 4:32 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Re: Error while running 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 Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/1b1616b2-6fb7-43e3-8f25-418c770d4190n%40googlegroups.com.

sjos...@prosentient.com.au

unread,
Nov 4, 2020, 6:56:33 PM11/4/20
to Tim Donohue, DSpace Technical Support

Hi Tim,

 

Appreciate you taking the time to respond, but as I looked into the version I was using, I realised that I had install DSpace 7.0 Beta 2.1 Release instead.

 

Sheril

You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/QrwKaPJ5mEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/DM5PR2201MB11484D939AF15221089BBBC1ED110%40DM5PR2201MB1148.namprd22.prod.outlook.com.

NTech

unread,
Sep 25, 2021, 7:04:51 AM9/25/21
to DSpace Technical Support
this worked for me too with user agreements. 

Gavin Spomer

unread,
Sep 28, 2021, 10:43:25 AM9/28/21
to DSpace Technical Support
Tim's workaround also worked for me.

 - Gavin 

Reply all
Reply to author
Forward
0 new messages