Java Client Compatibilty Issues

Hi All,

I am using java-client version 3.1.0, reactor-core version 3.4.0 and couchbase-transactions version 1.0.1. When I try to run my application I am getting the following error:
An attempt was made to call a method that does not exist. The attempt was made from the following location:

        com.couchbase.transactions.cleanup.TransactionsCleanup.runRegularAttemptsCleanupThread(TransactionsCleanup.java:223)

    The following method did not exist:

        reactor.core.publisher.Flux.retryWhen(Ljava/util/function/Function;)Lreactor/core/publisher/Flux;

    The method's class, reactor.core.publisher.Flux, is available from the following locations:

        jar:file:/C:/Users/***/.m2/repository/io/projectreactor/reactor-core/3.4.0/reactor-core-3.4.0.jar!/reactor/core/publisher/Flux.class

    It was loaded from the following location:

        file:/C:/Users/***/.m2/repository/io/projectreactor/reactor-core/3.4.0/reactor-core-3.4.0.jar


    Action:

    Correct the classpath of your application so that it contains a single, compatible version of reactor.core.publisher.Flux

I have even tried with the latest version. Can you please let me know which version to use when using transactions.

Hi @vijethas
In general I recommend pulling just the transactions library to your project, and letting your project management tool (gradle, Maven etc.) transitively pull in the compatible Java client version.
The latest version of the transactions library is 1.1.3, which is not binary compatible with Java SDK 3.1.0. Version 1.1.4 will be, and is expected to release this week.

Hi Graham.pople
Thank you for the answer