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

Free Support Forum - aspose.com

14.5.0 version error

Hi,


It seems like I have got the same problem on Solaris/SunOS. This small program demonstrates the problem: (note that the program fails even with no fonts in the given directory)

import com.aspose.slides.FontsLoader;

public class FLTest {
public static void main(String[] args) {
System.out.println("os.name=" + System.getProperty("os.name"));
System.out.println("os.version=" + System.getProperty("os.version"));
System.out.println("java.version=" + System.getProperty("java.version"));

System.out.println("loading fonts...");
FontsLoader.loadExternalFonts(new String[] {"."}); //Doesn't matter if folder has any fonts.
System.out.println("Done.");
}
}

For the three JVMs installed on this machine i get the following output:

bash-3.2$ java_1.6.0_17 -cp aspose.slides-14.5.0.jar:. FLTest
os.name=SunOS
os.version=5.10
java.version=1.6.0_43
loading fonts...
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.aspose.slides.FontsLoader.loadExternalFonts(Unknown Source)
at FLTest.main(FLTest.java:10)
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)
... 2 more

bash-3.2$ java -cp aspose.slides-14.5.0.jar:. FLTest
os.name=SunOS
os.version=5.10
java.version=1.6.0_65
loading fonts...
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.aspose.slides.FontsLoader.loadExternalFonts(Unknown Source)
at FLTest.main(FLTest.java:10)
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)
... 2 more

bash-3.2$ java_1.7.0_17 -cp aspose.slides-14.5.0.jar:. FLTest
os.name=SunOS
os.version=5.10
java.version=1.7.0_17
loading fonts...
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.aspose.slides.FontsLoader.loadExternalFonts(Unknown Source)
at FLTest.main(FLTest.java:10)
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)
... 2 more


Running the same code on Ubuntu 14.04 works fine:

icomprice@dev:~$ java -cp aspose.slides-14.5.0.jar:. FLTest
os.name=Linux
os.version=3.13.0-32-generic
java.version=1.7.0
loading fonts...
Done.


Regards,
Henrik Arvidson

Hi Henrik Arvidson,

Thanks for your feedback for Aspose.Slides for Java 14.5.0. I have splitted your post from other thread as the nature of the issues are different from where you have shared your post earlier. I have created an issue with ID SLIDESJAVA-34464 in our issue tracking system to further investigate and resolve the issue on our end. 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,

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


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