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

Free Support Forum - aspose.com

Exception in thread "main" java.lang.NullPointerException

Hello,

I've a problem when executing our script that works on ubuntu. The error appears on CentOS:

Exception in thread "main" java.lang.NullPointerException
at com.aspose.slides.p6a2feef8.p9f36407e.ab.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.k.do(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.k.(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.h.byte(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.h.try(Unknown Source)
at com.aspose.slides.p6a2feef8.p9f36407e.h.do(Unknown Source)
at com.aspose.slides.vu.do(Unknown Source)
at com.aspose.slides.vm.(Unknown Source)
at com.aspose.slides.vm.do(Unknown Source)
at com.aspose.slides.bip.int(Unknown Source)
at com.aspose.slides.bip.static(Unknown Source)
at com.aspose.slides.bht.do(Unknown Source)
at com.aspose.slides.bht.do(Unknown Source)
at com.aspose.slides.bht.do(Unknown Source)
at com.aspose.slides.bht.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.else(Unknown Source)
at com.aspose.slides.bv.do(Unknown Source)
at com.aspose.slides.yo.do(Unknown Source)
at com.aspose.slides.yo.do(Unknown Source)
at com.aspose.slides.eb.do(Unknown Source)
at com.aspose.slides.bbj.do(Unknown Source)
at com.aspose.slides.avf.do(Unknown Source)
at com.aspose.slides.atq.do(Unknown Source)
at com.aspose.slides.MasterSlideCollection.do(Unknown Source)
at com.aspose.slides.MasterSlideCollection.do(Unknown Source)
at com.aspose.slides.SlideCollection.addClone(Unknown Source)
at com.konmedia.slide.converter.SlidesExtract.processSlide(SlidesExtract.java:31)
at com.konmedia.slide.converter.SlidesExtract.processFile(SlidesExtract.java:23)
at com.konmedia.slide.converter.Main.enterReadEvalPrintLoop(Main.java:62)
at com.konmedia.slide.converter.Main.main(Main.java:36)

Can you please check what happens here. Because we are rolling out no, it is a little urgent.

Kind Regards,
Dirk Münker

… a second problem appears. Sometimes, depending on the pptx-file, thumbnails can be generated. In this case the slide doesn’t show any text.

Hi Dirk,


Thank you for posting.

I have observed your comments and like to request you to please share with us the source code and the source file to reproduce the issue so that we may investigate it further to help you out.

Best Regards,

Hello Muhammad,


yes, sure. Please see attachment.
I’m not sure if it is CentOs. I think it is a debian.

Kind Regards,
Dirk Münker

Ok, I have it. The Problem is, once more, a font that cannot be read.

We are on RedHat here:

Linux version 2.6.32-573.18.1.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) #1 SMP Tue Feb 9 22:46:17 UTC 2016

Is it possible to prevent us from this?

Hi Dirk,


Thank you for getting back to us.

I have observed your comments and like to share with you that it is the same problem that was reported by you earlier, in this thread, which turned out to be a problem with missing fonts. Please try installing the related fonts, or load them externally, as per your convenience. About nullpointerexception, I am unable to reproduce it with Aspose.Slides for Java 16.3.0. Please try using the aforementioned version on your side and then share your kind feedback with us so that we may proceed further to help you out.

Best Regards,

Hi Team,

I am facing a similar issue with the method ‘SlideCollection.addClone’ method.
The code works in Windows but fails in Linux machine.
Did this issue got resolved or was there any kind of workaround for this issue.
Can anyone please help in this, this has become a blocker issue for us.

Hi,


Thank you for posting.

I have observed your comments and like to request you to please make a separate post while explaining your issue along with source file and source code so that we may investigate it further to help you out.

Best Regards,