Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warnings when registering Spring Data Elasticsearch store converters [DATACMNS-1728] #2150

Closed
spring-projects-issues opened this issue May 17, 2020 · 4 comments
Assignees
Labels
in: mapping status: superseded type: enhancement

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented May 17, 2020

sothawo opened DATACMNS-1728 and commented

When starting an application that uses Spring Data Elasticsearch, we alwys have these warnings in the log:

2020-05-17 11:14:15.726  WARN 11249 --- [           main] o.s.data.convert.CustomConversions       : Registering converter from class org.springframework.data.geo.Point to interface java.util.Map as writing converter although it doesn't convert to a store-supported type! You might want to check your annotation setup at the converter implementation.
2020-05-17 11:14:15.727  WARN 11249 --- [           main] o.s.data.convert.CustomConversions       : Registering converter from interface java.util.Map to class org.springframework.data.geo.Point as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation.
2020-05-17 11:14:15.727  WARN 11249 --- [           main] o.s.data.convert.CustomConversions       : Registering converter from class org.springframework.data.elasticsearch.core.geo.GeoPoint to interface java.util.Map as writing converter although it doesn't convert to a store-supported type! You might want to check your annotation setup at the converter implementation.
2020-05-17 11:14:15.727  WARN 11249 --- [           main] o.s.data.convert.CustomConversions       : Registering converter from interface java.util.Map to class org.springframework.data.elasticsearch.core.geo.GeoPoint as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation.

The registered store converters are alright. We cannot add Map as simple type, so how can we get rid of these warnings?


Affects: 2.3 GA (Neumann)

1 votes, 2 watchers

@spring-projects-issues spring-projects-issues added type: enhancement in: mapping labels Dec 30, 2020
@nkonev
Copy link

nkonev commented Feb 15, 2021

I see the same warning in case when I register converters for PostgreSQL JSON(b).

Reproducer.

@mp911de
Copy link
Member

mp911de commented Feb 15, 2021

@nkonev Care to file a ticket against Spring Data JDBC?

@nkonev
Copy link

nkonev commented Feb 15, 2021

@nkonev Care to file a ticket against Spring Data JDBC?

@mp911de done spring-projects/spring-data-relational#920

@mp911de
Copy link
Member

mp911de commented Feb 16, 2021

That issue was fixed with spring-projects/spring-data-elasticsearch#1677.

@mp911de mp911de closed this as completed Feb 16, 2021
@mp911de mp911de added the status: superseded label Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: mapping status: superseded type: enhancement
Projects
None yet
Development

No branches or pull requests

4 participants