Hi Daschl,
couchbase version is 3.0.3 and code is below
import java.util.List;
import java.util.concurrent.TimeUnit;
import com.couchbase.client.CouchbaseClient;
import net.spy.memcached.internal.GetFuture;
import net.spy.memcached.internal.OperationFuture;
public class MainClass {
public static final int EXP_TIME = 10;
public static final String KEY = “spoon”;
public static final String VALUE = “Hello World!”;
public static void main(String args[]) {
// Set the URIs and get a client
List uris = new LinkedList();
//Boolean do_delete = false;
// Connect to localhost or to the appropriate URI
uris.add(URI.create("http://ServerName:8091/pools"));
CouchbaseClient client = null;
try {
client = new CouchbaseClient(uris, "default", "");
System.out.println(“Successful”);
} catch (Exception e) {
System.err.println("Error connecting to Couchbase: "
+ e.getMessage());
System.exit(0);
}
}
}
please find the logs below of commandline
C:\CouchDB>java -classpath .;couchbase-client-1.4.8.jar;netty-3.5.5.Final.jar;sp
ymemcached-2.11.6.jar;commons-codec-1.5.jar;httpcore-4.3.jar;httpcore-nio-4.3.ja
r;jettison-1.1.jar;netty-3.5.5.Final.jar MainClass
2015-05-06 09:01:20.849 INFO com.couchbase.client.vbucket.provider.BucketConfigu
rationProvider: Could bootstrap through carrier publication.
2015-05-06 09:01:20.881 INFO com.couchbase.client.CouchbaseConnection: Added {Q
A sa=pvukrtspdt01.ukroi.tesco.org/ServrName:11210, #Rops=0, #Wops=0, #iq=0,
topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2015-05-06 09:01:20.881 ERROR com.couchbase.client.vbucket.VBucketNodeLocator:
Critical reconfiguration error: Server list from Configuration and Nodes are out
of synch. causing ServerName:11210 to be removed
2015-05-06 09:01:20.881 INFO com.couchbase.client.CouchbaseClient: CouchbaseCon
nectionFactory{bucket=‘default’, nodes=[http://ServerName:8091/pools], order=
RANDOM, opTimeout=2500, opQueue=16384, opQueueBlockTime=10000, obsPollInt=10, ob
sPollMax=500, obsTimeout=5000, viewConns=10, viewTimeout=75000, viewWorkers=1, c
onfigCheck=10, reconnectInt=1100, failureMode=Redistribute, hashAlgo=NATIVE_HASH
, authWaitTime=2500}
2015-05-06 09:01:20.974 INFO com.couchbase.client.CouchbaseClient: viewmode pro
perty isn’t defined. Setting viewmode to production mode
Successful
Please check and help me