Hi Paul, Am 20.08.21 um 10:42 schrieb [email protected]:
Hello,FYI, we are running DSpace 6.3 with Postgresql. Here is an update:I have not solved the configuration problem with xoai.xml, in trying for a virtual set based on the presence of the string 'openAccess' in the metadata field dc.rights.
I can send it, but we have changed much of that file. […]
Metadata FormatConfiguration referred as oaidc does not exist
[…] look carefully for "oaidc" in xoai.mxl,e.g. <Format ref="oaidc"/> in the different Contexts - ours is currently only in the "driver" Context.
However, I had some success with the exception when updating the oai index. When runningbin/dspace oai import -coI had first gotten an out of memory error, which I mentioned above. I raised the allotment for java in the dspace script, and that eliminated the memory error. It allowed the process to go further however, to the point at which it ran into a null pointer exception:java.lang.NullPointerException at org.dspace.xoai.app.XOAI.willChangeStatus(XOAI.java:441) at org.dspace.xoai.app.XOAI.index(XOAI.java:368) at org.dspace.xoai.app.XOAI.index(XOAI.java:280) at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:227) the at org.dspace.xoai.app.XOAI.index(XOAI.java:134) at org.dspace.xoai.app.XOAI.main(XOAI.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)I looked at willChangeStatus in XOAI.java, and found it was checking the ResourcePolicy for the current item, and it was clear from the code that the null pointer exception occurred when it ran policy.getGroup(). I checked our resourcepolicy table in the database, and found 45 instances in which an entry had a null for the epersongroup_id column. I do not know why this error happened, but these were special cases instantiated by my colleague (who is on vacation at the moment, so I cannot ask her. :-) ). I added a check in the willChangeStatus method if policy.getGroup() were null, to print out the item uuid. This confirmed that these items with the nulls in the resourcepolicy table were the culprits. I filled these nulls with the Administrator group id, and was able to run the full import successfully.
Cool :) . CU Michael -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/91e6d609-b477-3e9e-db23-a3c07b33995e%40bibliothek.uni-kassel.de.
smime.p7s
Description: S/MIME Cryptographic Signature
