cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gjandris
Level 5

UpdateService-Err>GUI mode is not supported : Can't connect to X11 window server

When building installers with my nightly build through an ant script, I get failures from Install Anywhere trying to start up the update service, even though I have disabled automatically looking for updates. I use the following ant task to run install builds:

classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask">





This makes it hard to automatic builds.
If someone could give me a reason behind this and how to prevent it, I would appreciate it.

The error I get is the following:

[buildinstaller] No VM Pack files exist in this directory
[buildinstaller] ChooseBundledVMs: , is not a VM pack
[buildinstaller] BuildInstaller: Asked to load /home/cronbld/builds/Granite_92/v9.2.0.00/install_anywhere/xng/middletier/wls81/xngwlmt.iap_xml
[buildinstaller] UpdateService-Err>No protocol specified
[buildinstaller] UpdateService-Err>GUI mode is not supported : Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
[buildinstaller] Copying /home/cronbld/builds/Granite_92/v9.2.0.00/install_anywhere/xng/middletier/wls81/xngwlmtBuild.iap_xml. Using copy for build.
[buildinstaller] Original project unchanged
[buildinstaller] No protocol specified
[buildinstaller] GUI mode is not supported : Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
[buildinstaller] FileAction: Deferring restore...
[buildinstaller] Using /home/cronbld/builds/Granite_92/v9.2.0.00/install_anywhere/xng/middletier/wls81/xngwlmtBuild.iap_xml for console build option
[buildinstaller] BuildInstaller: Loading external build settings file: /home/cronbld/builds/Granite_92/v9.2.0.00/build_scripts/xngBuild/iabuild.xml
[buildinstaller]
[buildinstaller]
[buildinstaller] Building Installer...
[buildinstaller] Build Configuration Name: Migrated_Configuration
[buildinstaller] Selected Build Targets: Windows+VM Linux+VM Solaris+VM HPUX-ITANIUM+VM Linux64+VM
[buildinstaller]
[buildinstaller] Active Build Options: Web
[buildinstaller]
[buildinstaller] InstallAnywhere temporary directory is located at:: /home/cronbld/builds/Granite_92/v9.2.0.00/install_anywhere/xng/middletier/wls81/.buildinstaller1.tmp
[buildinstaller] System's temporary directory = /tmp
[buildinstaller] Creating build directories...
[buildinstaller] [ 2015-05-27 10:46:30 ] BUILD STARTING
[buildinstaller] Preparing to build......
[buildinstaller] Could not read environmental variables from the system for build time variables.
[buildinstaller] InstallAnywhere temporary directory is located at:: /home/cronbld/builds/Granite_92/v9.2.0.00/install_anywhere/xng/middletier/wls81/.buildinstaller1.tmp
[buildinstaller] Creating build directories...
[buildinstaller] Checking free disk space...
[buildinstaller] Saving project...
[buildinstaller] Updating project pieces...
[buildinstaller] Generating script...
[buildinstaller] java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
[buildinstaller] at java.lang.Class.forName0(Native Method)
[buildinstaller] at java.lang.Class.forName(Unknown Source)
[buildinstaller] at java.awt.GraphicsEnvironment.createGE(Unknown Source)
[buildinstaller] at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
[buildinstaller] at sun.awt.X11FontManager.isHeadless(Unknown Source)
[buildinstaller] at sun.awt.X11FontManager.getFileNameFromPlatformName(Unknown Source)
[buildinstaller] at sun.font.SunFontManager.initCompositeFonts(Unknown Source)
[buildinstaller] at sun.font.SunFontManager.access$700(Unknown Source)
[buildinstaller] at sun.font.SunFontManager$2.run(Unknown Source)
[buildinstaller] at java.security.AccessController.doPrivileged(Native Method)
[buildinstaller] at sun.font.SunFontManager.(Unknown Source)
[buildinstaller] at sun.awt.X11FontManager.(Unknown Source)
[buildinstaller] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[buildinstaller] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[buildinstaller] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[buildinstaller] at java.lang.reflect.Constructor.newInstance(Unknown Source)
[buildinstaller] at java.lang.Class.newInstance(Unknown Source)
[buildinstaller] at sun.font.FontManagerFactory$1.run(Unknown Source)
[buildinstaller] at java.security.AccessController.doPrivileged(Native Method)
[buildinstaller] at sun.font.FontManagerFactory.getInstance(Unknown Source)
[buildinstaller] at java.awt.Font.getFont2D(Unknown Source)
[buildinstaller] at java.awt.Font.getFamily(Unknown Source)
[buildinstaller] at java.awt.Font.getFamily_NoClientCode(Unknown Source)
[buildinstaller] at java.awt.Font.getFamily(Unknown Source)
[buildinstaller] at Flexeraapd.al(Unknown Source)
[buildinstaller] at Flexeraapd.ai(Unknown Source)
[buildinstaller] at Flexeraapd.ai(Unknown Source)
[buildinstaller] at Flexeraapd.ac(Unknown Source)
[buildinstaller] at Flexeraapd.aa(Unknown Source)
[buildinstaller] at Flexeraapd.ab(Unknown Source)
[buildinstaller] at Flexeraad_.ek(Unknown Source)
[buildinstaller] at Flexeraad_.ej(Unknown Source)
[buildinstaller] at Flexeraad_.f_(Unknown Source)
[buildinstaller] at Flexeraad_.a4(Unknown Source)
[buildinstaller] at Flexeraad6.run(Unknown Source)
[buildinstaller] Adding other errors: Could not initialize class sun.awt.X11GraphicsEnvironment (java.lang.NoClassDefFoundError)
[buildinstaller] Build failure: Could not initialize class sun.awt.X11GraphicsEnvironment (java.lang.NoClassDefFoundError)
[buildinstaller] Build process finished.
[buildinstaller] Build time breakdown:
[buildinstaller]
[buildinstaller] Build Time breakdown for Configuration:Migrated Configuration
[buildinstaller] Time taken for this Build Configuration: 993 ms
[buildinstaller] ===========================================================
[buildinstaller] Total build time : 1 s, 8 ms
[buildinstaller] ===========================================================
[buildinstaller] BuildInstaller querying for fatal errors.
[buildinstaller] Build failure.
[buildinstaller] Reason: Could not initialize class sun.awt.X11GraphicsEnvironment (java.lang.NoClassDefFoundError)
[buildinstaller] Suggestion/Details: If symptoms persist, contact InstallAnywhere Technical Support.
[buildinstaller] Build unsuccessful.
[buildinstaller] null
[buildinstaller] Closed.
[buildinstaller] Could not initialize class sun.awt.X11GraphicsEnvironment (java.lang.NoClassDefFoundError)
[buildinstaller] If symptoms persist, contact InstallAnywhere Technical Support.
[buildinstaller] EXITING: -1
Labels (1)
0 Kudos
(3) Replies
DronidZe
Level 4

try to put the following line into ${IA_HOME}/build.lax
lax.nl.java.option.additional=-Djava.awt.headless=true
0 Kudos
gjandris
Level 5

DronidZe wrote:
try to put the following line into ${IA_HOME}/build.lax
lax.nl.java.option.additional=-Djava.awt.headless=true


There is already a lax.nl.java.option.additional entry there,
lax.nl.java.option.additional=-Djava.library.path=resource/fnp/libraries

Would I add onto that one, ex
lax.nl.java.option.additional="-Djava.library.path=resource/fnp/libraries -Djava.awt.headless=true"

or create a new line:
lax.nl.java.option.additional=-Djava.awt.headless=true

I would guess I would append to the existing one, not sure of the format I should use though.

Thanks
0 Kudos
gjandris
Level 5

Figured it out, nevermind.
I'll see if it helps in the next build.
0 Kudos