我正在尝试在Dspace中收集一个集合。 我在代理后面,我配置了系统代理和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
我创建了一个集合并设置了收获参数:
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)
有任何帮助吗? 提前谢谢。