java.lang.IllegalStateException: No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed java.util.Date)

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

Solutions on the web

via Spring JIRA by Jaime L. López Carratalá, 1 year ago
No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed java.util.Date)
via Spring JIRA by Jaime L. López Carratalá, 1 year ago
No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed java.util.Date)
via Spring JIRA by Jaime L. López Carratalá, 1 year ago
No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed java.util.Date)
via Spring JIRA by Jaime L. López Carratalá, 1 year ago
No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed java.util.Date)
via GitHub by empiricalthought
, 6 months ago
No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed org.nuxeo.ecm.platform.usermanager.NuxeoPrincipalImpl)
via GitHub by empiricalthought
, 2 years ago
No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed org.nuxeo.ecm.platform.usermanager.NuxeoPrincipalImpl)
java.lang.IllegalStateException: No ObjectCodec defined for the generator, can only serialize simple wrapper types (type passed java.util.Date)
at com.fasterxml.jackson.core.base.GeneratorBase._writeSimpleObject(GeneratorBase.java:515)
at org.springframework.data.couchbase.core.convert.translation.JacksonTranslationService.encodeRecursive(JacksonTranslationService.java:93)
at org.springframework.data.couchbase.core.convert.translation.JacksonTranslationService.encode(JacksonTranslationService.java:60)
at org.springframework.data.couchbase.core.CouchbaseTemplate.translateEncode(CouchbaseTemplate.java:84)
at org.springframework.data.couchbase.core.CouchbaseTemplate.access$000(CouchbaseTemplate.java:49)
at org.springframework.data.couchbase.core.CouchbaseTemplate$2.doInBucket(CouchbaseTemplate.java:120)
at org.springframework.data.couchbase.core.CouchbaseTemplate$2.doInBucket(CouchbaseTemplate.java:117)
at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:234)
at org.springframework.data.couchbase.core.CouchbaseTemplate.save(CouchbaseTemplate.java:117)

Users with the same issue

You are the first who have seen this exception.

Write tip

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