hibernate-redis icon indicating copy to clipboard operation
hibernate-redis copied to clipboard

doesn't support JsonJacksonCodec

Open samyc1201 opened this issue 7 years ago • 2 comments

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?

samyc1201 avatar Jan 29 '18 08:01 samyc1201

I have the same issue. My version: compile 'com.github.debop:hibernate-redis:2.4.0', 'jackson-databind: version: '2.8.9'

Marek00Malik avatar Mar 08 '18 15:03 Marek00Malik

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"

aydinozturk avatar Apr 03 '19 14:04 aydinozturk