com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'FieldType' that is to contain type id (for class org.dd4t.contentmodel.impl.BaseField) at [Source: N/A; 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

,

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

,

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 stackexchange.com by Unknown author, 1 year ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'FieldType' that is to contain type id (for class org.dd4t.contentmodel.impl.BaseField) at [Source: N/A; line: -1, column: -1]
via Tridion by Hirokazu Shikata
, 1 year ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'FieldType' that is to contain type id (for class org.dd4t.contentmodel.impl.BaseField) at [Source: N/A; line: -1, column: -1]
via GitHub by Tpt
, 1 year ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class org.wikidata.wdtk.datamodel.json.jackson.JacksonItemDocument) at [Source: {"entity":"Q26790101","redirect":"Q21863925"}; line: 1, column: 45]
via GitHub by cemo
, 2 years ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property '@class' that is to contain type id (for class com.fasterxml.jackson.databind.JsonNode) at [Source: java.io.StringReader@b240236; line: 1, column: 193]
via GitHub by shashigomaram
, 2 years ago
Unexpected token (null), expected FIELD_NAME: missing property '@type' that is to contain type id (for class com.test.Connection) at [Source: java.io.StringReader@24762cda; line: 1, column: 8234] (through reference chain: Object[][14])
via Stack Overflow by user2639828
, 2 years ago
Unexpected token (VALUE_NUMBER_INT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class Literal) at [Source: java.io.StringReader@45002203; line: 1, column: 2] (through reference chain: Field["value"])
com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'FieldType' that is to contain type id (for class org.dd4t.contentmodel.impl.BaseField) at [Source: N/A; line: -1, column: -1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.DeserializationContext.wrongTokenException(DeserializationContext.java:841)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedUsingDefaultImpl(AsPropertyTypeDeserializer.java:140)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:92)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:132)
at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:41)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3023)
at org.dd4t.databind.util.JsonUtils.renderComponentField(JsonUtils.java:46)
at org.dd4t.databind.builder.json.JsonModelConverter.deserializeGeneric(JsonModelConverter.java:302)
at org.dd4t.databind.builder.json.JsonModelConverter.buildField(JsonModelConverter.java:213)
at org.dd4t.databind.builder.json.JsonModelConverter.buildModelProperties(JsonModelConverter.java:117)
at org.dd4t.databind.builder.json.JsonModelConverter.convertSource(JsonModelConverter.java:94)
at org.dd4t.databind.builder.json.JsonDataBinder.buildModel(JsonDataBinder.java:177)
at org.dd4t.databind.DataBindFactory.buildModel(DataBindFactory.java:71)
at org.dd4t.databind.builder.json.JsonModelConverter.buildModelForField(JsonModelConverter.java:286)
at org.dd4t.databind.builder.json.JsonModelConverter.checkTypeAndBuildModel(JsonModelConverter.java:271)
at org.dd4t.databind.builder.json.JsonModelConverter.buildField(JsonModelConverter.java:210)
at org.dd4t.databind.builder.json.JsonModelConverter.buildModelProperties(JsonModelConverter.java:117)
at org.dd4t.databind.builder.json.JsonModelConverter.convertSource(JsonModelConverter.java:94)
at org.dd4t.databind.builder.json.JsonDataBinder.buildModel(JsonDataBinder.java:177)
at org.dd4t.databind.DataBindFactory.buildModel(DataBindFactory.java:71)
at org.dd4t.databind.builder.json.JsonModelConverter.buildModelForField(JsonModelConverter.java:286)
at org.dd4t.databind.builder.json.JsonModelConverter.checkTypeAndBuildModel(JsonModelConverter.java:271)
at org.dd4t.databind.builder.json.JsonModelConverter.buildField(JsonModelConverter.java:210)
at org.dd4t.databind.builder.json.JsonModelConverter.buildModelProperties(JsonModelConverter.java:117)
at org.dd4t.databind.builder.json.JsonModelConverter.convertSource(JsonModelConverter.java:94)
at org.dd4t.databind.builder.json.JsonDataBinder.buildModel(JsonDataBinder.java:177)
at org.dd4t.databind.builder.json.JsonDataBinder.buildModels(JsonDataBinder.java:138)

Users with the same issue

Once, 1 year ago
8 times, 1 year ago
Once, 4 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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