Deserialization issue from XML to POJO with Jackson: no String-argument constructor/factory method to deserialize from String value

It appears to be a bug; filed it here: https://github.com/FasterXML/jackson-dataformat-xml/issues/219


Still having this issue with version 2.10.2 and the following fixed it for me.

Replace:

ObjectMapper xmlMapper = new XmlMapper();

With:

JacksonXmlModule module = new JacksonXmlModule();
module.setDefaultUseWrapper(false);
XmlMapper xmlMapper = new XmlMapper(module);

Source:

https://github.com/FasterXML/jackson-dataformat-xml/issues/219#issuecomment-286003056