Hi, I am getting NumberFormatException during JAXB Unmarshal. The exception does not provide line number or the field which is having the incorrect value. I tried to create my own validation handler. But when the exception happens, the control is not coming into my custom validation handler. I am using JAXB 2.0.
By manual verification, I later found that this is happening due to an attribute of a field having wrong data. The attribute is a BigDecimal and value came in was empty (""), which trigggered the exception.
Why does the JAXB not reaching my custom validation handler during an exception? Are there any other ways are there for me to find out the field / attribute which has caused the exception?