Hi,
I’m getting this null pointer exception when trying to get the page count of a document:
java.lang.NullPointerException
at com.aspose.words.WindowsNativeCall.(Unknown Source)
at com.aspose.words.WindowsNativeCall.getInstance(Unknown Source)
at com.aspose.words.PrinterMetrics.(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:338)
at java.util.HashMap.get(HashMap.java:556)
at com.aspose.words.zzZMV.zzX(Unknown Source)
at com.aspose.words.zzZ28.zzYr(Unknown Source)
at com.aspose.words.zz9S.zz0V(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.aspose.words.Document.zzXK(Unknown Source)
at com.aspose.words.Document.zz2q(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
can you please help?
Hi Charles,
we are already using 15.6.0, unfortunately is not possible for me to provide you with the file
Hi,
Guys, I think you should point out OS, which this code is run on.
I have observed the similar issue, which is not reproduced when code is run on windows OS, but only on linux* OS.
Aspose.Words for Java 15.6.0 updateFields fails with NPE from WindowsNativeCall - Free Support Forum - aspose.com
Then, it seems like critical error that Aspose library depends on OS. Most of Java-based production decisions is running on *nix systems…
Well as I was told Java version of library is simply ported from .Net version. Everyone knows that shit happens… I was just trying to save you time, since from my experience the next question you would be asked from Support is your environment set up. + I was just looking through the recently reported issues to make sure I am not reporting something, that is already nailed in other topic.
I have same problem…working on linux…
Maybe it has something to do with this new feature introduced by 15.6.0 version:
-> Printer metrics are supported on the Windows platform.
Hope to receive solution soon ! And please tell the call center not to suggest the clients to use latest version on linux…
Thanks, we’ll wait and yet return to 15.5.0, because it doesn’t contain this issue.
Hi,
same error for me. Work in Windows but no in Linux.
The issues you have found earlier (filed as WORDSJAVA-1112) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
The issues you have found earlier (filed as WORDSJAVA-1112) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)