cancel
Showing results for 
Search instead for 
Did you mean: 

Can't connect to X11 window server with DISPLAY variable's value

Former Member
0 Kudos

Dear Experts,

While starting the startInstGui.sh I am getting the following error. I am doing the installation local installation from Root user of linux.

I have tried various option for display but I am getting the same error i.e. "Can't connect to X11 wi ndow server using '172.16.67.57:0.0' as the value of the DISPLAY variable".

Please suggest ASAP.

============startInstGui.sh output (error log)==========

./startInstGui.sh

Java Runtime found in SAPINST_JRE_HOME environment variable

Path: /usr/j2sdk1.4.2_16/bin/java

Start mode: gui (GUI only)

Connection parameters:

GUIServer host: localhost

GUIServer port: 21212

Starting...

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:82)

at com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:107)

at SDTGui.main(SDTGui.java:46)

Caused by: java.lang.InternalError: Can't connect to X11 window server using '17 2.16.67.57:0.0' as the value of the DISPLAY variable.

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:1 34)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:62)

at java.awt.Font.initializeFont(Font.java:308)

at java.awt.Font.<init>(Font.java:353)

at java.awt.Font.createFont(Font.java:628)

at com.sap.sdt.gui.core.settings.GuiSettings.createSAPFonts(GuiSettings. java:394)

at com.sap.sdt.gui.core.settings.GuiSettings.<init>(GuiSettings.java:97)

at com.sap.sdt.gui.core.settings.GuiSettings.<clinit>(GuiSettings.java:8 6)

at com.sap.sdt.gui.core.SDTGui.initStdOutErr(SDTGui.java:244)

at com.sap.sdt.gui.core.SDTGui.start(SDTGui.java:149)

at com.sap.sdt.gui.core.SDTGui.main(SDTGui.java:87)

... 7 more

java.lang.InternalError: Can't connect to X11 window server using '172.16.67.57: 0.0' as the value of the DISPLAY variable.

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:1 34)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:62)

at java.awt.Font.initializeFont(Font.java:308)

at java.awt.Font.<init>(Font.java:353)

at java.awt.Font.createFont(Font.java:628)

at com.sap.sdt.gui.core.settings.GuiSettings.createSAPFonts(GuiSettings. java:394)

at com.sap.sdt.gui.core.settings.GuiSettings.<init>(GuiSettings.java:97)

at com.sap.sdt.gui.core.settings.GuiSettings.<clinit>(GuiSettings.java:8 6)

at com.sap.sdt.gui.core.SDTGui.initStdOutErr(SDTGui.java:244)

at com.sap.sdt.gui.core.SDTGui.start(SDTGui.java:149)

at com.sap.sdt.gui.core.SDTGui.main(SDTGui.java:87)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:82)

at com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:107)

at SDTGui.main(SDTGui.java:46)

error in:

Class : com.sap.sdt.gui.core.SDTGui

Name : main

Static : true

class [Ljava.lang.String; - [Ljava.lang.String;@b166b5

java.lang.RuntimeException: invocation target exception: Can't connect to X11 wi ndow server using '172.16.67.57:0.0' as the value of the DISPLAY variable.

at com.sap.sdt.util.misc.MethodCall.invoke(MethodCall.java:110)

at com.sap.sdt.util.misc.BootStrapper.start(BootStrapper.java:107)

at SDTGui.main(SDTGui.java:46)

==========================================

SAP Software - NW 2004s SR1

DB - ORACLE 10G

OS - Red Hat Enterprise Linux AS release 4(Nahant Update 4)

OS Kernel - 2.6.9 - 42.EL

Edited by: TP Suresh on Dec 24, 2007 12:27 PM

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor

- did you logon as user root or did you "su - root"?

- is an X-Server running on the given IP?

Markus

Answers (3)

Answers (3)

canute
Explorer

We had the same problem. We find out that due to a network upgrade, the access list was modified and we couldn't , and the Xserver coulnd not be started from the connecting machine.

The problem was solved by opening a session ssh tunnel ( screen shot of putty to establish a ssh tunnel to a given server)

Former Member
0 Kudos

my problem with "Can't connect to X11 window server with DISPLAY variable's" resolve for zone solaris delete paramer process.max-file-descriptor in /etc/project for user roor

deeraj_shetty
Participant
0 Kudos

Dear Roman Dyachkov,

Thanks a lot for the solution.

We were facing similar issue during EP App server installation.

Deleted parameter process.max-file-descriptor and some obsolete projects in /etc/project for user root and it worked.

Regards,

Deeraj Shetty

Former Member
0 Kudos

Hi,

Make sure that you're log on to X using root user.

set DISPLAY variable using this command :

#DISPLAY=:0.0

#export DISPLAY

to check if your DISPLAY variable was configured well, just type this command :

#xclock

If this command show you an X clock program, then you can continue your ./sapinst.sh

award point if it help you.

ardhian