hibernate-redis
hibernate-redis copied to clipboard
doesn't support JsonJacksonCodec
while I changed the codec to JsonJacksonCodec
, I got this error:
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.hibernate.cache.spi.entry.StandardCacheEntryImpl (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
I am quite sure I have Jackson library included:
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8'
I can serialize my object to redis but I can't get it deserialized back to my web app.
I also added default constructor for my entity class but still same error.
Is this a bug?
I have the same issue. My version: compile 'com.github.debop:hibernate-redis:2.4.0', 'jackson-databind: version: '2.8.9'
I have the same issue. My version: compile 'com.github.debop:hibernate-redis:2.4.0', 'jackson-databind: version: '2.8.9'
Add these dependencies to your project
compile "com.fasterxml.jackson.core:jackson-core:2.9.8"
compile "com.fasterxml.jackson.core:jackson-databind:2.9.8"