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

Free Support Forum - aspose.com

Getting ExceptioninitializerError When Saving Presentation Using Aspose.Slides Java 15.8.0

Hi,

We are evaluating Aspsoe.Slides Java 15.8.0 and found some problem in saving presentations.

The code used is given below:

@Test
public void testSave() {
Presentation pptx = new Presentation(“Presentation.pptx”);
pptx.save(“Test.pptx”, SaveFormat.Pptx);
}

Execption Stack:
java.lang.ExceptionInInitializerError: null
oracle.epm.platform.core.reportpackage.docman.ppt.AsposeOpenXmlPptManagerTest.testSave(AsposeOpenXmlPptManagerTest.java:3530)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.lang.reflect.Method.invoke(Method.java:606)
Caused by: java.lang.NullPointerException: null

Please tell us why I am seeing such an error while saving the Powerpoint presentations.

Please find the sample presentation in attachment.

Thanks
Manisha

The complete exception stack trace is given below:


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.GroupShape.do(Unknown Source)
at com.aspose.slides.Slide.if(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.ave.try(Unknown Source)
at com.aspose.slides.ave.do(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 oracle.epm.platform.core.reportpackage.docman.ppt.AsposeOpenXmlPptManagerTest.testSave(AsposeOpenXmlPptManagerTest.java:3537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:120)
at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:65)
at mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at mockit.internal.util.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:95)
at mockit.internal.annotations.MockMethodBridge.callMock(MockMethodBridge.java:76)
at mockit.internal.annotations.MockMethodBridge.invoke(MockMethodBridge.java:41)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at oracle.jdevimpl.junit.runner.junit4.JUnit4Testable.run(JUnit4Testable.java:24)
at oracle.jdevimpl.junit.runner.TestExecution.run(TestExecution.java:27)
at oracle.jdevimpl.junit.runner.JUnitTestRunner.main(JUnitTestRunner.java:88)
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)
… 59 more

Thanks
Manisha
Hi Manisha,

I have observed your requirements and worked with the presentation file shared by you. I have been able to reproduce the issue. A ticket with ID SLIDESJAVA-35049 has been logged in our issue tracking system to further investigate and resolve the issue.This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

Hi,

we are getting a similar error here with 15.8.0:

java.lang.NoClassDefFoundError: Could not initialize class com.aspose.slides.ms.pbdb106a0.p6a2feef8.p

trying to save the Powerpoint document as PDF.

Best, Thomas

Whole stack trace:

at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.ms.pbdb106a0.p6a2feef8.o.(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.FontsLoader.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.vr.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.vi.(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.vi.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.bmr.int(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.bmr.static(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.blu.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.blu.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.blu.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.blu.(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.TextFrame.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.TextFrame.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.TextFrame.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.AutoShape.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.GroupShape.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.Slide.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.Slide.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.aux.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.aux.if(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.Presentation.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.Presentation.do(Unknown Source) ~[Ability-1.9.jar:1.9]
! at com.aspose.slides.Presentation.save(Unknown Source) ~[Ability-1.9.jar:1.9

Since this appears to be a regression, is there any estimate when a fix will be available because this prevents upgrade to 15.8.0 by many customers.

This seems to be the same problem. Exception occurs when instanciating com.aspose.slides.Presentation. We’re using aspose-slides 15.8.0.


Caused by: javax.ejb.EJBException: See nested exception; nested exception is: java.lang.Exception: See nested Throwable
at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionUtil.java:475)
at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionUtil.java:365)
at com.ibm.ejs.container.BusinessExceptionMappingStrategy.mapException(BusinessExceptionMappingStrategy.java:392)
at com.ibm.ejs.container.BusinessExceptionMappingStrategy.setUncheckedException(BusinessExceptionMappingStrategy.java:554)
at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedLocalException(EJSDeployedSupport.java:567)
… 68 more
Caused by: java.lang.Exception: See nested Throwable
at com.ibm.ejs.container.util.ExceptionUtil.Exception(ExceptionUtil.java:346)
… 73 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:134)
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:123)
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.bla.do(Unknown Source)
at com.aspose.slides.bla.do(Unknown Source)
at com.aspose.slides.bla.do(Unknown Source)
at com.aspose.slides.bla.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.Table.do(Unknown Source)
at com.aspose.slides.Table.try(Unknown Source)
at com.aspose.slides.bir.do(Unknown Source)
at com.aspose.slides.yh.do(Unknown Source)
at com.aspose.slides.yh.do(Unknown Source)
at com.aspose.slides.cz.do(Unknown Source)
at com.aspose.slides.bdj.do(Unknown Source)
at com.aspose.slides.awc.do(Unknown Source)
at com.aspose.slides.auw.byte(Unknown Source)
at com.aspose.slides.auw.do(Unknown Source)
at com.aspose.slides.Presentation.int(Unknown Source)
at com.aspose.slides.Presentation.if(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
… 68 more
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)
… 98 more


Hi Thomas, Fedirico and Oracle,

I have observed the stack trace shared by you and have also discussed the cause of the issue with our product team. I have updated the new stack traces shared in SLIDESJAVA-35049 for further investigation. We have scheduled the issue for initial investigation during this week and after that we will be able to share the feedback with you if this is some new issue or a regression causing the new release failing on your end. I also request you to please provide the information that which version has been working on your end with same appreciations and presentation decks before Aspose.Slides for Java 15.8.0.

Many Thanks,

Version 15.7.0 works.

Aspose.Slides Java 15.7.0 works for me as well.


Thanks
Manisha

15.4.0 was the last version we were using.

Hi Thomas and Fedirico,

Our product team has observed the stack traces shared by you and have observed that your issue is different than Manisha’s issue as she is facing issue while saving the presentation where as you are facing issue while loading the presentation. We need to add separate tickets for your issues in our issue tracking system and for this I request you to please share the sample presentation files, sample code, Operating system and application details so that I may add the information for our product team review.

Many Thanks,

The issue arrises when i’m trying to save the presentation as PDF! Loading works.

Hi Thomas,


I have observed your comments and like to request you to please share with us the file which is causing this exception on your end as well as the environment details. We really appreciate if you make a separate post even if you find the same issue reported by someone else. You may refer to that post in your own post by copying the link. This way we can take care of your problems more effectively. Please share the requested data and information with us in a separate post so that we may investigate it further to help you out.

Best Regards,

Dear Aspose Support,





I don’t think it will make sense to create a separate post, as it would have the exact same subject.



Version that worked last: Aspose.Slides 15.7.0

Version that is affected: 15.8.0



Files affected: ALL! Thats why I do not provide a test file.

System affected: Ubuntu Linux 14.04 LTS



Code to reproduce the problem:



ByteArrayOutputStream baos = new ByteArrayOutputStream();



Presentation presentation = new Presentation(inputStream);

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



Cheers, Thomas

Hi Thomas,

Thank you for sharing the information. As requested earlier please share the sample presentation with us so that we may investigate the issue with something tangible on our end that is reproducing the issue on your end. As per information available in the stack trace it has been shared by our product team that these two are separate issue. Please share the requested information so that we may proceed further with our investigation.

Many Thanks,

As requested, I opened a new Thread (662853) for the problem described above.

Hi Federico,


Thank you for creating a separate thread.

We have replied to you over the thread created by you. This separate thread approach helps us to communicate in effective way as there is one to one exchange of information. Issues may look similar but reasons could be different. Now, please follow up in the thread created by you.

Best Regards,

As requested, I created also a new thread:





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





Bests, Thomas

Hi Thomas,


Thank you for understanding.

We really appreciate that you have created a separate post. I have replied on the new thread created by you after working with the code shared by you. Please follow up in respective thread.

Best Regards,

The issues you have found earlier (filed as SLIDESJAVA-35049) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.