Description
Nikola Matkovic opened DATAES-274 and commented
When retrieving data from elasticsearch using elasticsearch repository I get the following exception:
exception:org.springframework.http.converter.HttpMessageNotWritableException - Could not write content: (was java.lang.NullPointerException) (through reference chain: org.springframework.data.elasticsearch.core.aggregation.impl.AggregatedPageImpl["facets"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: org.springframework.data.elasticsearch.core.aggregation.impl.AggregatedPageImpl["facets"])"
Using this method in repository that extends ElasticsearchRepository
Page<EventLog> findBySeverity(String severity, Pageable pageable);
using:
- elasticsearch client 2.3.3
- spring-boot 1.4.0.RC1
- spring-data-elasticsearch 2.1.0.BUILD-SNAPSHOT
Referenced from: commits a085c06
3 votes, 10 watchers