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

Free Support Forum - aspose.com

NPE in an environment with DE as locale

In Aspose Words 17.4.0 a new bug was introduced, 17.3.0 works fine.


Using the following code I’m not able to load any word document (a plain new one or with content) :

Locale.setDefault(new Locale(“de”);
new Document(“data.docx”);

Getting the following exception:

com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
at com.aspose.words.FileFormatUtil.zzZ(Unknown Source)
at com.aspose.words.Document.zzY(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zz5O(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at aspose.sandbox.Application.main(Application.java:34)
Caused by: java.lang.NullPointerException
at com.aspose.words.zzYYK.zzZmS(Unknown Source)
at com.aspose.words.zzYYK.zzZmU(Unknown Source)
at com.aspose.words.zzYYK.zzzu(Unknown Source)
at com.aspose.words.zz5.zzTZ(Unknown Source)
at com.aspose.words.zz5.zzU0(Unknown Source)
at com.aspose.words.zzYYK.zzZmX(Unknown Source)
at com.aspose.words.zzYYK.zzZ(Unknown Source)
at com.aspose.words.zz73.visitSectionStart(Unknown Source)
at com.aspose.words.Section.zzZ(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zz73.zzZ(Unknown Source)
at com.aspose.words.Document.zzY(Unknown Source)
… 6 more

Hi Peter,

Thanks for your inquiry. Please attach your input Word document you are getting this problem with here for testing. We will investigate the issue on our end and provide you more information.

Best regards,

Just create a new word document, that will cause the issue.

Hi Peter,

Thanks for your inquiry.

While using the latest version of Aspose.Words for Java 17.4, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSJAVA-1554. Your request has been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

This is a very serious issue, which could have been prevented with a simple test case.

Hi Peter,

Thanks for your inquiry. You are right. We logged this as a regression issue and our product team will address this problem soon. Currently, it is pending for analysis and is in the queue. We will inform you via this thread as soon as this issue is resolved. We apologize for any inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSJAVA-1554) have been fixed in this Aspose.Words for .NET 17.6 update and this Aspose.Words for Java 17.6 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.