com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class com.github.dexecutor.redisson.User and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Try indicating constructor to use @JsonCreator annotation.

,

You are trying to deserialize a type for which Jackson does not provide a default mapper. You should create your custom mapper for this type.

Solutions on the web

via GitHub by mnadeem
, 1 year ago
**No serializer found for class com.github.dexecutor.redisson.User and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )**
via Stack Overflow by craftsmannadeem
, 1 year ago
No serializer found for class com.github.dexecutor.redisson.User and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )
via Stack Overflow by Marco N.
, 1 year ago
No serializer found for class sun.util.ResourceBundleEnumeration and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: SomeClass["bundle"]->java.util.PropertyResourceBundle["keys"])
via Stack Overflow by konquestor
, 8 months ago
No suitable constructor found for type [simple type, class my.java.A]: can not instantiate from JSON object (need to add/enable type information?) at [Source: { "test": false }; line: 2, column: 3]
via palominolabs.com by Unknown author, 1 year ago
No suitable constructor found for type [simple type, class org.joda.time.Duration]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.eclipse.jetty.server.HttpInput@1c7b0f4d; line: 1, column: 47]
via Google Groups by Andrew Serff, 4 months ago
No content to map due to end-of-input druid_1 | at [Source: HttpInputOverHTTP@229757c0; line: 1, column: 1]
com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class com.github.dexecutor.redisson.User and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:269)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:68)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:32)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)
at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3631)
at com.github.dexecutor.redisson.JacksonMixIn.main(JacksonMixIn.java:13)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 9 months ago
140 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.