Skip to content

Unable to connect to mongodb using reactive mongo DB drivers #5

@hitesh0387

Description

@hitesh0387

Hi,
I am unable to connect to set up flowable with mongo DB using reactive mongo driver. I have org.springframework.boot:spring-boot-starter-data-mongodb-reactive dependency in my gradle file but I still need to add org.mongodb:mongo-java-driver:3.12.11 dependency which eventually results in the below error.

I get the below error:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

com.mongodb.reactivestreams.client.MongoClients.createCluster(MongoClients.java:151)

The following method did not exist:

'com.mongodb.ServerApi com.mongodb.MongoClientSettings.getServerApi()'

The calling method's class, com.mongodb.reactivestreams.client.MongoClients, was loaded from the following location:

jar:file:/C:/gradle-7.4.2/caches/modules-2/files-2.1/org.mongodb/mongodb-driver-reactivestreams/4.6.1/cfbafbf85759e5f8036b8e724d44b4add95910e0/mongodb-driver-reactivestreams-4.6.1.jar!/com/mongodb/reactivestreams/client/MongoClients.class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions