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

Free Support Forum - aspose.com

New Document() crashes?

Hi.

Just updated from Aspose Words 11 to Aspose Word 17.6 (Java)

With this new version, i’m unable to do
Document doc=new Document();
I get this error:
The document appears to be corrupted and cannot be loaded.
NullPointerException
at com.aspose.words.zzZ0O.zzZo8 (null:437)
at com.aspose.words.zzZ0O.zzZoa (null:310)
at com.aspose.words.zzZ0O.zzzw (null:290)
at com.aspose.words.zz5.zzTU (null:128)
at com.aspose.words.zz5.zzTV (null:120)
at com.aspose.words.zzZ0O.zzZod (null:162)
at com.aspose.words.zzZ0O.zzZ (null:22)
at com.aspose.words.zz9K.visitSectionStart (null:105)
at com.aspose.words.Section.zzZ (null:139)
at com.aspose.words.CompositeNode.acceptCore (null:664)
at com.aspose.words.Section.accept (null:134)
at com.aspose.words.CompositeNode.acceptChildren (null:699)
at com.aspose.words.CompositeNode.acceptCore (null:672)
at com.aspose.words.Document.accept (null:824)
at com.aspose.words.zz9K.zzZ (null:26)
at com.aspose.words.Document.zzY (null:1628)
at com.aspose.words.Document.zzZ (null:1566)
at com.aspose.words.Document.zz76 (null:1660)
at com.aspose.words.Document. (null:94)
at com.aspose.words.Document. (null:110)

Any workaround?

Thanks for your help.

@tecost,

Thanks for your inquiry. We suggest you please remove all old reference of Aspose.Words Jar files from your application and add references of Aspose.Words again in your application. Hope this helps you.

Best Regards,
Tahir Manzoor

Thanks for your answer.
I had already removed all old references.

I’ve made additional tests : If I take Aspose version 17.3, it works.
But 17.4 and 17.6 doesn’t…

Thanks.

@tecost,

Thanks for your inquiry. Please attach the following resources here for testing:

  • Your input Word document.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
    What environment are you running on?
  • Operating System (Windows Version or Linux Version)
  • Architecture (32 / 64 bit)
  • Java version

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

Best Regards,
Tahir Manzoor