Getting Started not getting far

I downloaded and installed 2.2 Enterprise and the Admin console works great.

Imported the jars in the Java SDK and tried the hello world example.

Here is the console when I try to run it.

2013-10-24 10:30:57.391 INFO com.couchbase.client.CouchbaseMemcachedConnection: Added {QA sa=/127.0.0.1:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2013-10-24 10:30:57.400 INFO com.couchbase.client.CouchbaseMemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@15111511
Exception in thread "main" java.lang.NoSuchMethodError: com/couchbase/client/CouchbaseConnectionFactory.getListenerExecutorService()Ljava/util/concurrent/ExecutorService;
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:252)
at com.couchbase.client.CouchbaseClient.(CouchbaseClient.java:181)
at com.smart.soa.handlers.CBHello.main(CBHello.java:39)

1 Answer

« Back to question.

Hello,

It looks like an issue with the Java dependencies.

Which version of the SDK are you using?

Have you imported them using Maven or manually?
Can you use Maven? it makes the dependency management a lot easier.

Regards
Tug
@tgrall

Thanks, it is in a Java Compute Node in Websphere Message Broker, so Maven not a factor. I had been using Memcached and Spymemcached before migrating to couchbase, so I had a later version of the client in my classpath that didn't have that method. Removed the newer version jar and retained the one in the couchbase distro...bingo that works great.