We have used aspose.pdf.Pdf.save() function to save the xml to PDF. The program is running under regular command under Unix window is ok. However when running under autosys job, we got th following error, seems like related to X11 window. Please help check what is the issue.
stty: standard input: Inappropriate ioctl for device
Exception in thread "Main Thread" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.(XToolkit.java:89)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:836)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:828)
at aspose.pdf.figure.Abn.(SourceFile:34)
at aspose.pdf.figure.Abi.a(SourceFile:99)
at aspose.pdf.figure.Aba.a(SourceFile:151)
at aspose.pdf.figure.Aba.a(SourceFile:96)
at aspose.pdf.xml.Abh.a(SourceFile:226)
at aspose.pdf.xml.Abh.a(SourceFile:632)
at aspose.pdf.xml.Abi.a(SourceFile:577)
at aspose.pdf.xml.Acc.a(SourceFile:796)
at aspose.pdf.xml.Aar.a(SourceFile:97)
at aspose.pdf.xml.Aba.a(SourceFile:112)
at aspose.pdf.Pdf.save(SourceFile:1166)
at aspose.pdf.Pdf.save(SourceFile:1112)
at gds.Import.GenerateLetter.getMailingLetterPDFfromXml(GenerateLetter.java:954)
at gds.Import.GenerateLetter.processWelcomePackages(GenerateLetter.java:652)
at gds.Import.GenerateLetter.processLetter(GenerateLetter.java:203)
at gds.Import.GenerateLetter.main(GenerateLetter.java:127)