Hi Mark, 

I misunderstood the guide the in the instruction:

DOI Digital Object Identifier - DSpace 7.x Documentation - LYRASIS Wiki 
<https://wiki.lyrasis.org/display/DSDOC7x/DOI+Digital+Object+Identifier>

*"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
On Wednesday, June 22, 2022 at 12:02:19 PM UTC-4 Tianyi Gu wrote:

> 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
>
>
>
> On Wednesday, June 22, 2022 at 8:31:48 AM UTC-4 Mark H. Wood wrote:
>
>> 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 <(317)%20274-0749>
>> www.ulib.iupui.edu
>>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/bfa50bcd-68c2-460e-ac8b-2248afd33899n%40googlegroups.com.

Reply via email to