I’m getting this null pointer exception when trying to get the page count of a document:
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 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?
we are already using 15.6.0, unfortunately is not possible for me to provide you with the file
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.
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.
same error for me. Work in Windows but no in Linux.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.