NullPointerException while save as pdf


#1

In need a hint the same code runs in production since 3 years. Now we have an document that could be save to docx. The same document instance need to be save as pdf, where it comes to

Fehler: java.lang.NullPointerException
at com.aspose.words.zzZLE.zzJ(Unknown Source)
at com.aspose.words.zzZLE.zzZ(Unknown Source)
at com.aspose.words.zzZLB.zzZLZ(Unknown Source)
at com.aspose.words.zzZLB.zzW(Unknown Source)
at com.aspose.words.zzZLH.zzV(Unknown Source)
at com.aspose.words.zzZLG.zzZ(Unknown Source)
at com.aspose.words.zzW4.zzZ(Unknown Source)
at com.aspose.words.zzYZW.zzZ(Unknown Source)
at com.aspose.words.zzX.zzY(Unknown Source)
at com.aspose.words.zzX.zzQ(Unknown Source)
at com.aspose.words.zzW4.zzZ(Unknown Source)
at com.aspose.words.zzYZW.zzZ(Unknown Source)
at com.aspose.words.zzXI.zzux(Unknown Source)
at com.aspose.words.zzXI.zzY(Unknown Source)
at com.aspose.words.zzZ8N.zzZyu(Unknown Source)
at com.aspose.words.zzZ8N.zzT(Unknown Source)
at com.aspose.words.zzZ82.zzx(Unknown Source)
at com.aspose.words.zzYY0.zzRU(Unknown Source)
at com.aspose.words.zz7H.zzXw(Unknown Source)
at com.aspose.words.zz7I.zz73(Unknown Source)
at com.aspose.words.zzZMI.zz73(Unknown Source)
at com.aspose.words.zz05.zzZYp(Unknown Source)
at com.aspose.words.zz05.zzZ(Unknown Source)
at com.aspose.words.zz05.zzZK(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)
at de.allris.server.office.aspose.AsposeBridge.saveDocument(AsposeBridge.java:204)
at de.allris.server.office.aspose.AsposeDoc.saveContentAs(AsposeDoc.java:717)
at de.allris.server.office.ServerOfficeBridge.convertAndSave(ServerOfficeBridge.java:608)

The same document from the file saved before can be converted without any problems. What ist wrong with the document in memory?

We are using:
Implementation-Title: Aspose.Words for Java
Bundle-SymbolicName: com.aspose.words
Implementation-Version: 16.11.0.0


#2

@b.schalitz,

Thanks for your inquiry. To ensure a timely and accurate response, 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.

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.

PS: To attach these resources, please zip and upload them.


#3

I could not do so, with the file and the simple main-methode I’m not able to redroduze the probleme, could you perhaps say, which part of den document modell is not correct?


#4

@b.schalitz,

Unfortunately, it is difficult to say what the problem is without the document and simplified application. We need your document and simple project to reproduce the problem. As soon as you get these pieces of information to us we will start our investigation into your issue.