Symptoms :
- You are using com.fasterxml.jackson.databind ObjectMapper
- By using object of ObjectMapper you are possibly trying Convert Json to POJO
- All problem lies in your POJO class
Solution:
- Go to your POJO class i.e. Clazz in my case
- checkout the property or variable named "AttributeStatus"
- In my case I had added @JsonProperty("AttributeSource") on two properties or variables
- So corrected that and it worked, meaning I had put correct @JsonProperty on respective variables.
i.e.
Before
@JsonProperty("AttributeSource")
private String AttributeSource
@JsonProperty("AttributeSource")
private String AttributeDestination
After
@JsonProperty("AttributeSource")
private String AttributeSource
@JsonProperty("AttributeDestination")
private String AttributeDestination
Help more people:- Share this link, comment if you have any suggestion.
Help more people:- Share this link, comment if you have any suggestion.
No comments:
Post a Comment