We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Re: Aspose.Words for Java 15.6.0 updateFields fails with NPE from WindowsNativeCall


I have the same trouble. When I try to convert .doc to .pdf in linux, I have the next mistake:

Caused by: java.lang.NullPointerException
at com.aspose.words.WindowsNativeCall.<init>(Unknown Source)
at com.aspose.words.WindowsNativeCall.getInstance(Unknown Source)
at com.aspose.words.PrinterMetrics.<init>(Unknown Source)
at com.aspose.words.zzZMV.zzZA9(Unknown Source)
at com.aspose.words.zzZMV.zzZ(Unknown Source)
at com.aspose.words.zzZMV.zzZH(Unknown Source)
at com.aspose.words.zzZMV.zzZAd(Unknown Source)
at com.aspose.words.zzZMV.zzZCs(Unknown Source)
at com.aspose.words.zzZN7.hashCode(Unknown Source)
at com.aspose.words.zzZMV.hashCode(Unknown Source)
at java.util.HashMap.hash(HashMap.java:362)
at java.util.HashMap.put(HashMap.java:492)
at com.aspose.words.zzZMV.zzX(Unknown Source)
at com.aspose.words.zzZ28.zzY(Unknown Source)
at com.aspose.words.zz9S.zz0y(Unknown Source)
at com.aspose.words.zz9S.moveNext(Unknown Source)
at com.aspose.words.zzZPI.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.cajamar.cb.fwk.wordutils.AsposeDocument.save(AsposeDocument.java:317)

In this linux machine, I use jdk 1.7 and Aspose 17.4.0. I do not understand why I have this problem because I use a version very recent.

Can you help me?

Thanks for your inquiry. Please attach your input Word document (.doc file) here for testing. We will investigate the issue on our end and provide you more information.

Best regards,