Open PavelTurk opened 2 months ago
I find out how to get causes in log with slf4j but it was very unexpected. I think this behaviour should be changed:
try {
JAXBContext context = JAXBContext.newInstance(settingsClass);
Unmarshaller unmarshaller = context.createUnmarshaller();
....
} catch (JAXBException e) {
logger.error("Error reading settings from {}: {}", path, e.toString(), e); //NOTE e.toString()
}
This is what I have in log file:
However, it gives me nothing. So, I have to add breakpoint to line 81 of
IllegalAnnotationsException
and check list field, to understand what is going on: