Free Support Forum - aspose.com

NullpointerException while PDF-UA-1 validation

Hi,

we need to validate documents uploaded by customers to PDF_UA_1.
berlin_aktenmappe.pdf (186.5 KB)

Document pdfDocument = new Document(“input.pdf”);
// Validate PDF for PDF/A-1a
pdfDocument.Validate(“Validation_log.xml”, PdfFormat.PDF_UA_1);

While do this, with some documents there is a NullPointerException

java.lang.NullPointerException
at com.aspose.pdf.internal.l8f.l0l.l1p(Unknown Source)
at com.aspose.pdf.internal.l8f.l0l.l0n(Unknown Source)
at com.aspose.pdf.internal.l8f.l0l.lf(Unknown Source)
at com.aspose.pdf.internal.l8f.l0if.l0l(Unknown Source)
at com.aspose.pdf.internal.l8f.l0l.lI(Unknown Source)
at com.aspose.pdf.ADocument.lI(Unknown Source)
at com.aspose.pdf.Document.lI(Unknown Source)
at com.aspose.pdf.ADocument.lI(Unknown Source)
at com.aspose.pdf.Document.lI(Unknown Source)
at com.aspose.pdf.ADocument.validate(Unknown Source)
at com.aspose.pdf.Document.validate(Unknown Source)

Can you say, what is wrong/spezial with this documents, we have two more documents result in exactly the same exception.

Best regards.

@b.schalitz

We were able to notice the exception in our environment while using Aspose.PDF for Java 20.3 and logged it as PDFJAVA-39272 in our issue tracking system for further investigation. We will look into details of it and keep you posted with the status of its rectification. Please spare us some time.

We are sorry for the inconvenience.