Validate PDF/A Nullpointer Exception on some Linux Systems

Hi,

I need to validate our PDF to his PDF/A 1-b or 1-a compliance (an old story)

The libs I tried are Aspose.Pdf 4.6.0 and also 9.0.0 with the same issue.

Here is the code:
/* LOAD AsposeTotal Lic */

com.aspose.pdf.Document doc = new com.aspose.pdf.Document(new ByteArrayInputStream(file));

boolean validate = doc.validate(new ByteArrayOutputStream(), PdfFormat.PDF_A_1B);

This code works fine on Windows 7 64bit with Java 7 and also on different linux systems like ubuntu 14.04 and some older RedHat 5.1 installations.

On production and test systems I get this error:

Exception in thread “main” java.lang.NullPointerException
at com.aspose.pdf.b.c.g.d.l.a(Unknown Source)
at com.aspose.pdf.b.c.g.d.l.parse(Unknown Source)
at com.aspose.pdf.b.c.g.d.n.a(Unknown Source)
at com.aspose.pdf.b.c.g.d.n.a(Unknown Source)
at com.aspose.pdf.b.c.g.d.n.deV(Unknown Source)
at com.aspose.pdf.b.c.g.d.n.(Unknown Source)
at com.aspose.pdf.b.c.g.d.n.(Unknown Source)
at com.aspose.pdf.b.j.a.b.a(Unknown Source)
at com.aspose.pdf.b.j.a.b.dkI(Unknown Source)
at com.aspose.pdf.b.j.a.b.a(Unknown Source)
at com.aspose.pdf.ADocument.convert(Unknown Source)
at com.aspose.pdf.Document.convert(Unknown Source)
at com.aspose.pdf.ADocument.t(Unknown Source)
at com.aspose.pdf.Document.t(Unknown Source)
at com.aspose.pdf.ADocument.validate(Unknown Source)
at com.aspose.pdf.Document.validate(Unknown Source)
at it.siag.pdf.agent.PdfAgent.isValidPdfAFile(Unknown Source)
at it.siag.pdf.agent.PdfAgentMain.main(Unknown Source
The system I use is the following:
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Linux xxxxxxx 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri
java: jdk1.7.0_55 (64bit oracle)
I also tried to launch my testclient with sudo with same error.

With this Stacktrace I don’t have any idea which can be the problem, your libs will do something which goes wrong on some linux systems, but I have no idea what else to test.

thx
Michael

Hi Michael,


Thanks for contacting support.

Can you please share the resource PDF documents causing this problem and also please share the details regarding the environment causing this exception (you have indicated that you are using Red Hat Linux 6.5, Red Hat 5.1), so we are not certain which version of OS is causing this problem. We will test the scenario and will share our findings. We are sorry for this inconvenience.

As described in previous post this system for example does NOT work!

Red Hat Enterprise Linux Server release 6.5 (Santiago)
Linux xxxxxxx 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri
java: jdk1.7.0_55 (64bit oracle)

In the attachement you’ll find one of my several PDF/A files I tested!
On ALL pdf files I get the same exception on my system described before!

I also tested it with Java8 and Java6, exactly the same error!

It also doesn’t work on CentOS release 6.5 (Final), so you can install this for your test if you need.

Michael

Hi Michael,


Thanks for sharing the details.

We are testing this scenario and will get back to you soon.

Some news?

bye

Hi Michael,


Thanks for your patience and sorry for the delayed response.

I have logged this problem in our issue tracking system as PDFNEWJAVA-34211. We will
investigate this issue in details and will keep you updated with our findings. We
apologize for your inconvenience.

For your information, I tested it also on Aspose.PDF 9.1.0:

same result with a little different stacktrace (probabile you change your internal class names)


Exception in thread “main” java.lang.NullPointerException
at com.aspose.pdf.internal.oe.l.a(Unknown Source)
at com.aspose.pdf.internal.oe.l.parse(Unknown Source)
at com.aspose.pdf.internal.oe.n.a(Unknown Source)
at com.aspose.pdf.internal.oe.n.a(Unknown Source)
at com.aspose.pdf.internal.oe.n.dpD(Unknown Source)
at com.aspose.pdf.internal.oe.n.(Unknown Source)
at com.aspose.pdf.internal.oe.n.(Unknown Source)
at com.aspose.pdf.internal.oe.n.(Unknown Source)
at com.aspose.pdf.internal.pp.b.a(Unknown Source)
at com.aspose.pdf.internal.pp.b.dvs(Unknown Source)
at com.aspose.pdf.internal.pp.b.a(Unknown Source)
at com.aspose.pdf.ADocument.convert(Unknown Source)
at com.aspose.pdf.Document.convert(Unknown Source)
at com.aspose.pdf.ADocument.s(Unknown Source)
at com.aspose.pdf.Document.s(Unknown Source)
at com.aspose.pdf.ADocument.validate(Unknown Source)
at com.aspose.pdf.Document.validate(Unknown Source)
at it.siag.pdf.agent.PdfAgent.isValidPdfAFile(Unknown Source)
at it.siag.pdf.agent.PdfAgentMain.main(Unknown Source)


Were you able to reproduce my bug on your system?

thx
Michael

Hi Michael,


We are working on preparing the environment as our earlier instance encountered some issues. Soon we will be testing the scenario and will share our findings. We are sorry for this delay and inconvenience.

news about it???


I have have an other problem on Aspose.Words and saving DOC TO PDF on some linux systems.

grrrr
michael.burger@siag.it:
news about it???
Hi Michael,

We are still working on resolving this problem and as soon as we have further updates, we will let you know.
michael.burger@siag.it:
I have have an other problem on Aspose.Words and saving DOC TO PDF on some linux systems.
I have posted this query in a separate thread and my fellow workers from respective team will further look into this matter and will get back to you soon.

hi,
I 've the same problem that michael.burger@siag.it , have you found the solution?

Thanks 
Yaya

papmalle:
hi,
I 've the same problem that michael.burger@siag.it , have you found the solution?
Hi Yaya,

Thanks for contacting support.

The problem which Michael reported is specific to the input PDF document which he shared and is still pending for review. However now concerning to the issue which you are facing, please share the resource/input PDF file so that we can test the conversion in our environment. We are sorry for your inconvenience.

Do you have resolved my problem or still not?

thx
Michael

Hi Michael,


Thanks for your patience.

The team has been busy fixing other previously reported priority issues, so I am afraid this problem is not yet resolved. Nevertheless I have intimated the team to share current updates regarding its resolution. As soon as we have some further updates, we will let you know.

The issues you have found earlier (filed as PDFNEWJAVA-34211) have been fixed in Aspose.Pdf for Java 11.9.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan