com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'io.l5d.zkLeader' into a subtype of [simple type, class io.buoyant.namer.NamerConfig]: known type ids = [NamerConfig, io.l5d.consul, io.l5d.fs, io.l5d.k8s, io.l5d.marathon, io.l5d.serversets] at [Source: java.io.StringReader@1e636ea3; line: 38, column: 9] (through reference chain: io.buoyant.namerd.NamerdConfig["namers"]->com.fasterxml.jackson.module.scala.deser.BuilderWrapper[0])

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 JustinVenus
, 1 year ago
Could not resolve type id 'io.l5d.zkLeader' into a subtype of [simple type, class io.buoyant.namer.NamerConfig]: known type ids = [NamerConfig, io.l5d.consul, io.l5d.fs, io.l5d.k8s, io.l5d.marathon, io.l5d.serversets] at [Source
via GitHub by JustinVenus
, 1 year ago
Could not resolve type id 'io.l5d.zkLeader' into a subtype of [simple type, class io.buoyant.namer.NamerConfig]: known type ids = [NamerConfig, io.l5d.consul, io.l5d.fs, io.l5d.k8s, io.l5d.marathon, io.l5d.serversets] at [Source
via GitHub by bwaldvogel
, 1 year ago
Could not resolve type id 'OtherValue' into a subtype of [simple type, class Value]: known type ids = [FirstValue, Value] at [Source: {"value":{"@type":"OtherValue","string":"some other value"}}; line: 1, column: 11] (through reference chain: Holder["value"])
via GitHub by pnepywoda
, 2 years ago
Could not resolve type id 'ImmutableDatasetIdLocator$Json' into a subtype of [simple type, class com.palantir.foundry.build.api.DatasetIdLocator]: known type ids = [DatasetIdLocator, DatasetPathLocator, ImmutableDatasetIdLocator, ImmutableDatasetPathLocator] at [Source: [B@4d0d9fe7; line: 1, column: 2]
via Stack Overflow by Niranjan
, 2 years ago
Can not construct instance of java.io.Serializable, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information at [Source: java.io.StringReader@6fd90825; line: 1, column: 2] (through reference chain: com.demo.jackson.AClass["id"])
via Stack Overflow by riande
, 1 year ago
No serializer found for class org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS).
com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'io.l5d.zkLeader' into a subtype of [simple type, class io.buoyant.namer.NamerConfig]: known type ids = [NamerConfig, io.l5d.consul, io.l5d.fs, io.l5d.k8s, io.l5d.marathon, io.l5d.serversets] at [Source: java.io.StringReader@1e636ea3; line: 38, column: 9] (through reference chain: io.buoyant.namerd.NamerdConfig["namers"]->com.fasterxml.jackson.module.scala.deser.BuilderWrapper[0])
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.DeserializationContext.unknownTypeException(DeserializationContext.java:967)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleUnknownTypeId(TypeDeserializerBase.java:277)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:159)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:108)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:93)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:131)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:247)
at com.fasterxml.jackson.module.scala.deser.SeqDeserializer.deserialize(SeqDeserializerModule.scala:76)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:463)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:378)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1099)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:296)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)
at io.buoyant.config.Parser$$anon$1.readValue(Parser.scala:71)
at io.buoyant.namerd.NamerdConfig$.loadNamerd(NamerdConfig.scala:95)
at io.buoyant.namerd.NamerdConfig$.loadNamerd(NamerdConfig.scala:99)
at io.buoyant.namerd.Main$.loadNamerd(Main.scala:49)
at io.buoyant.namerd.Main$.main(Main.scala:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.twitter.app.App$$anonfun$nonExitingMain$3.apply(App.scala:176)
at scala.Option.foreach(Option.scala:257)
at io.buoyant.namerd.Main$.nonExitingMain(Main.scala:9)
at io.buoyant.namerd.Main$.main(Main.scala:9)
at io.buoyant.namerd.Main.main(Main.scala)

Users with the same issue

Once, 1 year ago
Once, 5 months ago
3 times, 4 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
136 more bugmates

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