question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Read/write converters not working [DATAMONGO-2400]

See original GitHub issue

Sparow199 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:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

13reactions
jenshoffmann1331commented, May 11, 2021

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?

7reactions
arturbdrcommented, Nov 5, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to write custom converters for JSON serialization - .NET
Learn how to create custom converters for the JSON serialization classes that are provided in the System.Text.Json namespace.
Read more >
读/写转换器无法工作[DataMongo-2400]:Read/write converters ...
Read/write converters not working [DATAMONGO-2400] sparow199 ... LocalDateTime as reading converter although it doesn't convert from a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found