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

Free Support Forum - aspose.com

Unsupported Platform exception with aspose.slides-14.6.0.jar


Following the samples loading presentation and getting thumbnails for each slide

(get a very very similar error using the slide.writeSvgImage function also)

this is with the trial download.

traceback and jre info:
$ java -cp ".;c:/dev/aspose-powerpoint/lib/*" atest.AposePptTest test/AWS.ppt
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.aspose.slides.tt.do(Unknown Source)
at com.aspose.slides.tr.(Unknown Source)
at com.aspose.slides.bhj.for(Unknown Source)
at com.aspose.slides.bhj.while(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.AutoShape.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.Slide.getThumbnail(Unknown Source)
at com.aspose.slides.Slide.getThumbnail(Unknown Source)
at atest.AposePptTest.main(AposePptTest.java:84)
Caused by: java.lang.UnsupportedOperationException: Unsupported Platform, pid: -1
at com.aspose.slides.pa2137a2a.p883e881b.r.do(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.if(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.int(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.(Unknown Source)
... 17 more

rpaul@RPAUL-PC /cygdrive/c/dev/aspose-powerpoint
$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

I'll also add the test powerpoint

Hi Paul,

Thanks for your interest in Aspose.Slides.

I have tried loading the presentation file shared by you using Aspose.Slides for Java 14.6.0 on my end in Windows 7 x64 environment and have generated the attached slide thumbnails without any issue. Can you please provide the sample code used on your end to reproduce the issue along with information about your Operating system as well. We will investigate the issue further on our end to help you out.

public static void genPPTXThumbs(String presName,String path ) throws Exception
{
try{
Presentation pres = new Presentation(path+presName);

for(int i=0;i<pres.getSlides().size();i++)

{
ISlide sld = pres.getSlides().get_Item(i);
BufferedImage image = sld.getThumbnail(1.0f, 1.0f);
ImageIO.write(image,“jpeg”, new File(path+“Slides/PPTX_thumbnail” + i + “.jpg”));

}

}
catch(Exception e)
{
e.printStackTrace();
}
}

Many Thanks,

my code is almost identical:

OS is Windows 8.1 Pro
JRE as you saw.

I retested using your gen function and get the following stack trace:

$ java -cp ".;c:/dev/aspose-powerpoint/lib/*" atest.AposePptTest test/AWS.ppt
Presentation: test/AWS.ppt
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.aspose.slides.tt.do(Unknown Source)
at com.aspose.slides.tr.(Unknown Source)
at com.aspose.slides.bhj.for(Unknown Source)
at com.aspose.slides.bhj.while(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.do(Unknown Source)
at com.aspose.slides.bge.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.AutoShape.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.Slide.getThumbnail(Unknown Source)
at atest.AposePptTest.genPPTXThumbs(AposePptTest.java:71)
at atest.AposePptTest.main(AposePptTest.java:98)
Caused by: java.lang.UnsupportedOperationException: Unsupported Platform, pid: -1
at com.aspose.slides.pa2137a2a.p883e881b.r.do(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.if(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.int(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.(Unknown Source)
at com.aspose.slides.pa2137a2a.p9f36407e.i.(Unknown Source)
... 17 more

I’ve had success running against jdk 1.7.0.55 on Linux, which is closer to our production environment.

I’ll continue evaluations in that environment.

Hi Paul,

I like to share that we have investigated Aspose.Slides for Java 14.6.0 in Windows 8.1 and have been able to reproduce the issue on our end. We have fixed the issue in upcoming version of Aspose.Slides for Java 14.7.0, which will be released during first week of October 2014. You may please try using the specified version on your end once the version will be shared online.

Many Thanks,