Hello there,
maybe there is a bug on the following function:
Presentation pres = new Presentation();
pres.getSlides().addFromHtml(“test”);
Please note this happens only on remote linux server environments without X11 installed nor forwarded via ssh session. The -Djava.awt.headless=true is causing another error - but maybe it can be used for testing.
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:282)
at com.aspose.pf4dd765c.n.do(Unknown Source)
at com.aspose.pf4dd765c.ba.(Unknown Source)
at com.aspose.p7cce53cf.pa5e0ff62.o.do(Unknown Source)
at com.aspose.p7cce53cf.pa5e0ff62.o.if(Unknown Source)
at com.aspose.p7cce53cf.i.do(Unknown Source)
at com.aspose.slides.SlideCollection.do(Unknown Source)
at com.aspose.slides.SlideCollection.do(Unknown Source)
at com.aspose.slides.SlideCollection.addFromHtml(Unknown Source)
Environment is:
ava.vm.name: Java HotSpot™ 64-Bit Server VM
java.vm.vendor: Oracle Corporation
java.vm.version: 24.60-b09
java.runtime.name: Java™ SE Runtime Environment
java.runtime.version:1.7.0_60-b19
os.name: Linux
os.arch: amd64
java.io.tmpdir: /tmp
file.encoding: UTF-8
sun.io.unicode.encoding:UnicodeLittle
sun.cpu.endian: little
Available processors (cores):8
Free memory (bytes):856174216
Maximum memory (bytes):8572502016
Total memory available to JVM (bytes):1056309248
wordsVersion: 14.9.0.0
cellsVersion: 8.2.1.0
slidesVersion: 14.7.0.0
pdfVersion: 9.5.0
Hi Helge,
Thank you for sharing the details.
We will check the issue as per your mentioned environment and will get back to you with the results.
Thanks & Regards,
hello there,
Hi Rennicke,
Thank you for the details.
I tested your issue on my Linux environment and I am unable to reproduce the issue with JDK 1.6.0. I will further test the issue with 1.7.0_60 to make sure if it works fine with the version you are using. I will update you regarding the test results soon.
Thanks & Regards,
Hi Rennicke,
Sorry for the delay in response.
I am able to reproduce the headless exception issue after using the above line of code shared by you and JDK 1.7.0_60 on my linux environment. An issue has been registered in our issue tracking system with issue id: SLIDESJAVA-34633. You will be notified via this forum thread once the issue gets resolved.
Thanks & Regards,
Thanks for the work to reproduce the issue.
The issues you have found earlier (filed as SLIDESJAVA-34633) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.