com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Ljava/lang/String;)V

I'm running the Aspose Java library as a process on Amazon Linux.

I attempted to convert a Word Doc that threw the following error:

stderr: Exception in thread "main"
stderr: java.lang.UnsatisfiedLinkError: com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Ljava/lang/String;)V

stderr: at com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Native Method)
at com.aspose.words.WindowsNativeCall.(Unknown Source)
stderr:
at com.aspose.words.WindowsNativeCall.getInstance(Unknown Source)
at com.aspose.words.PrinterMetrics.(Unknown Source)

Please advice, or if needed I can send you the doc file in question.

Thank you

Hi Ken,


Thanks for your inquiry. Please upgrade to latest version (15.6.0) of Aspose.Words from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

In case the problem still remains, please attach your input Word document and source code here for testing. We will investigate the issue on our end and provide you more information.

Best regards,

Hi Awais,


We encountered the same issue with a word DOC file with Aspose.Words 15.6.0. Here is the exception stack:

java.lang.UnsatisfiedLinkError: com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Ljava/lang/String;)V
at com.aspose.words.WindowsNativeCall.createGlobalPrinterDC(Native Method)
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:366)
at java.util.HashMap.put(HashMap.java:496)
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.aspose.words.zz4Z.perform(Unknown Source)
at com.aspose.words.zz50.zzKP(Unknown Source)
at com.aspose.words.zz26.zzZ1(Unknown Source)
at com.aspose.words.zz26.zzZ(Unknown Source)
at com.aspose.words.zz26.zz7(Unknown Source)
at com.aspose.words.Document.zz2x(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

Unfortunately, the DOC file is confidential and couldn’t attach here. Please advise what is the best way to handle.

Thanks.
Hi Thomas,

Thanks for your inquiry. Unfortunately, it is difficult to say what the problem is without the document and code. We need this document and code to reproduce the problem on our end.
It is safe to attach files in the forum. If you attach your document here, only you and Aspose staff members can download it. Also you can send the file to my e-mail as described here:
Best regards,