For some reason while unmarshalling something you get this error
Solution is:
Instead of
javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance("oasis.names.specification.ubl.schema.xsd.invoice_2");
or
JAXBContext context = JAXBContext.newInstance(inv.getClass().getPackage().getName());
Use a notation like this
javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType.class);
Where InvoiceType will be the thing you [...]

Recent Comments