I have the following method:
public String getXML() throws JAXBException, FileNotFoundException {
StringWriter writer = new StringWriter();
JAXBContext jc = JAXBContext.newInstance(questionSet.getClass());
Marshaller m = jc.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); // Include indentation and linefeeds
m.marshal(questionSet, writer);
return writer.toString();
}
It throws "9 counts of IllegalAnnotationExceptions" on the JAXBContext instantiation line which is nicely recorded to my Glassfish 3.1 log file. But I see no details as to what those counts are. Does anyone know why I might not be getting the details? Is there a configuration change I need to make?
Thanks!
I was never able to determine why the details did not show up in the log. However, the details do appear in the caught error message so I have added a break point there rather than keep fighting with the log.
Thank you to everyone who thought about it!