index-authority command not working

311 views
Skip to first unread message

I&P CRAI URosario

unread,
Sep 3, 2019, 10:03:17 AM9/3/19
to DSpace Technical Support
When executing the index-auhtority command I get the error:
./dspace index-authority 
Retrieving all data
Initialize org.dspace.authority.indexer.DSpaceAuthorityIndexer
Exception: null
java.lang.NullPointerException
at org.dspace.authority.AuthorityValueServiceImpl.generateRaw(AuthorityValueServiceImpl.java:89)
at org.dspace.authority.AuthorityValueServiceImpl.generate(AuthorityValueServiceImpl.java:47)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.prepareNextValue(DSpaceAuthorityIndexer.java:197)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.hasMore(DSpaceAuthorityIndexer.java:132)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.hasMore(DSpaceAuthorityIndexer.java:144)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.hasMore(DSpaceAuthorityIndexer.java:144)
at org.dspace.authority.indexer.DSpaceAuthorityIndexer.hasMore(DSpaceAuthorityIndexer.java:144)
at org.dspace.authority.indexer.AuthorityIndexClient.main(AuthorityIndexClient.java:60)
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)

Tim Donohue

unread,
Sep 4, 2019, 11:47:47 AM9/4/19
to I&P CRAI URosario, DSpace Technical Support
We'd need more information here regarding the version of DSpace you are running, and which Authority configurations you are trying to use when running "index-authority".

It *sounds* like possibly one of your Authority configurations (possibly in input-forms.xml) is invalid, but it's hard to say how it's invalid.

If you can send more information about your DSpace installation & how you are trying to use Authority Control, that might allow someone on this list to more easily help you resolve this issue.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of I&P CRAI URosario <ip.crai....@gmail.com>
Sent: Friday, August 30, 2019 10:46 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] index-authority command not working
 
--
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/ee4c521d-a259-4365-816b-11d3de020db1%40googlegroups.com.

I&P CRAI URosario

unread,
Sep 17, 2019, 3:09:21 PM9/17/19
to DSpace Technical Support
We were running DSpace 6.0 and it presented the same error, we updated our DSpace to 6.3 and it also has the error. I had the following configuration that worked:
# --- dc.creator ---#
choices
.plugin.dc.creator = SolrAuthorAuthority
choices
.presentation.dc.creator = authorLookup
authority
.controlled.dc.creator = true
authority
.author.indexer.field.1=dc.creator
authority
.minconfidence = uncertain
authority
.minconfidence.dc.creator = uncertain


# --- dc.contributor.advisor --- #
choices
.plugin.dc.contributor.advisor = SolrAuthorAuthority
choices
.presentation.dc.contributor.advisor = authorLookup
authority
.controlled.dc.contributor.advisor = true
authority
.author.indexer.field.2=dc.contributor.advisor
authority
.minconfidence = uncertain
authority
.minconfidence.dc.contributor.advisor = uncertain


But I added the follwing configuration and it started to display the error:
# --- dc.contributor.author --- #
choices
.plugin.dc.contributor.author = SolrAuthorAuthority
choices
.presentation.dc.contributor.author = authorLookup
authority
.controlled.dc.contributor.author = true
authority
.author.indexer.field.3=dc.contributor.author
authority
.minconfidence = uncertain
authority.minconfidence.dc.contributor.author = uncertain




El miércoles, 4 de septiembre de 2019, 10:47:47 (UTC-5), Tim Donohue escribió:
We'd need more information here regarding the version of DSpace you are running, and which Authority configurations you are trying to use when running "index-authority".

It *sounds* like possibly one of your Authority configurations (possibly in input-forms.xml) is invalid, but it's hard to say how it's invalid.

If you can send more information about your DSpace installation & how you are trying to use Authority Control, that might allow someone on this list to more easily help you resolve this issue.

Tim

To unsubscribe from this group and stop receiving emails from it, send an email to dspac...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages