On 21 August 2016 at 15:59, Alan Orth <[email protected]> wrote:

> So `dspace dsrun org.dspace.authority.UpdateAuthorities` doesn't work for
> me. I tested by updating my name on ORCID and then let UpdateAuthorities
> run a few times per day for a few days, but there is no change in the
> display of my name on a test item's display. Every time I run the script I
> get something like:
>
> $ /home/dspace dsrun org.dspace.authority.UpdateAuthorities
> 10 authorities found.
>
> Can anyone confirm this script working for them?
>


I also get 10 authorities found, but nothing further:

$ /dspace/bin/dspace dsrun org.dspace.authority.UpdateAuthorities
10 authorities found.

If I try with a single record, I get a more interesting response:
$ /dspace/bin/dspace dsrun org.dspace.authority.UpdateAuthorities -i
58b55f8c-4950-40af-ba58-2fc835eda26f
1 authorities found.
Exception: null
java.lang.NullPointerException
    at org.apache.xpath.XPathAPI.eval(XPathAPI.java:231)
    at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:167)
    at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:147)
    at org.dspace.authority.util.XMLUtils.getNodeList(XMLUtils.java:86)
    at
org.dspace.authority.util.XMLUtils.getNodeListIterator(XMLUtils.java:94)
    at org.dspace.authority.orcid.xml.XMLtoBio.convert(XMLtoBio.java:91)
    at org.dspace.authority.orcid.Orcid.getBio(Orcid.java:54)
    at org.dspace.authority.orcid.Orcid.queryAuthorityID(Orcid.java:83)
    at
org.dspace.authority.orcid.OrcidAuthorityValue.newInstance(OrcidAuthorityValue.java:249)
    at
org.dspace.authority.AuthorityValueServiceImpl.generateRaw(AuthorityValueServiceImpl.java:86)
    at
org.dspace.authority.AuthorityValueServiceImpl.update(AuthorityValueServiceImpl.java:100)
    at
org.dspace.authority.UpdateAuthorities.run(UpdateAuthorities.java:135)
    at
org.dspace.authority.UpdateAuthorities.main(UpdateAuthorities.java:66)
    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)

And this in the log:

2016-08-22 11:55:02,907 INFO  org.hibernate.tool.hbm2ddl.TableMetadata @
HHH000037: Columns: [collection_id, stage_reached, page_reached,
published_before, item_id, multiple_titles, multiple_files,
embargoduration, workspace_item_id]
2016-08-22 11:55:13,373 ERROR org.dspace.authority.rest.RESTConnector @
Error in rest connector for path:
http://pub.orcid.org/0000-0002-8421-238X/orcid-bio
java.net.UnknownHostException: pub.orcid.org: unknown error
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
    at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
    at java.net.InetAddress.getAllByName(InetAddress.java:1192)
    at java.net.InetAddress.getAllByName(InetAddress.java:1126)
    at
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
    at
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)
    at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    at
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
    at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.dspace.authority.rest.RESTConnector.get(RESTConnector.java:51)
    at org.dspace.authority.orcid.Orcid.getBio(Orcid.java:52)
    at org.dspace.authority.orcid.Orcid.queryAuthorityID(Orcid.java:83)
    at
org.dspace.authority.orcid.OrcidAuthorityValue.newInstance(OrcidAuthorityValue.java:249)
    at
org.dspace.authority.AuthorityValueServiceImpl.generateRaw(AuthorityValueServiceImpl.java:86)
    at
org.dspace.authority.AuthorityValueServiceImpl.update(AuthorityValueServiceImpl.java:100)
    at
org.dspace.authority.UpdateAuthorities.run(UpdateAuthorities.java:135)
    at
org.dspace.authority.UpdateAuthorities.main(UpdateAuthorities.java:66)
    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)
2016-08-22 11:55:13,504 INFO  org.dspace.core.Context @ abort() was called
on a closed Context object. No changes to abort.

If wget http://pub.orcid.org/0000-0002-8421-238X/orcid-bio , I do get an
XML file with the expected information.

(This is on DSpace 6.0 rc2.)

Sean
--

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to