[Bug 3572] "Headless check failed" when I run "javaws myjnlpfile" inside xrdp/openbox

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Wed May 23 08:41:38 UTC 2018


https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3572

--- Comment #8 from JiriVanek <jvanek at redhat.com> ---
Thanx!

Are you able to rebuild deb/rpm or upstream icedtea-web with following patch?:

diff -r b64b383a4561 netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java        Mon May 14
17:11:41 2018 +0200
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java        Wed May 23
10:35:17 2018 +0200
@@ -19,6 +19,9 @@
 import static net.sourceforge.jnlp.runtime.Translator.R;

 import java.awt.EventQueue;
+import java.awt.GraphicsEnvironment;
+import static java.awt.GraphicsEnvironment.isHeadless;
+import java.awt.HeadlessException;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
@@ -741,8 +744,10 @@
             }
             if (!headless) {
                 try {
-                    new JWindow().getOwner();
-                } catch (Exception ex) {
+                    if (GraphicsEnvironment.isHeadless()) {
+                        throw new HeadlessException();
+                    }
+                } catch (HeadlessException ex) {
                     headless = true;
                     OutputController.getLogger().log(ex);
                    
OutputController.getLogger().log(OutputController.Level.MESSAGE_ALL,
Translator.R("HEADLESS_MISSCONFIGURED"));


If you build upstream -
https://icedtea.classpath.org/wiki/IcedTea-Web#Building_IcedTea-Web it should
be enough to  repalce system next.jar by freshly built netx.jar.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180523/26f0c9f4/attachment-0001.html>


More information about the distro-pkg-dev mailing list