com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "fileLocation" (class com.analytics.utility.SObj), not marked as ignorable (one known property: "map"]) at [Source: C:\scala\conf.yaml; line: 15, column: 1] (through reference chain: com.analytics.utility.SObj["fileLocation"])

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 Stack Overflow by imanartist
, 10 months ago
Unrecognized field "fileLocation" (class com.analytics.utility.SObj), not marked as ignorable (one known property: "map"]) at [Source: C:\scala\conf.yaml; line: 15, column: 1] (through reference chain: com.analytics.utility.SObj["fileLocation"])
via GitHub by michaelhixson
, 1 year ago
Unrecognized field "a_a" (class example.Example$Foo), not marked as ignorable (3 known properties: "aA", "bB", "cC"]) at [Source: {"a_a":1,"b_b":2,"c_c":3}; line: 1, column: 26] (through reference chain: example.Foo["a_a"])
via GitHub by NielsCharlier
, 9 months ago
Unrecognized field "countryCode" (class nl.stil4m.mollie.domain.Payment), not marked as ignorable (18 known properties: "expiredDatetime", "details", "createdDatetime", "amountRefunded", "expiryPeriod", "amount", "locale", "id", "method", "mode
via GitHub by nickbp
, 10 months ago
Unrecognized field "placement_constraint" (class com.mesosphere.dcos.kafka.config.ServiceConfiguration), not marked as ignorable (7 known properties: "role", "phase_strategy", "name", "placement_strategy", "principal", "count", "user"]) ! at
via GitHub by ezhik97
, 1 year ago
Unrecognized field "1CR" (class org.knowm.xchange.poloniex.PoloniexException), not marked as ignorable (3 known properties: "error", "cause", "httpStatusCode"]) at [Source: java.io.StringReader@7ce69770; line: 1, column: 36643] (through reference chain: org.knowm.xchange.poloniex.PoloniexException["1CR"])
via GitHub by danielnorberg
, 1 year ago
Unrecognized field "foobar" (class io.norberg.automatter.jackson.PublicBarBuilder$Value), not marked as ignorable (4 known properties: "a", "b", "aCamelCaseField", "isReallyFoobar"]) at [Source: {"a":17,"b":"foobar","aCamelCaseField":true,"foobar":false}; line: 1, column: 60] (through reference chain: io.norberg.automatter.jackson.Value["foobar"])
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "fileLocation" (class com.analytics.utility.SObj), not marked as ignorable (one known property: "map"]) at [Source: C:\scala\conf.yaml; line: 15, column: 1] (through reference chain: com.analytics.utility.SObj["fileLocation"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:744)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:915)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1306)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperties(BeanDeserializerBase.java:1260)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:409)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1064)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:264)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:124)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3066)
at com.analytics.utility.ConfigurationManager$.main(ConfigurationManager.scala:41)
at com.analytics.utility.ConfigurationManager.main(ConfigurationManager.scala)

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.