Tag: cloudant

从本地连接到Cloudant DB时出现连接错误

我是cloudant的新手。 我编写了连接cloudant DB的代码,它是bluemix中的DBaas。 我已在本地编写代码来连接cloudant DB。 以下是代码 try { user=”4728f43d-fcd2-41f0-be63-8945a78a9dab-bluemix”; password=”xxxxxxxxxxxxxxxx”; url=”https://4728f43d-fcd2-41f0-be63-8945a78a9dab-bluemix:xxxxxxxxxxxxxxxx@4728f43d-fcd2-41f0-be63-8945a78a9dab-bluemix.cloudant.com”; System.setProperty(“http.proxyHost”, “9.184.9.13”); System.setProperty(“http.proxyPort”, “80”); //user=”8452e722-8945-47d9-b372-ede45e55a7a7-bluemix”; //password=”xxxxxxxxxxxxxxxx”; //url=”https://8452e722-8945-47d9-b372-ede45e55a7a7-bluemix:xxxxxxxxxxxxxxxx@8452e722-8945-47d9-b372-ede45e55a7a7-bluemix.cloudant.com”; CloudantClient client = ClientBuilder.account(user) .username(user) .password(password) .build(); return client; } catch (CouchDbException e) { throw new RuntimeException(“Unable to connect to repository”, e); } 我在Web sphere应用程序Liberty配置文件上本地部署了应用程序。 在访问数据库连接时,我遇到了exception。 请告诉我连接cloudant DB需要做些什么。 我正在使用cloudant-client-2.2.0.jar来访问云端数据库 [ERROR ] Failed to read cookie response header […]