PPTX parsing issue with slides for java

Hi,


I am trying to parse a ppt document with following lines. Unfortunately I am geeting an excpetion while I try to load the ppt itself on a Win7 x64 machine.

Presentation ppt_new = new Presentation(“presentations-tips.ppt”, new LoadOptions(LoadFormat.Ppt));

Exception in thread “main” java.lang.StackOverflowError
at java.util.Locale.getLanguage(Locale.java:1007)
at com.aspose.slides.pf4dd765c.pbdb106a0.p6a2feef8.i.if(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p6a2feef8.i.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p9f36407e.v.char(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p6a2feef8.i.byte(Unknown Source)

It will be very helpful if you can kindly suggest what is going wrong. I am using 7.8.0 version of slides for java.

Thanks & Regards,
Anil

Hi Anil,


Thanks for your interest in Aspose.Slides.


I have observed the stack trace shared by you and suggest you to please try using Aspose.Slides for Java 7.8.0 on your end. If there is still an issue then please share the sample presentation with us so that I may investigate the issue further on my end to help you out.

Many Thanks,

Hi Mudassir,

The issue is on 7.8.0 version of Aspose.Slides for java.

Thanks & regards,

Anil

Hi Muddasir,

PFA the ppt following is the code used to parse the ppt.

import java.io.FileInputStream;
import java.util.Date;

import com.aspose.slides.LoadFormat;
import com.aspose.slides.LoadOptions;
import com.aspose.slides.Presentation;


public class PerformanceTest {

public static void main(String[] args) throws Exception {

Date start = new Date();
LoadOptions loadOptions = new LoadOptions();
loadOptions.setLoadFormat(LoadFormat.Auto);
FileInputStream inputStream = new FileInputStream("presentations-tips.ppt");
Presentation ppt_new = new Presentation(inputStream, loadOptions);

Hi Anil,

I have worked with the presentation file shared using Aspose.Slides for Java 7.8.0 on my end in Windows 7 x64 with JDK 1.6_45. I have not been able to observe the issue specified while accessing the presentation. I have even generated the PDF for source presentation which is shared for your kind reference as well. Can you please try using the shared version on your end.

Many Thanks,

Hi Muddasir,


I apologize for not mentioning the java version. Can you kindly verify it in Java 1.7.0_25 on Win7 x64 unfortunately for other dependency reasons we cannot change the java version. Meanwhile I can give a try with the java version you have mentioned. However we have a strict no go on changing the java version.

Thanks,
Anil

Hi Anil,


I have worked with the presentation file shared using JDK 1.7_25 as well and have not observed any issue. From exception message it seems that you may be using some non standard locale on your end. Can you please share that which locale you are using. I am using Locale US-English on my end.

Many Thanks,

Bingo :), The issue was due to the Locale which was set to en_IN in my system. Thanks a lot for help, Also can you kindly let me know if this setting is mandatory ?

Hi Anil,


That is great that things are working on your end. As I shared with you in my previous post that Aspose.Slides does not work with non standard locales. If you are using any non standard locale in your machine then it is recommended to set the locale first to some standard locale and then use Aspose.Slides afterwards. Please share, if I may help you further in this regard.

Many Thanks,