- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 CloudantClient 库连接到 Cloudant CouchDB。此调用没有引发任何异常。但在此之后,当我使用 CloudantClient 调用任何电话时,我收到 HttpHostConnectException
。我尝试调用类似 serverVersion
的电话, getAllDbs
等等。这是代码:
cloudantClient = new CloudantClient(username, password);
//ConnectOptions options = new ConnectOptions();
//options.setProxyHost("myproxy.address.co.in");
//options.setProxyPort(8080);
//options.setConnectionTimeout(3000);
//options.setMaxConnections(100);
//options.setSocketTimeout(30000);
//cloudantClient = new CloudantClient(username, password, options);
//cloudantClient = new CloudantClient(username, password);
//cloudantClient = new CloudantClient(username, username, password);
//cloudantClient = new CloudantClient(url, username, password);
System.out.println("Connected to Cloudant");
System.out.println("Trying to fetch metadata from Cloudant");
System.out.println("Server Version: " + cloudantClient.serverVersion());
List<String> databases = cloudantClient.getAllDbs();
System.out.println("All my databases : ");
for ( String db : databases ) {
System.out.println(db);
}
我正在 Eclipse 中运行此代码,并且凭据正确,因为我可以从浏览器 REST 客户端成功调用。异常的完整堆栈跟踪(出于安全原因,我已将日志中的 acct/pwd 替换为 acct 字符串):
Connected to Cloudant
Trying to fetch metadata from Cloudant
2015-07-29 10:07:39 DEBUG CouchDbClient:? - > GET /
2015-07-29 10:07:39 DEBUG RequestAddCookies:122 - CookieSpec selected: default
2015-07-29 10:07:39 DEBUG RequestAddCookies:167 - Cookie [version: 0][name: AuthSession][value: <Acct_PWD>][domain: <Account>.cloudant.com][path: null][expiry: null] match [(secure)<Account>.cloudant.com:443/]
2015-07-29 10:07:39 DEBUG RequestAuthCache:130 - Re-using cached 'basic' auth scheme for https://<Account>.cloudant.com:443
2015-07-29 10:07:39 DEBUG RequestAuthCache:144 - No credentials for preemptive authentication
2015-07-29 10:07:39 DEBUG PoolingHttpClientConnectionManager:249 - Connection request: [route: {s}->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
2015-07-29 10:07:39 DEBUG PoolingHttpClientConnectionManager:282 - Connection leased: [id: 0][route: {s}->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
2015-07-29 10:07:39 DEBUG MainClientExec:234 - Opening connection {s}->https://<Account>.cloudant.com:443
2015-07-29 10:07:40 DEBUG DefaultHttpClientConnectionOperator:131 - Connecting to <Account>.cloudant.com/184.173.103.226:443
2015-07-29 10:07:40 DEBUG SSLConnectionSocketFactory:335 - Connecting socket to <Account>.cloudant.com/184.173.103.226:443 with timeout 0
2015-07-29 10:08:01 DEBUG DefaultManagedHttpClientConnection:87 - http-outgoing-0: Shutdown connection
2015-07-29 10:08:01 DEBUG MainClientExec:128 - Connection discarded
2015-07-29 10:08:01 DEBUG DefaultManagedHttpClientConnection:79 - http-outgoing-0: Close connection
2015-07-29 10:08:01 DEBUG PoolingHttpClientConnectionManager:320 - Connection released: [id: 0][route: {s}->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
2015-07-29 10:08:01 DEBUG MainClientExec:143 - Cancelling request execution
Exception in thread "main" org.lightcouch.CouchDbException: Error executing request.
at org.lightcouch.CouchDbClientBase.executeRequest(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.serverVersion(Unknown Source)
at com.cloudant.client.api.CloudantClient.serverVersion(Unknown Source)
at boss.metering.agent.connection.CloudantConnection.<init>(CloudantConnection.java:94)
at boss.metering.agent.connection.DBCommunicator.getCloudantConnection(DBCommunicator.java:33)
at boss.metering.agent.connection.DBCommunicator.main(DBCommunicator.java:26)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to <Account>.cloudant.com:443 [<Account>.cloudant.com/184.173.103.226] failed: Connection timed out: connect
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
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:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
... 8 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
... 17 more
我在异常跟踪中看到的是一些 IP 地址被附加到 URL:<Account>.cloudant.com/184.173.103.226
我不确定此 IP 是如何以及何时添加到 URL 中的。我直接使用 Java Cloudant 客户端 API。
任何人都可以提供任何指示/输入来解决此问题吗?
添加下面更新的代码以供引用我尝试连接的所有差异选项 -
在下面的 ConnectOptions 中设置代理时添加堆栈跟踪。出于安全原因,我已将真实帐户凭据和代理详细信息替换为字符串。 -
Connected to Cloudant
Trying to fetch metadata from Cloudant
2015-07-29 20:21:23 DEBUG CouchDbClient:? - > GET /
2015-07-29 20:21:23 DEBUG RequestAddCookies:122 - CookieSpec selected: default
2015-07-29 20:21:23 DEBUG RequestAddCookies:167 - Cookie [version: 0][name: AuthSession][value: <AccountPWD>][domain: <Account>.cloudant.com][path: null][expiry: null] match [(secure)<Account>.cloudant.com:443/]
2015-07-29 20:21:23 DEBUG RequestAuthCache:130 - Re-using cached 'basic' auth scheme for https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG RequestAuthCache:144 - No credentials for preemptive authentication
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:249 - Connection request: [route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:282 - Connection leased: [id: 0][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 1 of 100; total allocated: 1 of 100]
2015-07-29 20:21:23 DEBUG MainClientExec:234 - Opening connection {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:87 - http-outgoing-0: Shutdown connection
2015-07-29 20:21:23 DEBUG MainClientExec:128 - Connection discarded
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:79 - http-outgoing-0: Close connection
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:320 - Connection released: [id: 0][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 INFO RetryExec:96 - I/O exception (org.apache.http.conn.UnsupportedSchemeException) caught when processing request to {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443: http protocol is not supported
2015-07-29 20:21:23 DEBUG RetryExec:103 - http protocol is not supported
org.apache.http.conn.UnsupportedSchemeException: http protocol is not supported
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:108)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:388)
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:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.lightcouch.CouchDbClientBase.executeRequest(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.serverVersion(Unknown Source)
at com.cloudant.client.api.CloudantClient.serverVersion(Unknown Source)
at boss.metering.agent.connection.CloudantConnection.testCloudantDBConnection(CloudantConnection.java:284)
at boss.metering.agent.connection.CloudantConnection.<init>(CloudantConnection.java:90)
at boss.metering.agent.connection.DBCommunicator.getCloudantConnection(DBCommunicator.java:32)
at boss.metering.agent.connection.DBCommunicator.main(DBCommunicator.java:26)
2015-07-29 20:21:23 INFO RetryExec:112 - Retrying request to {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG CouchDbClient:? - > GET /
2015-07-29 20:21:23 DEBUG RequestAddCookies:122 - CookieSpec selected: default
2015-07-29 20:21:23 DEBUG RequestAddCookies:167 - Cookie [version: 0][name: AuthSession][value: <AccountPWD>][domain: <Account>.cloudant.com][path: null][expiry: null] match [(secure)<Account>.cloudant.com:443/]
2015-07-29 20:21:23 DEBUG RequestAuthCache:130 - Re-using cached 'basic' auth scheme for https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG RequestAuthCache:144 - No credentials for preemptive authentication
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:249 - Connection request: [route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:282 - Connection leased: [id: 1][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 1 of 100; total allocated: 1 of 100]
2015-07-29 20:21:23 DEBUG MainClientExec:234 - Opening connection {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:87 - http-outgoing-1: Shutdown connection
2015-07-29 20:21:23 DEBUG MainClientExec:128 - Connection discarded
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:79 - http-outgoing-1: Close connection
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:320 - Connection released: [id: 1][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 INFO RetryExec:96 - I/O exception (org.apache.http.conn.UnsupportedSchemeException) caught when processing request to {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443: http protocol is not supported
2015-07-29 20:21:23 DEBUG RetryExec:103 - http protocol is not supported
org.apache.http.conn.UnsupportedSchemeException: http protocol is not supported
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:108)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:388)
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:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.lightcouch.CouchDbClientBase.executeRequest(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.serverVersion(Unknown Source)
at com.cloudant.client.api.CloudantClient.serverVersion(Unknown Source)
at boss.metering.agent.connection.CloudantConnection.testCloudantDBConnection(CloudantConnection.java:284)
at boss.metering.agent.connection.CloudantConnection.<init>(CloudantConnection.java:90)
at boss.metering.agent.connection.DBCommunicator.getCloudantConnection(DBCommunicator.java:32)
at boss.metering.agent.connection.DBCommunicator.main(DBCommunicator.java:26)
2015-07-29 20:21:23 INFO RetryExec:112 - Retrying request to {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG CouchDbClient:? - > GET /
2015-07-29 20:21:23 DEBUG RequestAddCookies:122 - CookieSpec selected: default
2015-07-29 20:21:23 DEBUG RequestAddCookies:167 - Cookie [version: 0][name: AuthSession][value: <AccountPWD>][domain: <Account>.cloudant.com][path: null][expiry: null] match [(secure)<Account>.cloudant.com:443/]
2015-07-29 20:21:23 DEBUG RequestAuthCache:130 - Re-using cached 'basic' auth scheme for https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG RequestAuthCache:144 - No credentials for preemptive authentication
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:249 - Connection request: [route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:282 - Connection leased: [id: 2][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 1 of 100; total allocated: 1 of 100]
2015-07-29 20:21:23 DEBUG MainClientExec:234 - Opening connection {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:87 - http-outgoing-2: Shutdown connection
2015-07-29 20:21:23 DEBUG MainClientExec:128 - Connection discarded
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:79 - http-outgoing-2: Close connection
Exception in thread "main" org.lightcouch.CouchDbException: Error executing request.
at org.lightcouch.CouchDbClientBase.executeRequest(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.serverVersion(Unknown Source)
at com.cloudant.client.api.CloudantClient.serverVersion(Unknown Source)
at boss.metering.agent.connection.CloudantConnection.testCloudantDBConnection(CloudantConnection.java:284)
at boss.metering.agent.connection.CloudantConnection.<init>(CloudantConnection.java:90)
at boss.metering.agent.connection.DBCommunicator.getCloudantConnection(DBCommunicator.java:32)
at boss.metering.agent.connection.DBCommunicator.main(DBCommunicator.java:26)
Caused by: org.apache.http.conn.UnsupportedSchemeException: http protocol is not supported
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:108)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:388)
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:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
... 9 more
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:320 - Connection released: [id: 2][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 INFO RetryExec:96 - I/O exception (org.apache.http.conn.UnsupportedSchemeException) caught when processing request to {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443: http protocol is not supported
2015-07-29 20:21:23 DEBUG RetryExec:103 - http protocol is not supported
org.apache.http.conn.UnsupportedSchemeException: http protocol is not supported
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:108)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:388)
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:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.lightcouch.CouchDbClientBase.executeRequest(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.get(Unknown Source)
at org.lightcouch.CouchDbClientBase.serverVersion(Unknown Source)
at com.cloudant.client.api.CloudantClient.serverVersion(Unknown Source)
at boss.metering.agent.connection.CloudantConnection.testCloudantDBConnection(CloudantConnection.java:284)
at boss.metering.agent.connection.CloudantConnection.<init>(CloudantConnection.java:90)
at boss.metering.agent.connection.DBCommunicator.getCloudantConnection(DBCommunicator.java:32)
at boss.metering.agent.connection.DBCommunicator.main(DBCommunicator.java:26)
2015-07-29 20:21:23 INFO RetryExec:112 - Retrying request to {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG CouchDbClient:? - > GET /
2015-07-29 20:21:23 DEBUG RequestAddCookies:122 - CookieSpec selected: default
2015-07-29 20:21:23 DEBUG RequestAddCookies:167 - Cookie [version: 0][name: AuthSession][value: <AccountPWD>][domain: <Account>.cloudant.com][path: null][expiry: null] match [(secure)<Account>.cloudant.com:443/]
2015-07-29 20:21:23 DEBUG RequestAuthCache:130 - Re-using cached 'basic' auth scheme for https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG RequestAuthCache:144 - No credentials for preemptive authentication
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:249 - Connection request: [route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:282 - Connection leased: [id: 3][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 1 of 100; total allocated: 1 of 100]
2015-07-29 20:21:23 DEBUG MainClientExec:234 - Opening connection {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:87 - http-outgoing-3: Shutdown connection
2015-07-29 20:21:23 DEBUG MainClientExec:128 - Connection discarded
2015-07-29 20:21:23 DEBUG DefaultManagedHttpClientConnection:79 - http-outgoing-3: Close connection
2015-07-29 20:21:23 DEBUG PoolingHttpClientConnectionManager:320 - Connection released: [id: 3][route: {tls}->http://<myproxy.co.in>:0->https://<Account>.cloudant.com:443][total kept alive: 0; route allocated: 0 of 100; total allocated: 0 of 100]
2015-07-29 20:21:23 DEBUG MainClientExec:143 - Cancelling request execution
最佳答案
事实证明,设置代理时 HTTP 的问题是我们这边的一个错误(对此感到抱歉)。我们发布了 1.2.1,修复了这个问题。
http://mvnrepository.com/artifact/com.cloudant/cloudant-client/1.2.1
关于java - 使用适用于 Cloudant DB 的 CloudantClient java API 时出现 HttpHostConnectException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31691443/
SQLite、Content provider 和 Shared Preference 之间的所有已知区别。 但我想知道什么时候需要根据情况使用 SQLite 或 Content Provider 或
警告:我正在使用一个我无法完全控制的后端,所以我正在努力解决 Backbone 中的一些注意事项,这些注意事项可能在其他地方更好地解决......不幸的是,我别无选择,只能在这里处理它们! 所以,我的
我一整天都在挣扎。我的预输入搜索表达式与远程 json 数据完美配合。但是当我尝试使用相同的 json 数据作为预取数据时,建议为空。点击第一个标志后,我收到预定义消息“无法找到任何内容...”,结果
我正在制作一个模拟 NHL 选秀彩票的程序,其中屏幕右侧应该有一个 JTextField,并且在左侧绘制弹跳的选秀球。我创建了一个名为 Ball 的类,它实现了 Runnable,并在我的主 Draf
这个问题已经有答案了: How can I calculate a time span in Java and format the output? (18 个回答) 已关闭 9 年前。 这是我的代码
我有一个 ASP.NET Web API 应用程序在我的本地 IIS 实例上运行。 Web 应用程序配置有 CORS。我调用的 Web API 方法类似于: [POST("/API/{foo}/{ba
我将用户输入的时间和日期作为: DatePicker dp = (DatePicker) findViewById(R.id.datePicker); TimePicker tp = (TimePic
放宽“邻居”的标准是否足够,或者是否有其他标准行动可以采取? 最佳答案 如果所有相邻解决方案都是 Tabu,则听起来您的 Tabu 列表的大小太长或您的释放策略太严格。一个好的 Tabu 列表长度是
我正在阅读来自 cppreference 的代码示例: #include #include #include #include template void print_queue(T& q)
我快疯了,我试图理解工具提示的行为,但没有成功。 1. 第一个问题是当我尝试通过插件(按钮 1)在点击事件中使用它时 -> 如果您转到 Fiddle,您会在“内容”内看到该函数' 每次点击都会调用该属
我在功能组件中有以下代码: const [ folder, setFolder ] = useState([]); const folderData = useContext(FolderContex
我在使用预签名网址和 AFNetworking 3.0 从 S3 获取图像时遇到问题。我可以使用 NSMutableURLRequest 和 NSURLSession 获取图像,但是当我使用 AFHT
我正在使用 Oracle ojdbc 12 和 Java 8 处理 Oracle UCP 管理器的问题。当 UCP 池启动失败时,我希望关闭它创建的连接。 当池初始化期间遇到 ORA-02391:超过
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve
引用这个plunker: https://plnkr.co/edit/GWsbdDWVvBYNMqyxzlLY?p=preview 我在 styles.css 文件和 src/app.ts 文件中指定
为什么我的条形这么细?我尝试将宽度设置为 1,它们变得非常厚。我不知道还能尝试什么。默认厚度为 0.8,这是应该的样子吗? import matplotlib.pyplot as plt import
当我编写时,查询按预期执行: SELECT id, day2.count - day1.count AS diff FROM day1 NATURAL JOIN day2; 但我真正想要的是右连接。当
我有以下时间数据: 0 08/01/16 13:07:46,335437 1 18/02/16 08:40:40,565575 2 14/01/16 22:2
一些背景知识 -我的 NodeJS 服务器在端口 3001 上运行,我的 React 应用程序在端口 3000 上运行。我在 React 应用程序 package.json 中设置了一个代理来代理对端
我面临着一个愚蠢的问题。我试图在我的 Angular 应用程序中延迟加载我的图像,我已经尝试过这个2: 但是他们都设置了 src attr 而不是 data-src,我在这里遗漏了什么吗?保留 d
我是一名优秀的程序员,十分优秀!