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.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2021 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.