java.net.UnknownHostException 收获 Dspace collection

java.net.UnknownHostException harvest Dspace collection

我正在尝试在 Dspace 中收获 collection。 我在代理后面,我配置了系统代理和 Dspace 代理:

#### Proxy Settings ######
# uncomment and specify both properties if proxy server required
# proxy server for external http requests - use regular hostname without port number
http.proxy.host = 127.0.0.1

# port number of proxy server
http.proxy.port = 3131

我创建了一个collection并设置了收获参数:

1. I marked the collection for harvest
2. OAI Provider: http://<the_site_url>/oai/request
3. OAI Id: col_DICT_35

我在终端执行:

/dspace/bin/dspace harvest -g -S http://<the_site_url>/oai/request -i col_DICT_35

日志文件说:

org.dspace.harvest.OAIHarvester @ Collections ready for immediate harvest: [44]

但是当我尝试时:

/dspace/bin/dspace harvest -r -e dspace@admin.com -c <local_collection_handle>

我有错误:

java.net.UnknownHostException: <the_site_url>
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at ORG.oclc.oai.harvester2.verb.HarvesterVerb.harvest(HarvesterVerb.java:209)
    at ORG.oclc.oai.harvester2.verb.HarvesterVerb.<init>(HarvesterVerb.java:183)
    at ORG.oclc.oai.harvester2.verb.Identify.<init>(Identify.java:48)
    at org.dspace.harvest.OAIHarvester.oaiGetDateGranularity(OAIHarvester.java:794)
    at org.dspace.harvest.OAIHarvester.runHarvest(OAIHarvester.java:250)
    at org.dspace.app.harvest.Harvest.runHarvest(Harvest.java:425)
    at org.dspace.app.harvest.Harvest.main(Harvest.java:175)
    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:226)
    at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

有什么帮助吗? 提前致谢。

我在 $JAVA_HOME/jre/lib/net.properties 中配置 JAVA 代理设置并且工作完美!