com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "name" (class app.Savegame), not marked as ignorable (24 known properties: "globeZoom", "bases", "monthsPassed", "warned", "discovered", "incomes", "rng", "funds", "globeLat", "maintenance", "expenditures", "ufos", "graphCountryToggles", "ids", "alienStrategy", "difficulty", "researchScores", "graphRegionToggles", "globeLon", "regions", "alienMissions", "graphFinanceToggles", "countries", "deadSoldiers"]) at [Source: C:\Users\Luis\Desktop\in.txt; line: 1, column: 12] (through reference chain: app.Savegame["name"])

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 Luis Gómez Caballero
, 1 year ago
", "graphCountryToggles", "ids", "alienStrategy", "difficulty", "researchScores", "graphRegionToggles", "globeLon", "regions", "alienMissions", "graphFinanceToggles", "countries", "deadSoldiers"]) at [Source: C:\Users\Luis\Desktop\in.txt; line: 1, column: 12] (through reference chain: app.Savegame["name"])
via Stack Overflow by Marcello de Sales
, 1 year ago
Unrecognized field "spring" (class com.company.platform.config.onboarding.files.config.model.ConfigServerProperties), not marked as ignorable (one known property: "repos"]) at [Source: /tmp/config-server-onboards.yml; line: 3, column: 3] (through reference chain: com.company.platform.config.onboarding.files.config.model.ConfigServerProperties["spring"])
via GitHub by marcingrzejszczak
, 11 months ago
Unrecognized field "id" (class com.github.tomakehurst.wiremock.stubbing.StubMapping), not marked as ignorable (7 known properties: "response", "requiredScenarioState", "priority", "uuid", "request", "newScenarioState", "scenarioName"]) at [Source
via Stack Overflow by Erik
, 2 weeks ago
Unrecognized field "LEI" (class org.leiroc.data.schema.leidata._2014.LEIRecordType), not marked as ignorable (5 known properties: "lei", "registration", "entity", "nextVersion", "extension"]) at [Source: (File); line: 3, column: 14] (through reference chain: java.lang.Object[][0]->org.leiroc.data.schema.leidata._2014.LEIRecordType["LEI"])
via GitHub by ForcedInduction
, 3 months ago
Unrecognized field "Field1" (class com.ExampleObject$LevelOne), not marked as ignorable (one known property: "LevelTwo"]) at [Source: (StringReader); line: 5, column: 36] (through reference chain: com.ExampleObject["LevelOne"]->java.util.ArrayList[0]->com.ExampleObject$LevelOne["Field1"])
via Stack Overflow by Steve
, 11 months ago
Unrecognized field "RecurringDetail" (class com.adyen.www.models.RecurringDetail), not marked as ignorable (19 known properties: "variant", "contractTypes", "tokenDetails", "aliasType", "name", "creationDate", "firstPspReference", "elv", "card
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "name" (class app.Savegame), not marked as ignorable (24 known properties: "globeZoom", "bases", "monthsPassed", "warned", "discovered", "incomes", "rng", "funds", "globeLat", "maintenance", "expenditures", "ufos", "graphCountryToggles", "ids", "alienStrategy", "difficulty", "researchScores", "graphRegionToggles", "globeLon", "regions", "alienMissions", "graphFinanceToggles", "countries", "deadSoldiers"]) at [Source: C:\Users\Luis\Desktop\in.txt; line: 1, column: 12] (through reference chain: app.Savegame["name"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:62)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:833)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1096)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1467)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1445)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:282)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:140)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789)
at app.Main.main(Main.java:34)

Users with the same issue

Once, 1 week ago
12 times, 1 week ago
2 times, 4 weeks ago
Once, 1 month ago
Once, 2 months ago

Write tip

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