ESuccess errors when debugging
osvalr opened this issue · comments
Osval Reyes commented
I begin to test this library, and I noticed that UBL20Writer
returns "FAILURE" but as far as I can see there is no hint what is maybe wrong with the invoice created.
How can I get some more verbose error output when it fails?
Philip Helger commented
You need to set an event handler as in writer.setValidationEventHandler (new LoggingValidationEventHandler ())
.
There are different kind of validation handlers. See package com.helger.jaxb.validation
in project ph-jaxb
(transitively included).
hth
Osval Reyes commented
Thanks @phax, closing this
Philip Helger commented
@osvalr thanks for following up. If you have further questions, just create a new issue :)