Description
java.lang.UnsupportedOperationException: No couch port for cache buckets
at com.couchbase.client.vbucket.config.CacheConfig.getCouchServers(CacheConfig.java:152)
at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:232)
at com.couchbase.cbc.App.main(App.java:75)
Perhaps there's some convoluted way to make it work by creating five thousand factories, but this can be a simple check in the ctor:
if (getVBucketConfig().getConfigType() == ConfigType.COUCHBASE)
{ ... }else
{ /* maybe warn here */ }And then of course making sure any view execution methods return appropriate error messages.