× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



- The "server" is the X Windowing System display server, e.g., your
local Linux box.
- The "client" is the headless program that is using whatever remote AWT
technology you're using.
- The "client" (the Java program) has to know which of possibly multiple
display devices on which host it should be attempting to hook up to.

If you connect to a remote box that will want to "client" (execute X
Windowing code) on your local display (the "server"), for example, from
your login me@mylinuxbox (the "server") to a remote "client" via ssh -Y
me@yourlinuxbox and then type echo $DISPLAY you'll see what the X
Forwarding on your session as me@yourlinuxbox is assigning as the display
identifier for the connection. Type xeyes on the "client" (the remote
connection) to run the silly X Eyes program on your local workstation
display from which you logged into to the remote box and thus test the
connection.

This is how your remote AWT is working. It's using the X Windowing system
to get access to the GUI display on your local workstation.

On Mon, May 9, 2016 at 12:10 PM, Darren Strong <darren@xxxxxxxxx> wrote:

This link is my resolution to a somewhat similar error. In summary, our
issue was a "DISPLAY" environment variable. I don't know if headless=true
overrides that or not.

http://archive.midrange.com/java400-l/201603/msg00007.html





From: Matt Pryor <pryor@xxxxxxxxxxxxxxx>
To: java400-l@xxxxxxxxxxxx
Date: 05/09/2016 11:00 AM
Subject: X11 window server error
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>



Hi there

We're encountering the following error when attempting to create /
manipulate a BufferedImage.

Can't connect to X11 window server using ':0.0' as the value of the DISPLAY
variable

sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
java.security.AccessController.doPrivileged(AccessController.java:202)
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
java.lang.J9VMInternals.initializeImpl(Native Method)
java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
java.lang.Class.forNameImpl(Native Method)
java.lang.Class.forName(Class.java:136)
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1146)
java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1136)

Java is invoked by a CL program and the following properties are already
set:

java.awt.headless=true
os400.awt.native=true

Setting these properties has always solved the problem on other customer
sites however we're still encountering it on this particular iSeries.

Any other suggestions would be gratefully received.

Thanks
Matt


--
--
Matt Pryor

The International Presence Group of Companies
Registered Office:10 Coppergate Mews, 109 - 111 Brighton Road, Surbiton,
Surrey KT6 5NE

TEL UK: +44 (0)845 130 6458, FAX: +44 (0)845 130 6459
TEL US: +1 321 726 9941, FAX +1 321 726 6210
EMAIL: pryor@xxxxxxxxxxxxxxx

URL: www.International-presence.com

International Presence Limited: Registered in England and Wales No.3709669

This E-mail and any attachments transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient please destroy this
message and kindly notify the sender by reply E-Mail. Opinions, conclusions
and other information in this message that do not relate to the official
business of International Presence Limited do not necessarily reflect the
views of the company.

International Presence Ltd
Unit 10, Coppergate Mews
Surbiton
Surrey KT6 5NE
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.