On Wed, May 04, 2022 at 04:02:42AM -0700, Urban Andersson wrote:
> I have recently set up a DSpace 7 test server, by using data and configs
> from our live 6.2 instance and got it up and working (almost) fine.
>
> When trying to add a new item as Administrator in one (any) of the
> collections - New - Item Create a new item in... - the message "You have
> not the privilege to make a new submission." is displayed.
>
> The following response is received by the UI:
>
> {"timestamp":"2022-05-04T10:43:42.493+00:00","status":500,"error":"Internal
> Server Error","message":"An exception has
> occurred","path":"/server/api/submission/workspaceitems"}
>
> And the following is logged by the backend in dspace.log:
>
> 2022-05-04 10:45:29,829 ERROR 12681462-6c1d-42f8-9557-2f806c58c7ee
> a069f79e-d60c-4902-9f0c-1f08f96479cf
> org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An
> exception has occurred (status:500)
> java.lang.IllegalStateException: *The submission configration is invalid
> the processing class for the step collection is not found* at
> org.dspace.app.rest.converter.SubmissionDefinitionConverter.convert(SubmissionDefinitionConverter.java:70)
> ~[classes/:7.2.1] at
> org.dspace.app.rest.converter.SubmissionDefinitionConverter.convert(SubmissionDefinitionConverter.java:38)
> ~[classes/:7.2.1]
>
> ...
>
> My guess is that this is somehow related to the migrated submission conf
> files, but I'm not sure exactly what to look for, or if there could be
> something else involved here.
>
> DSpace version 7.2.1
> O/S: Ubuntu 20.04.4
> Java version: openjdk 11.0.15
I would look in config/item-submission.xml for the <step-definition
id="collection"/> element. Looking at the code, I think that the
step-definition exists but its <processing-class/> is incorrect.
SubmissionDefinitionConverter.convert() got a ClassNotFoundException
when it applied Class.forName() to the value of that element.
If the processing-class is correct, then there must be no such class
visible on the classpath.
The exception message ought to quote the step name ("collection" in
this case) to make the meaning of the exception clearer. It is
showing the 'id' of the <step-definition/>.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu