com.fasterxml.jackson.databind.JsonMappingException: Could not find creator property with name 's' (in class LombokObject) at [Source: {"s":"test"}; line: 1, column: 1]

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.

,

The easiest solution is to provide a default constructor for the class you want to convert from/to json.

Solutions on the web

via GitHub by Raniz85
, 1 year ago
Could not find creator property with name 's' (in class LombokObject) at [Source: {"s":"test"}; line: 1, column: 1]
via GitHub by lukaszrek
, 1 year ago
Could not find creator property with name 'nested' (in class com.egnyte.delphi.cloudapp.common.jackson.ObjectMapperProviderUnitTest$Outer) at [Source: { "value" : 1, "nested1" : 2, "nested2" : 3 }; line: 1, column: 1]
via GitHub by mhlz
, 7 months ago
Could not find creator property with name 'innerTest' (in class Test) at [Source: { "innerTest": { "str": "str", "otherStr": "otherStr" } } ; line: 2, column: 1]
via Stack Overflow by Arpan Agrawal
, 5 months ago
Could not find creator property with name 'id' (in class com.gor.platform.mdm.core.pojo.Catalog)
via GitHub by laurentgo
, 10 months ago
Could not find creator property with name 'stringField' (in class org.apache.drill.TestJackson$SimplePojo) at [Source: { "intField": 1, "stringField": "foo" }; line: 1, column: 1]
via GitHub by AAverin
, 9 months ago
Could not find creator property with name 'gallery' (in class de.weltn24.natives.arnold.TestGalleryWidget) at [Source: {"widgetReferenceId":"widgetReferenceId","id":"id","headline":"headline","intro":"intro","role":"role","images":[{"id":"testImage1"},{"id":"testImage2"}]} ; line: 2, column: 1]
com.fasterxml.jackson.databind.JsonMappingException: Could not find creator property with name 's' (in class LombokObject) at [Source: {"s":"test"}; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:261)
at com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1233)
at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.addBeanProps(BeanDeserializerFactory.java:552)
at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:226)
at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:141)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:406)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:352)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)
at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:475)
at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:3890)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3785)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 times, 6 months ago
4 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
160 more bugmates

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