All Questions
6 questions
0
votes
0
answers
501
views
Spring boot doesn't use jackson properties on application.properties file
I´m using Spring Boot 2.3.1, I included some Jackson properties in application.properties file, but I think they are not being applied when I get the response.
The dates are deserialized incorrectly (...
1
vote
1
answer
563
views
Method based serialization with Spring Data ElasticSearch 4.x (without Jackson)
We are running a Java, Spring application which indexes to ElasticSearch, using Spring Data Elasticsearch. Recently my team has moved from version 3.x to 4.x. This upgrade removes the Jackson mapper ...
1
vote
4
answers
9k
views
LocalDate deserialization &serialization error -jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of java.time.LocalDate
The birthdate of the employee stored in the Elastic seems to be stored as an incorrect datatype. I have setup code for Elasticseach client with object mapper and registered JavaTime module. I am ...
30
votes
4
answers
57k
views
Cannot construct instance of `java.time.LocalDate` - Spring boot, elasticseach, jackson
I'm using Spring-boot 2.0.0.M7 and spring-boot-starter-data-elasticsearch and elasticsearch 5 and I'm getting an error by deserializing a LocalDate field.
My Document looks like that:
@Document(...
-1
votes
2
answers
109
views
Cannot migrate my java code to Elasticsearch 2.4 (Java API)
I recently migrated to Elasticsearch 2.4 in my Java code. I am using the following external libs in my gradle file:
'spring-data-mongodb': 'org.springframework.data:spring-data-mongodb:1.6.0.RELEASE',...
3
votes
1
answer
3k
views
failed to map source {} to entity
I am getting the following error on reading a document from elasticsearch using Spring Data Elasticsearch:
ERROR SearchController - Nested Exception : failed to map source { document data } to Book
@...