phax / ph-ubl

Java library for reading and writing UBL 2.0, 2.1, 2.2, 2.3 and 2.4 (CS01) documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESuccess errors when debugging

osvalr opened this issue · comments

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?

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

Thanks @phax, closing this

@osvalr thanks for following up. If you have further questions, just create a new issue :)