com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "code" (class com.palantir.remoting1.errors.ImmutableSerializableError$Json), not marked as at [Source: {"code":400,"message":"Unable to process JSON"}; line: 1, column: 12] (through reference chain: com.palantir.remoting1.errors.Json["code"])

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

,

you should add @JsonIgnoresProperties, This allows properties not defined in your POJO to be ignored. Needed if you are just trying to gamble your way through few properties in JSON. you do this by @JsonIgnoreProperties(property=true)

,

You need to define another class for the information within ResObj {"ClientNum":"12345","ServerNum":"78945","IdNum":"020252"}. Otherwise jackson cannot determine how to deserialize.

Solutions on the web

via GitHub by justinuang
, 1 year ago
Unrecognized field "code" (class com.palantir.remoting1.errors.ImmutableSerializableError$Json), not marked as at [Source: {"code":400,"message":"Unable to process JSON"}; line: 1, column: 12] (through reference chain: com.palantir.remoting1.errors.Json["code"])
via GitHub by tjwilson90
, 1 year ago
Unrecognized field "bar" (class ImmutableFoo$Json), not marked as ignorable (one known property: "isBar"]) at [Source: {"bar": true}; line: 1, column: 13] (through reference chain: Json["bar"])
via GitHub by ellisjoe
, 1 year ago
Unrecognized field "test" (class com.ImmutableTestClass$Json), not marked as ignorable (one known property: "isTest"]) at [Source: {"test":true}; line: 1, column: 13] (through reference chain: com.Json["test"])
via GitHub by ronsei
, 11 months ago
Unrecognized field "meta" (class org.neo4j.ogm.session.result.RowModelResult), not marked as ignorable (one known property: "row"]) at [Source: {"row":[0,0,1,1,2],"meta":[null,null,null,null,null]}]}; line: 1, column: 28] (through reference chain: org.neo4j.ogm.session.result.RowModelResult["meta"])
via GitHub by mbuechner
, 2 years ago
Unrecognized field "claims" (class org.wikidata.wdtk.datamodel.json.jackson.JacksonPropertyDocument), not marked as ignorable (5 known properties: "datatype", "descriptions", "id", "aliases", "labels"]) at [Source: java.util.zip.GZIPInputStream
via bitcointalk.org by Unknown author, 2 years ago
", "hashrateDatabaseSamplingPeriod", "databaseDirectory", "apiListenAddress", "disableStratum", " poolConnectionRetryDelay", "disableLogAppend", "hashrateDatabaseHistoryDepth"])  at [Source: proxy.conf; line: 27, column: 37] (through reference chain: strat.mining.stratum.proxy. configuration.model.Configuration["validateSha26GetworkShares"])
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "code" (class com.palantir.remoting1.errors.ImmutableSerializableError$Json), not marked as at [Source: {"code":400,"message":"Unable to process JSON"}; line: 1, column: 12] (through reference chain: com.palantir.remoting1.errors.Json["code"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:839)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1045)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1352)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1330)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:264)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:161)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:136)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1095)
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 com.palantir.remoting1.errors.SerializableErrorToExceptionConverter.getException(SerializableErrorToExceptionConverter.java:60)
at com.palantir.remoting1.jaxrs.feignimpl.FeignSerializableErrorErrorDecoder.decode(FeignSerializableErrorErrorDecoder.java:45)
at httpremoting.shaded.feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:134)
at httpremoting.shaded.feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at httpremoting.shaded.feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy51.submitModule(Unknown Source)

Users with the same issue

Once, 2 weeks ago
Once, 1 month ago
9 times, 1 month ago
6 times, 1 month ago
11 times, 1 month ago

Write tip

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