JRedisGraph icon indicating copy to clipboard operation
JRedisGraph copied to clipboard

ResultSet should be serializable

Open pierrelambert opened this issue 5 years ago • 1 comments

pierrelambert avatar Oct 29 '20 10:10 pierrelambert

Using spring-boot exposing a service to retrieve a cipher query result using ResultSet RedisGraph.query(String graphId, String query). Exposed a Rest API to execute this service but receive :

“Type definition error: [simple type, class com.redislabs.redisgraph.impl.resultset.StatisticsImpl]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.redislabs.redisgraph.impl.resultset.StatisticsImpl and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.redislabs.redisgraph.impl.resultset.ResultSetImpl[\“statistics\“])”

pierrelambert avatar Oct 29 '20 11:10 pierrelambert