Read/write converters not working [DATAMONGO-2400]
See original GitHub issueSparow199 opened DATAMONGO-2400 and commented
2019-10-30 12:10:53.107 [restartedMain] WARN o.s.data.convert.CustomConversions - Registering converter from class java.time.LocalDateTime to class org.joda.time.LocalDateTime as reading converter although it doesn't convert from a store-supported type! You might wanna check you annotation setup at the converter implementation. 2019-10-30 12:10:53.115 [restartedMain] WARN o.s.data.convert.CustomConversions - Registering converter from class java.time.LocalDateTime to class org.joda.time.LocalDateTime as reading converter although it doesn't convert from a store-supported type! You might wanna check you annotation setup at the converter implementation. 2019-10-30 12:10:53.117 [restartedMain] WARN o.s.data.convert.CustomConversions - Registering converter from class java.time.LocalDateTime to class java.time.Instant as reading converter although it doesn't convert from a store-supported type! You might wanna check you annotation setup at the converter implementation. 2019-10-30 12:10:53.117 [restartedMain] WARN o.s.data.convert.CustomConversions - Registering converter from class java.time.Instant to class java.time.LocalDateTime as reading converter although it doesn't convert from a store-supported type! You might wanna check you annotation setup at the converter implementation.
After upgrading to v2.1.9+ and 2.2.0+
Affects: 2.1.12 (Lovelace SR12), 2.2.1 (Moore SR1)
Reference URL: https://github.com/spring-projects/spring-boot/issues/18817
Issue Links:
-
DATACMNS-1615 Allow fine grained store specific converter registration
-
DATAMONGO-2458 Make Spring Data MongoDB work with java.time types out-of-the-box
Referenced from: pull request https://github.com/spring-projects/spring-data-mongodb/pull/810, and commits https://github.com/spring-projects/spring-data-mongodb/commit/3b6880edfd91d9012ffbcdf9573a91b13e8a2779, https://github.com/spring-projects/spring-data-mongodb/commit/e9d14f41a54acd71125e39ec26916e4a42bbd74e, https://github.com/spring-projects/spring-data-mongodb/commit/6d54b25ca34eb0e42e71419311b75b303ab773f6, https://github.com/spring-projects/spring-data-mongodb/commit/ee6276f92494addffbff63e439bcac139d178612, https://github.com/spring-projects/spring-data-mongodb/commit/6278d00b2883c5bbcad5cb3e1dc26ed35f2a0347
1 votes, 12 watchers
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Hi @christophstrobl,
we get the warning in a fresh setup with 2.4.5. You wrote the warning should have been fixed. We certainly miss something else. Do you have any clue why we still get that warning?
Using Spring boot 2.5.6 with spring-boot-starter-data-mongodb (2.5.6) and mongodb-driver-sync (4.2.3) still gives the warning on project startup.