JAXB appears to fail silently in some cases if the XML it’s attempting to unmarshall to mapped classes doesn’t have the necessary mapped properties.
You can get additional output by adding the following:
-Djaxb.debug=true
– displays information during JAXB initialization
Before you call unmarshall() on your Unmarshaller, call setEventHandler() and add a DefaultValidationEventHandler as follows:
Unmarshaller um = jaxbContext.createUnmarshaller(); um.setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
– this will output additional failure information about missing mappings for xml elements, useful if your mapped class ends up with missing values.
