Unable to submit an item

273 views
Skip to first unread message

Tianyi Gu

unread,
Jun 21, 2022, 6:02:22 PM6/21/22
to DSpace Technical Support
Hello everyone,

Hope you have a great summer time. 

I had a new DSpace 7.2.1 instance installed. Everything went well at beginning, until I modified the local.cfg file, DIM2DataCite.xsl and identifier-service.xml, according to the guide

When I submit an new item, I would get an error as below:
An error occurred
An exception has occurred

The log file error message is attached, as well as DOI cron job error.

I could provide more info to identify the problem.

Please advise.

Thank you,
Tianyi


log file error.txt
DOI registry error.txt

Mark H. Wood

unread,
Jun 22, 2022, 8:31:48 AM6/22/22
to DSpace Technical Support
On Tue, Jun 21, 2022 at 03:02:22PM -0700, Tianyi Gu wrote:
> I had a new DSpace 7.2.1 instance installed. Everything went well at
> beginning, until I modified the local.cfg file, DIM2DataCite.xsl and
> identifier-service.xml, according to the guide
> <https://wiki.lyrasis.org/display/DSDOC7x/DOI+Digital+Object+Identifier>.
>
> When I submit an new item, I would get an error as below:
> An error occurred
> An exception has occurred

Thank you for attaching the error traces.

The first error is difficult to track down, but it appears that in
'local.cfg' you may have invented an event consumer "harvester" without
defining 'event.consumer.harvester.class'.

The second error seems to be associated with 'DIM2DataCite.xsl'. I
would check that carefully, perhaps even validate it against its
schema. 'diff' or 'diff -u' between the stock 'DIM2DataCite.xsl' and
your modified one may help you to find the problem.

--
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
signature.asc

Tianyi Gu

unread,
Jun 22, 2022, 12:02:19 PM6/22/22
to DSpace Technical Support
Hi Mark, 

Thank you for looking into the issue.

1. I checked my local.cfg file again, I didn't find  event.consumer.harvester.class in it. 
The datacite configuration is in the bottom and the actual file is attached. May I ask how I could define the event.consumer.harvester.class?

2. I didn't get the comments on  'diff' or 'diff -u'; and I didn't find the keyword from the attached  'DIM2DataCite.xsl' file.

Please advise.

Tianyi
local.cfg
DIM2DataCite.xsl

Tianyi Gu

unread,
Jun 22, 2022, 2:14:41 PM6/22/22
to DSpace Technical Support
Hi Mark, 

I misunderstood the guide the in the instruction:

"Then you should add 'doi' to the property event.dispatcher.default.consumers. After adding it, this property may look like this:

[dspace]/config/dspace.cfg

event.dispatcher.default.consumers = versioning, discovery, eperson, harvester, doi"
 
I delete "harvester" and "versioning" from the event.dispatcher.default.consumers . 

Now I can submit a new item! That is a big progress to identify the issue. 

However, I still can't register DOI after running the cron job, please see the message below:

+++++++++++++++++++++++++++++++++++++++++++++++++++++
C:\DSpace2\bin>dspace doi-organiser -u
Using DSpace installation in: C:\DSpace2
java.lang.ClassCastException: class com.sun.org.apache.xalan.internal.xsltc.compiler.Param cannot be cast to class com.sun.org.apache.xalan.internal.xsltc.compiler.Variable (com.sun.org.apache.xalan.internal.xsltc.compiler.Param and com.sun.org.apache.xalan.internal.xsltc.compiler.Variable are in module java.xml of loader 'bootstrap')
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.SymbolTable.addVariable(SymbolTable.java:98)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Variable.parseContents(Variable.java:84)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:587)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:559)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:398)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:493)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:570)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1018)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:817)
        at org.dspace.content.crosswalk.XSLTCrosswalk.getTransformer(XSLTCrosswalk.java:186)
        at org.dspace.content.crosswalk.XSLTDisseminationCrosswalk.disseminateElement(XSLTDisseminationCrosswalk.java:214)
        at org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:391)
        at org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:529)
        at org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:550)
        at org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:570)
        at org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:263)
        at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:98)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)
ERROR:  'Could not compile stylesheet'
FATAL ERROR:  'class com.sun.org.apache.xalan.internal.xsltc.compiler.Param cannot be cast to class com.sun.org.apache.xalan.internal.xsltc.compiler.Variable (com.sun.org.apache.xalan.internal.xsltc.compiler.Param and com.sun.org.apache.xalan.internal.xsltc.compiler.Variable are in module java.xml of loader 'bootstrap')'
           :class com.sun.org.apache.xalan.internal.xsltc.compiler.Param cannot be cast to class com.sun.org.apache.xalan.internal.xsltc.compiler.Variable (com.sun.org.apache.xalan.internal.xsltc.compiler.Param and com.sun.org.apache.xalan.internal.xsltc.compiler.Variable are in module java.xml of loader 'bootstrap')
Unable to send email alert.
It wasn't possible to update this identifier: doi:10.82284/TGTEST2


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thank you very much!

Tianyi
Reply all
Reply to author
Forward
0 new messages