JVM Startup option required for Liferay 6.1 (JBoss) to avoid X11 ErrorsJVM Startup option required for Liferay 6.1 (JBoss) to avoid X11 Errorshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1192573182024-03-29T01:32:46Z2024-03-29T01:32:46ZRE: JVM Startup option required for Liferay 6.1 (JBoss) to avoid X11 ErrorsOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192592122020-05-28T07:14:08Z2020-05-28T07:14:08Z<div class="quote-title">Josmel Duran:</div><blockquote><br />Hi Community<br />I am seeing below error which seems to be harmless to my Portal, but I want to understand why it is happening and fix it.<br />Liferay Portal 6.1.3 --- Java version "1.7.0_40" --- JBoss E AP - 6.0.1 GA.<br />My JVM options already include <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">-Djava.awt.headless=true</span></span></span><br />Any recommendation?<br /></blockquote>Not what you want to hear: What's harmful to your portal is that it's hopelessly out of date. Assuming it's 6.1.2 GA3 (as there was no 6.1.3), the release date was Dec 2013 and I'm not aware of any significant update since then. <br />And there are other components from the same era. <br />I'd not be surprised if it was also vulnerable to the recently found <a href="https://liferay.dev/blogs/-/blogs/security-patches-for-liferay-portal-6-2-7-0-and-7-1">security issues</a>. But even the 6.1 Enterprise Edition has reached its end of life by now.<br />My recommendation is to fix it by upgrading to the current release.Olaf Kock2020-05-28T07:14:08ZRE: JVM Startup option required for Liferay 6.1 (JBoss) to avoid X11 ErrorsDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192559852020-05-27T22:20:10Z2020-05-27T22:20:10ZConfigure for imagemagick and ghostscript. PDFBox is being invoked to handle PDF conversion and, being java-based, it needs to fire up some java imaging magic. Enabling imagemagick and ghostcript may offload that to native Linux apps.David H Nebinger2020-05-27T22:20:10ZJVM Startup option required for Liferay 6.1 (JBoss) to avoid X11 ErrorsJosmel Duranhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192573172020-05-27T17:53:16Z2020-05-27T17:53:16Z<html><head></head><body>Hi Community<br>I am seeing below error which seems to be harmless to my Portal, but I want to understand why it is happening and fix it.<br>Liferay Portal 6.1.3 --- Java version "1.7.0_40" --- JBoss E AP - 6.0.1 GA.<br>My JVM options already include <span style="color: #212529"><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"><span style="font-size: 16px;">-Djava.awt.headless=true</span></span></span><br><pre><code></code></pre>Any recommendation?<pre><code></code></pre><br><pre><code>09:29:59,762 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
09:29:59,762 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
09:29:59,763 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
09:29:59,763 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
09:29:59,764 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.security.AccessController.doPrivileged(Native Method)
09:29:59,764 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
09:29:59,765 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.lang.Class.forName0(Native Method)
09:29:59,765 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.lang.Class.forName(Class.java:195)
09:29:59,766 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
09:29:59,766 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
09:29:59,766 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)
09:29:59,767 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1172)
09:29:59,767 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:754)
09:29:59,768 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at com.liferay.portlet.documentlibrary.util.LiferayPDFBoxConverter._generateImagesPB(LiferayPDFBoxConverter.java:92)
09:29:59,768 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at com.liferay.portlet.documentlibrary.util.LiferayPDFBoxConverter.generateImagesPB(LiferayPDFBoxConverter.java:70)
09:29:59,769 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl$LiferayPDFBoxProcessCallable.call(PDFProcessorImpl.java:891)
09:29:59,769 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at com.liferay.portlet.documentlibrary.util.PDFProcessorImpl$LiferayPDFBoxProcessCallable.call(PDFProcessorImpl.java:1)
09:29:59,770 ERROR [stderr] (com.liferay.portal.kernel.process.ProcessExecutor-997) &nbsp; &nbsp; at com.liferay.p