com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'int' into a subtype of [simple type, class org.apache.drill.synth.FieldSampler] at [Source: schema; line: 3, column: 23]

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 jbubier
, 1 year ago
Could not resolve type id 'int' into a subtype of [simple type, class org.apache.drill.synth.FieldSampler] at [Source: schema; line: 3, column: 23]
via GitHub by drcrallen
, 1 year ago
Could not resolve type id 'kafka' into a subtype of [simple type, class io.druid.query.lookup.LookupExtractorFactory] at [Source: {"type":"kafka","kafkaTopic":"testTopic","kafkaProperties":{"request.required.acks":"1","zookeeper.connect":"127.0.0.1:54849/kafka","zookeeper.sync.time.ms":"200","zookeeper.session.timeout.ms":"10000"}}; line: 1, column: 2]
via Google Groups by Ben Vogan, 4 months ago
Could not resolve type id 'index_kafka' into a subtype of [simple type, class io.druid.indexing.common.task.Task] at [Source: [B@5035ce8a; line: 1, column: 2]
via Google Groups by Gian Merlino, 4 months ago
Could not resolve type id 'index_kafka' into a subtype of [simple type, class io.druid.indexing.common.task.Task] at [Source: [B@6e841513; line: 1, column: 2]
via GitHub by gaydenko
, 2 years ago
Can not instantiate abstract type [simple type, class scala.runtime.Nothing$] (need to add/enable type information?) at [Source: {"i":42}; line: 1, column: 2]
via Stack Overflow by Andrew Gaydenko
, 2 years ago
Can not instantiate abstract type [simple type, class scala.runtime.Nothing$] (need to add/enable type information?) at [Source: {"i":42}; line: 1, column: 2]
com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'int' into a subtype of [simple type, class org.apache.drill.synth.FieldSampler] at [Source: schema; line: 3, column: 23]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
at com.fasterxml.jackson.databind.DeserializationContext.unknownTypeException(DeserializationContext.java:701)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:155)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:98)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:82)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:107)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:228)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:203)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:23)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2796)
at org.apache.drill.synth.SchemaSampler.(SchemaSampler.java:34)
at org.apache.drill.synth.Synth.main(Synth.java:30)

Users with the same issue

26 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years 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.