Exception in thread "main" java.lang.ExceptionInInitializerError when saving com.aspose.slides.Presentation 15.8.0

As requested by the support team I created a new topic for this issue.





Version affected: Slides 15.8.0

Last Version working: Slides 15.7.0



System affected: Ubuntu Linux 14.04 LTS



Error: Saving a presentation causes error message. All current files are affected and not a single one.



Code to reproduce the problem:



ByteArrayOutputStream baos = new ByteArrayOutputStream();



1. Presentation presentation = new Presentation(inputStream);

2. presentation.save(baos, com.aspose.slides.SaveFormat.Pdf);

3. presentation.dispose();



Error happens in line 2.

Hi Thomas,

Thank you for posting.

I have observed your comments and worked with the code shared by you. The subject of your post is, NoClassDefFoundError. Whereas I am observing ExceptioninitializerError on my end. I have pasted the stack trace on my end for your kind reference. Are you facing the same problem or a different one? I request you to please share with us the stack trace on your end so that we may investigate it further to help you out.

Exception in thread “main” java.lang.ExceptionInInitializerError
at com.aspose.slides.p6a2feef8.p9f36407e.k.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.k.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.h.do(Unknown Source)
at com.aspose.slides.vr.do(Unknown Source)
at com.aspose.slides.vi.(Unknown Source)
at com.aspose.slides.vi.do(Unknown Source)
at com.aspose.slides.bmr.int(Unknown Source)
at com.aspose.slides.bmr.static(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.AutoShape.do(Unknown Source)
at com.aspose.slides.GroupShape.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.aux.do(Unknown Source)
at com.aspose.slides.aux.if(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at linuxtest.LinuxTest.main(LinuxTest.java:247)
Caused by: java.lang.NullPointerException
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.p.do(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.do(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.do(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.p.for(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.p.(Unknown Source)
… 26 more


Best Regards,

You are right, I updated the topic.

Hi Thomas,

I request you to please share the source presentation causing the issue on your end, along with Java and application type details on your end. Please share the requested information so that we may help you further in this regard.

Many Thanks,

Hi,


Even I am facing the same exception -
Exception in thread “main” java.lang.ExceptionInInitializerError
at com.aspose.slides.p6a2feef8.p9f36407e.k.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.k.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.h.do(Unknown Source)
at com.aspose.slides.vr.do(Unknown Source)
at com.aspose.slides.vi.(Unknown Source)
at com.aspose.slides.vi.do(Unknown Source)
at com.aspose.slides.bmr.int(Unknown Source)
at com.aspose.slides.bmr.static(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.do(Unknown Source)
at com.aspose.slides.blu.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.AutoShape.do(Unknown Source)
at com.aspose.slides.GroupShape.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.aux.do(Unknown Source)
at com.aspose.slides.aux.if(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
at com.wellsfargo.wts.wsts.ims.ccg.handlers.PPTConversionHandler.convertPPTToPDF(PPTConversionHandler.java:34)
at com.wellsfargo.wts.wsts.ims.ccg.handlers.ConversionDelegator.convertToSingleDocument(ConversionDelegator.java:99)
at com.wellsfargo.wts.wsts.ims.ccg.handlers.ConversionDelegator.convertContent(ConversionDelegator.java:36)
at com.wellsfargo.wts.wsts.ims.ccg.core.CCGLibWrapper.convertContent(CCGLibWrapper.java:29)
at Snippet.convertContentMenu(Snippet.java:91)
at Snippet.main(Snippet.java:56)
Caused by: java.lang.NullPointerException
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.p.do(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.do(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.do(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.p.for(Unknown Source)
at com.aspose.slides.ms.pbdb106a0.p6a2feef8.p.(Unknown Source)
… 30 more

This is happening only in our Unix env and not on Windows - Eclipse setup.
The code used is pretty simple for converting a PPT to PDF format using the latest Aspose Slides 15.8.0. Code snippet as below -

Presentation inDoc = new Presentation(inputStream);
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
inDoc.save(outStream, SaveFormat.Pdf);
byte[] output = outStream.toByteArray();
return output;


Please look into it and let us know the solution. This doesnt happen on Unix with 15.7.0.
But then again, with 15.7.0 we have other issues like bullets not rendered properly, conversion to TIFF completely messed up.

Thanks,
Shilpi

Hi Shilpi,


Thank you for posting.

I have observed your comments and like to request you to please always make a separate post for the issues you face on your end. Even when you see an identical issue as yours, you may refer to that thread in your post by sharing with us the URL. About the issue you are facing, I request you to please share with us a sample file which you are using on your end. This file will work as a benchmark for us to ensure the issue gets resolved in your environment. I will be able to proceed further, once the requested data is shared by you.

Best Regards,