Yesterday I updated java like posted in the title, now JAXB doesn\'t parse xml anymore. All objects are simply null, nothing seems to be set.
Given this POJO - List
Java8 newer version is more strict, I had same issue and found, we have to specify namespace for each field as follow to validate It worked for me
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ListMatchingProductsResponse", propOrder = {
"listMatchingProductsResult",
"responseMetadata"
})
@XmlRootElement(name = "ListMatchingProductsResponse", namespace="http://example.com/api)
public class ListMatchingProductsResponse {
@XmlElement(name = "ListMatchingProductsResult", namespace="http://example.com/api)
private ListMatchingProductsResult listMatchingProductsResult;
@XmlElement(name = "ResponseMetadata", namespace="http://example.com/api)
private ResponseMetadata responseMetadata;
@XmlAttribute(name = "xmlns", namespace="http://example.com/api)
private String xmlns;