Skip to content

After migrating to spring boot 3.0.2 getting - Couldn't find PersistentEntity for type class org.bson.Document #4300

Closed
@serleonsolo2

Description

@serleonsolo2

After upgrading to
spring boot 3.0.2
spring-data-mongodb-4.0.1
spring-data-commons-3.0.1

All calls like below are failing with Couldn't find PersistentEntity for type class org.bson.Document:

reactiveMongoTemplate.findAndReplace(
                    query,
                    replacement,
                    options,
                    Document::class.java,
                    MasterData.COLLECTION_NAME,
                    MasterData::class.java
                )

replacement has no id field, type is org.bson.Document

PS The same code works without any issues on versions:
spring-data-mongodb-3.2.10
spring-data-commons-2.5.10

Metadata

Metadata

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions