My first attempt at posting this seems to have disappeared.
I am trying to access Design Documents on a remote Couchbase server. This is using server Version: 3.0.1 Community Edition (build-1444) with Java SDK version com.couchbase.client:java-client:jar:2.1.1:compile (from Maven dependency tree).
First, I open the connection…
Cluster aCluster = CouchbaseCluster.create(“my remote IP”);
…then I get the default bucket…
Bucket aBucket = aCluster.openBucket(“default”)
…so far so good. I then get the BucketManager and attempt to call getDesignDocuments()…
BucketManager aBucketManager = aBucket.bucketManager();
…it’s this last line that causes the problem. I get a ConnectionException due to a connection being attempted to localhost:8092.
I see that two ports are used to get things done, 8091 and 8092 (maybe there are others). Why is it trying to reach localhost when I have already provided my remote IP. Do I need to specify an IP per port?