Hi I got this error:class com.couchbase.client.java.env.ClusterEnvironment has interface com.couchbase.client.core.env.CoreEnvironment as super class.
And I use Java 8 and 3.4.10 java couchbase client. My cluster environment definition:
ClusterEnvironment env =ClusterEnvironment.builder()
.timeoutConfig(e → {
e.kvTimeout(Duration.ofSeconds(props.getConnectTimeout()));
e.queryTimeout(Duration.ofSeconds(Long.parseLong(props.getQueryTimeout())));
})
.build();
Why get this error.
Also I share stack trace
The Couchbase Java SDK 3.4.10 should be built with Java 8. Can you provide your project or a link to your github repo?
Due to the security department, I cannot share the entire code. But I share code snippet and my core library version. I call my client spring config,
@Configuration
public class CouchbaseConfig {
@Bean
public synchronized CouchBaseClient couchbaseClient (
@Value("#{'${couchbase.merch.nodes}'.split(';')}") List<String> nodes,
@Value("${couchbase.merch.bucket.offer}") String bucketName,
@Value("${couchbase.merch.bucket.rule}") String ruleBucketName,
@Value("${couchbase.merch.user}") String userName,
@Value("${couchbase.merch.version}") String couchbaseVersion,
@Value("${couchbase.merch.connect.timeout}") String connectTimeout)
{
CouchbaseClientProps props = new CouchbaseClientProps();
props.setNodes(nodes);
ArrayList<String> buckets = new ArrayList<>();
buckets.add(bucketName);
buckets.add(ruleBucketName);
props.setBucketNames(buckets);
props.setUser(userName);
props.setConnectTimeout(Long.parseLong(connectTimeout));
props.setVersion(couchbaseVersion);
props.setPwd(new String(loadPassword(), StandardCharsets.UTF_8).trim());
String[] monitorErrors = { Error.COUCHBASE_ERROR };
props.setMonitorErrors(monitorErrors);
CouchBaseClient client = new CouchBaseClient(props);
client.init();
return client;
}
and my init function this style
public synchronized void init() {
LCEAT = System.currentTimeMillis();
disconnect();
**clusterEnvironment= ClusterEnvironment.builder()**
.timeoutConfig(e -> {
e.kvTimeout(Duration.ofSeconds(props.getConnectTimeout()));
e.queryTimeout(Duration.ofSeconds(Long.parseLong(props.getQueryTimeout())));
})
.build();
if (clusterEnvironment == null) {
throw new OmsException("couchbase env cannot be build.");
}
try {
Set<SeedNode> seedNodes = new HashSet<>();
props.getNodes().forEach(node -> seedNodes.add(SeedNode.create(node)));
this.cluster = Cluster.connect(seedNodes, ClusterOptions.clusterOptions(props.getUser(), props.getPwd()).environment(clusterEnvironment));
if (cluster == null)
throw new OmsException("Couchabse cluster is null");
for (String bucketName : props.getBucketNames()) {
Bucket _bucket = cluster.bucket(bucketName);
if (_bucket == null) {
logger.error("couchbase bucket cannot be opened.");
throw new OmsException("couchbase bucket cannot be opened.");
}
logger.info("Connected to the bucket " + bucketName);
buckets.put(bucketName, (Bucket) MonitoringProxy.newInstance(_bucket, props.getMonitorErrors()));
AsyncBucket _asynCBucket = _bucket.async();
if (_asynCBucket == null) {
logger.error("couchbase async bucket cannot be opened.");
throw new OmsException("couchbase async bucket cannot be opened.");
}
logger.info("Connected to the async bucket " + bucketName);
asyncBuckets.put(bucketName, (AsyncBucket) MonitoringProxy.newInstance(_asynCBucket, props.getMonitorErrors()));
}
} catch (Exception e) {
alert(false);
disconnect();
throw new OmsException("couchbase cluster cannot be build.", e);
}
alert(true);
}
finally my core library version;
<jdk.version>1.8</jdk.version>
<spring.starter.version>2.7.4</spring.starter.version>
<jee.version>8.0</jee.version>
<maven.javadoc.skip>true</maven.javadoc.skip>
${maven.build.timestamp}
<seamless.client.version>1.3.3.0</seamless.client.version>
<junit.jupiter.version>5.4.2</junit.jupiter.version>
<junit.platform.version>1.4.2</junit.platform.version>
<jsf.version>2.2.20</jsf.version>
ı make bold while ı got error point in the code
IncompatibleClassChangeError
This is the sort of error you’d get if you compiled against one version of the Couchbase Java SDK, but used a different, incompatible version at runtime.
First thing I’d try would be to rebuild all components of your project using Couchbase SDK 3.
If that doesn’t fix the problem, maybe it’s something to do with Spring – like perhaps it’s trying to bring in libraries from Couchbase Java SDK 2.
Are you building with Maven? If so, running mvn dependency:tree
should show you all the library versions for your project.
my dependency tree is here:
[INFO]
[INFO] ----------------------< com.tk.merch:merch-offer >----------------------
[INFO] Building merch-offer 1.0.29.3 [5/12]
[INFO] --------------------------------[ war ]---------------------------------
[WARNING] The POM for javax.xml.bind:jaxb-api:jar:2.3.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] — maven-dependency-plugin:2.8:tree (default-cli) @ merch-offer —
[INFO] com.tk.merch:merch-offer:war:1.0.29.3
[INFO] ± org.springframework.boot:spring-boot-starter-cache:jar:2.7.4:compile
[INFO] | ± org.springframework.boot:spring-boot-starter:jar:2.7.4:compile
[INFO] | | ± org.springframework.boot:spring-boot:jar:2.7.4:compile
[INFO] | | ± org.springframework.boot:spring-boot-autoconfigure:jar:2.7.4:compile
[INFO] | | ± org.springframework.boot:spring-boot-starter-logging:jar:2.7.4:compile
[INFO] | | | ± ch.qos.logback:logback-classic:jar:1.2.11:compile
[INFO] | | | | - ch.qos.logback:logback-core:jar:1.2.11:compile
[INFO] | | | ± org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] | | | | - org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] | | | - org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] | | ± jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | - org.yaml:snakeyaml:jar:2.0:compile
[INFO] | - org.springframework:spring-context-support:jar:5.3.23:compile
[INFO] | - org.springframework:spring-beans:jar:5.3.23:compile
[INFO] ± org.springframework.boot:spring-boot-starter-data-jpa:jar:2.7.4:compile
[INFO] | ± org.springframework.boot:spring-boot-starter-aop:jar:2.7.4:compile
[INFO] | | ± org.springframework:spring-aop:jar:5.3.23:compile
[INFO] | | - org.aspectj:aspectjweaver:jar:1.9.7:compile
[INFO] | ± org.springframework.boot:spring-boot-starter-jdbc:jar:2.7.4:compile
[INFO] | | ± com.zaxxer:HikariCP:jar:4.0.3:compile
[INFO] | | - org.springframework:spring-jdbc:jar:5.3.23:compile
[INFO] | ± jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | ± jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | ± org.hibernate:hibernate-core:jar:5.6.11.Final:compile
[INFO] | | ± net.bytebuddy:byte-buddy:jar:1.12.17:compile
[INFO] | | ± antlr:antlr:jar:2.7.7:compile
[INFO] | | ± org.jboss:jandex:jar:2.4.2.Final:compile
[INFO] | | ± org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile
[INFO] | | - org.glassfish.jaxb:jaxb-runtime:jar:2.3.6:compile
[INFO] | | ± org.glassfish.jaxb:txw2:jar:2.3.6:compile
[INFO] | | - com.sun.istack:istack-commons-runtime:jar:3.0.12:compile
[INFO] | ± org.springframework.data:spring-data-jpa:jar:2.7.3:compile
[INFO] | | ± org.springframework.data:spring-data-commons:jar:2.7.3:compile
[INFO] | | - org.springframework:spring-orm:jar:5.3.23:compile
[INFO] | - org.springframework:spring-aspects:jar:5.3.23:compile
[INFO] ± org.springframework.boot:spring-boot-starter-web:jar:2.7.4:compile
[INFO] | ± org.springframework.boot:spring-boot-starter-json:jar:2.7.4:compile
[INFO] | | ± com.fasterxml.jackson.core:jackson-databind:jar:2.13.4:compile
[INFO] | | | ± com.fasterxml.jackson.core:jackson-annotations:jar:2.13.4:compile
[INFO] | | | - com.fasterxml.jackson.core:jackson-core:jar:2.13.4:compile
[INFO] | | ± com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.4:compile
[INFO] | | ± com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.4:compile
[INFO] | | - com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.4:compile
[INFO] | ± org.springframework:spring-web:jar:5.3.23:compile
[INFO] | - org.springframework:spring-webmvc:jar:5.3.23:compile
[INFO] | - org.springframework:spring-expression:jar:5.3.23:compile
[INFO] ± org.springframework.boot:spring-boot-starter-web-services:jar:2.7.4:compile
[INFO] | ± com.sun.xml.messaging.saaj:saaj-impl:jar:1.5.3:compile
[INFO] | | ± jakarta.xml.soap:jakarta.xml.soap-api:jar:1.4.2:compile
[INFO] | | ± org.jvnet.staxex:stax-ex:jar:1.8.3:compile
[INFO] | | - com.sun.activation:jakarta.activation:jar:1.2.2:runtime
[INFO] | ± jakarta.xml.ws:jakarta.xml.ws-api:jar:2.3.3:compile
[INFO] | | - jakarta.jws:jakarta.jws-api:jar:2.1.0:runtime
[INFO] | ± org.springframework:spring-oxm:jar:5.3.23:compile
[INFO] | - org.springframework.ws:spring-ws-core:jar:3.1.3:compile
[INFO] | - org.springframework.ws:spring-xml:jar:3.1.3:compile
[INFO] ± org.springframework.kafka:spring-kafka:jar:2.8.9:compile
[INFO] | ± org.springframework:spring-context:jar:5.3.23:compile
[INFO] | ± org.springframework:spring-messaging:jar:5.3.23:compile
[INFO] | ± org.springframework:spring-tx:jar:5.3.23:compile
[INFO] | ± org.springframework.retry:spring-retry:jar:1.3.3:compile
[INFO] | ± org.apache.kafka:kafka-clients:jar:3.1.2:compile
[INFO] | | ± com.github.luben:zstd-jni:jar:1.5.0-4:runtime
[INFO] | | ± org.lz4:lz4-java:jar:1.8.0:runtime
[INFO] | | - org.xerial.snappy:snappy-java:jar:1.1.8.4:runtime
[INFO] | - com.google.code.findbugs:jsr305:jar:3.0.2:runtime
[INFO] ± org.springframework.boot:spring-boot-starter-webflux:jar:2.7.4:compile
[INFO] | ± org.springframework.boot:spring-boot-starter-reactor-netty:jar:2.7.4:compile
[INFO] | | - io.projectreactor.netty:reactor-netty-http:jar:1.0.23:compile
[INFO] | | ± io.netty:netty-codec-http:jar:4.1.82.Final:compile
[INFO] | | | ± io.netty:netty-common:jar:4.1.82.Final:compile
[INFO] | | | ± io.netty:netty-buffer:jar:4.1.82.Final:compile
[INFO] | | | ± io.netty:netty-transport:jar:4.1.82.Final:compile
[INFO] | | | ± io.netty:netty-codec:jar:4.1.82.Final:compile
[INFO] | | | - io.netty:netty-handler:jar:4.1.82.Final:compile
[INFO] | | ± io.netty:netty-codec-http2:jar:4.1.82.Final:compile
[INFO] | | ± io.netty:netty-resolver-dns:jar:4.1.82.Final:compile
[INFO] | | | ± io.netty:netty-resolver:jar:4.1.82.Final:compile
[INFO] | | | - io.netty:netty-codec-dns:jar:4.1.82.Final:compile
[INFO] | | ± io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.82.Final:compile
[INFO] | | | - io.netty:netty-resolver-dns-classes-macos:jar:4.1.82.Final:compile
[INFO] | | ± io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.82.Final:compile
[INFO] | | | ± io.netty:netty-transport-native-unix-common:jar:4.1.82.Final:compile
[INFO] | | | - io.netty:netty-transport-classes-epoll:jar:4.1.82.Final:compile
[INFO] | | - io.projectreactor.netty:reactor-netty-core:jar:1.0.23:compile
[INFO] | | - io.netty:netty-handler-proxy:jar:4.1.82.Final:compile
[INFO] | | - io.netty:netty-codec-socks:jar:4.1.82.Final:compile
[INFO] | - org.springframework:spring-webflux:jar:5.3.23:compile
[INFO] ± com.tk.merch:merch-common:jar:1.0.29.3:compile
[INFO] | ± com.tk.merch:merch-schemas:jar:1.0.29.3:compile
[INFO] | ± com.couchbase.client:java-client:jar:3.4.10:compile
[INFO] | | - com.couchbase.client:core-io:jar:2.4.10:compile
[INFO] | ± org.codehaus.plexus:plexus-utils:jar:3.3.0:compile
[INFO] | ± com.tk.edf:decrypt:jar:1.0.4.0:compile
[INFO] | ± com.google.code.gson:gson:jar:2.9.0:compile
[INFO] | ± org.jsoup:jsoup:jar:1.14.2:compile
[INFO] | ± org.apache.commons:commons-lang3:jar:3.12.0:compile
[INFO] | ± commons-lang:commons-lang:jar:2.6:compile
[INFO] | ± commons-io:commons-io:jar:2.11.0:compile
[INFO] | - commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | - commons-logging:commons-logging:jar:1.2:compile
[INFO] ± com.tk.merch:merch-repo:jar:1.0.29.3:compile
[INFO] | ± org.springframework.boot:spring-boot-starter-jersey:jar:2.7.4:compile
[INFO] | | ± org.springframework.boot:spring-boot-starter-validation:jar:2.7.4:compile
[INFO] | | ± org.glassfish.jersey.core:jersey-server:jar:2.35:compile
[INFO] | | | ± org.glassfish.jersey.core:jersey-common:jar:2.35:compile
[INFO] | | | | - org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
[INFO] | | | ± org.glassfish.jersey.core:jersey-client:jar:2.35:compile
[INFO] | | | ± jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
[INFO] | | | ± org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile
[INFO] | | | - jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | ± org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.35:compile
[INFO] | | ± org.glassfish.jersey.containers:jersey-container-servlet:jar:2.35:compile
[INFO] | | ± org.glassfish.jersey.ext:jersey-bean-validation:jar:2.35:compile
[INFO] | | ± org.glassfish.jersey.ext:jersey-spring5:jar:2.35:compile
[INFO] | | | ± org.glassfish.jersey.inject:jersey-hk2:jar:2.35:compile
[INFO] | | | | - org.glassfish.hk2:hk2-locator:jar:2.6.1:compile
[INFO] | | | ± org.glassfish.hk2:hk2:jar:2.6.1:compile
[INFO] | | | | ± org.glassfish.hk2:hk2-utils:jar:2.6.1:compile
[INFO] | | | | ± org.glassfish.hk2:hk2-api:jar:2.6.1:compile
[INFO] | | | | ± org.glassfish.hk2:hk2-core:jar:2.6.1:compile
[INFO] | | | | ± org.glassfish.hk2:hk2-runlevel:jar:2.6.1:compile
[INFO] | | | | - org.glassfish.hk2:class-model:jar:2.6.1:compile
[INFO] | | | | ± org.ow2.asm:asm-analysis:jar:7.1:compile
[INFO] | | | | ± org.ow2.asm:asm-commons:jar:7.1:compile
[INFO] | | | | ± org.ow2.asm:asm-tree:jar:7.1:compile
[INFO] | | | | - org.ow2.asm:asm-util:jar:7.1:compile
[INFO] | | | - org.glassfish.hk2:spring-bridge:jar:2.6.1:compile
[INFO] | | - org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.35:compile
[INFO] | | ± org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.35:compile
[INFO] | | - com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.13.4:compile
[INFO] | ± org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] | ± com.tk.merch.service.client:merch-service-client-pricing:jar:1.4.0.0:compile
[INFO] | ± io.reactivex:rxjava-reactive-streams:jar:1.2.1:compile
[INFO] | | ± io.reactivex:rxjava:jar:1.3.8:runtime
[INFO] | | - org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] | - io.projectreactor:reactor-core:jar:3.4.23:compile
[INFO] ± com.tk.merch:merch-service-client-atpco-baggage:jar:1.0.5:compile
[INFO] ± com.thy.mercury:seamless-client:jar:1.3.3.0:compile
[INFO] | ± com.thy.mercury:mercury-padis:jar:1.1.16.0:compile
[INFO] | - com.thy.mercury:matip-type-a-hth-client:jar:1.1.1.0:compile
[INFO] | - com.thy.mercury:iata-hth-server-plugin:jar:1.1.1.0:compile
[INFO] | ± com.thy.mercury:mercury-iata-hth:jar:1.1.7.0:compile
[INFO] | | - com.thy.mercury:mercury-core:jar:2.4.0.0:compile
[INFO] | | - org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | ± com.thy.mercury:mercury-matip:jar:1.1.6.0:compile
[INFO] | ± com.thy.cri:cri-session-manager:jar:3.6.1.0:compile
[INFO] | | - com.thy.mercury:mercury-utils:jar:2.2.2.0:compile
[INFO] | ± com.thy.mercury:pulsar:jar:0.6.2.0:compile
[INFO] | | ± com.thy.mercury:singularity-pulsar-link:jar:1.0.3.0:compile
[INFO] | | | - com.thy.mercury:cakewalk:jar:1.1.7.0:compile
[INFO] | | | ± com.thy.mercury:mercury-server:jar:1.6.1.0:compile
[INFO] | | | - com.thy.mercury:cakewalk-json:jar:1.0.0.0:compile
[INFO] | | - com.thy.mercury:orbital-client:jar:2.10.5.0:compile
[INFO] | | - com.thy.mercury:resonance:jar:0.7.1.0:compile
[INFO] | - com.thy.mercury:mercury-edifact:jar:1.2.3.0:compile
[INFO] ± wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] ± org.apache.ws.xmlschema:xmlschema-core:jar:2.2.3:compile
[INFO] ± org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] ± org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | - commons-codec:commons-codec:jar:1.15:compile
[INFO] ± commons-collections:commons-collections:jar:3.2.2:compile
[INFO] ± org.apache.commons:commons-pool2:jar:2.11.1:compile
[INFO] ± ojdbc7:ojdbc7:jar:1.0:compile
[INFO] ± javax.xml.bind:jaxb-api:jar:2.3.1:provided
[INFO] ± javax.validation:validation-api:jar:2.0.1.Final:provided
[INFO] ± javax:javaee-web-api:jar:8.0:provided
[INFO] ± org.hibernate:hibernate-validator:jar:5.4.2.Final:compile
[INFO] | ± org.jboss.logging:jboss-logging:jar:3.4.3.Final:compile
[INFO] | - com.fasterxml:classmate:jar:1.5.1:compile
[INFO] ± org.hibernate:hibernate-validator-annotation-processor:jar:5.4.2.Final:compile
[INFO] ± org.springframework.boot:spring-boot-starter-test:jar:2.7.4:test
[INFO] | ± org.springframework.boot:spring-boot-test:jar:2.7.4:test
[INFO] | ± org.springframework.boot:spring-boot-test-autoconfigure:jar:2.7.4:test
[INFO] | ± com.jayway.jsonpath:json-path:jar:2.7.0:test
[INFO] | | - net.minidev:json-smart:jar:2.4.8:test
[INFO] | | - net.minidev:accessors-smart:jar:2.4.8:test
[INFO] | | - org.ow2.asm:asm:jar:9.1:compile
[INFO] | ± jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | - jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | ± org.assertj:assertj-core:jar:3.22.0:test
[INFO] | ± org.hamcrest:hamcrest:jar:2.2:test
[INFO] | ± org.mockito:mockito-core:jar:4.5.1:test
[INFO] | | ± net.bytebuddy:byte-buddy-agent:jar:1.12.17:test
[INFO] | | - org.objenesis:objenesis:jar:3.2:compile
[INFO] | ± org.mockito:mockito-junit-jupiter:jar:4.5.1:test
[INFO] | ± org.skyscreamer:jsonassert:jar:1.5.1:test
[INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | ± org.springframework:spring-core:jar:5.3.23:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.3.23:compile
[INFO] | ± org.springframework:spring-test:jar:5.3.23:test
[INFO] | - org.xmlunit:xmlunit-core:jar:2.9.0:test
[INFO] ± org.junit.platform:junit-platform-launcher:jar:1.4.2:test
[INFO] | ± org.apiguardian:apiguardian-api:jar:1.0.0:test
[INFO] | - org.junit.platform:junit-platform-engine:jar:1.8.2:test
[INFO] | ± org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | - org.junit.platform:junit-platform-commons:jar:1.8.2:test
[INFO] ± org.junit.jupiter:junit-jupiter:jar:5.4.2:test
[INFO] | ± org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
[INFO] | ± org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
[INFO] | - org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
[INFO] ± biz.paluch.logging:logstash-gelf:jar:1.14.1:compile
[INFO] ± org.codehaus.janino:janino:jar:3.1.8:compile
[INFO] | - org.codehaus.janino:commons-compiler:jar:3.1.8:compile
[INFO] ± io.swagger:swagger-annotations:jar:1.5.0:compile
[INFO] ± com.googlecode.cqengine:cqengine:jar:3.6.0:compile
[INFO] | ± com.googlecode.concurrent-trees:concurrent-trees:jar:2.6.1:compile
[INFO] | ± org.javassist:javassist:jar:3.25.0-GA:compile
[INFO] | ± com.esotericsoftware:kryo:jar:5.3.0:compile
[INFO] | | ± com.esotericsoftware:reflectasm:jar:1.11.9:compile
[INFO] | | - com.esotericsoftware:minlog:jar:1.3.1:compile
[INFO] | ± de.javakaffee:kryo-serializers:jar:0.45:compile
[INFO] | ± org.antlr:antlr4-runtime:jar:4.7.2:compile
[INFO] | - net.jodah:typetools:jar:0.6.1:compile
[INFO] - com.tk.oms:oms-service-client-edf:jar:1.0.0:compile
do you see any imcompatible version 
do you see any imcompatible version 
I don’t see any obvious conflicts there. Maybe I was wrong about dependency:tree
showing the actual library versions that get bundled into a Spring Boot app.
I still have a strong suspicion that something is putting Couchbase SDK 2 on the class path at runtime. In SDK 2, CoreEnvironment was an interface; in SDK 3, it’s a concrete class. Some code is expecting one, but getting the other.
1 Like
Your right.I clean my repository .m2/com/couchbase directory and I didn’t give error after part of ClusterEnvironment.builder().
1 Like