Skip to Content
avatar image
Former Member

Not able to open Configtool

Dear Experts,

I'm not able to open configtool by using below path

/usr/sap/<SAPSID>/<Instance_Name>/j2ee/configtool/configtool.sh

here I'm getting below error.

-


Xlib: connection to ":1.0" refused by server

Xlib: No protocol specified

java.lang.reflect.InvocationTargetException

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

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

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

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

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

at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

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

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

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

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)

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

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

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)

at java.awt.Window.init(Window.java:268)

at java.awt.Window.<init>(Window.java:312)

at java.awt.Frame.<init>(Frame.java:431)

at javax.swing.JFrame.<init>(JFrame.java:229)

at com.sap.engine.configtool.visual.ConfigToolView.<init>(ConfigToolView.java:82)

at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:111)

at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:1176)

-


We are running EP 7.02,

Please letme know how to resolve this....

Thanks in advance.

Regards,

Mahee.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 05, 2012 at 11:37 AM

    Hi Mahesh,

    It is very clear with the logs that you have not set the DISPLAY variable for SIDADM user.

    You will be to set the DISPLAY variable similar to the above post and also you can set it using export DISPLAY=localhost:0.0

    I guess root user should be you reference for maintaining xauth parameters.

    With root user, try executing xclock, if clock pop up then DISPLAY variable is set for root user.

    As root, execute xauth list

    it will start with hostname/unix:0 MIT-MAGIC-COOKIE-1 f509b3235c4e8a4745ea33d76740f3df

    Now do a su - sidadm

    then enter xauth add unix:0 MIT-MAGIC-COOKIE-1 f509b3235c4e8a4745ea33d76740f3df

    then setenv DISPLAY 0.0

    or export DISPLAY=0.0

    This should work.

    Thanks

    Jaianandh V

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Still no luck, I am getting below error,

      ------------------

      java.lang.reflect.InvocationTargetException

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

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

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

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

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

              at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

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

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

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

              at java.lang.J9VMInternals.initializeImpl(Native Method)

              at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)

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

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

              at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)

              at java.awt.Window.init(Window.java:268)

              at java.awt.Window.<init>(Window.java:312)

              at java.awt.Frame.<init>(Frame.java:431)

              at javax.swing.JFrame.<init>(JFrame.java:229)

              at com.sap.engine.configtool.visual.ConfigToolView.<init>(ConfigToolView.java:82)

              at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:111)

              at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:1176)

              ... 6 more

      -----------------------------

      Thanks and Regards,

      Mahee.

  • avatar image
    Former Member
    Mar 05, 2012 at 09:37 AM

    Hi,

    You are getting the error because of :

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

    Please try to correctly set the DISPLAY environment parameter

    setenv DISPLAY (local host IP Address) : 0.0 (from your screen)

    format : setenv DISPLAY 128.100.2.16:0.0

    Once you have set the DISPLAY parameter. try xclock. If it works, Config tool also should start up.

    Regards,

    Sandeep.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06, 2012 at 01:26 PM

    What is the type and version of your OS?

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 07, 2012 at 07:52 AM

    Hi Maheesh,

    Please mention the OS.

    If it is a UNIX flavour system , please paste the Output of the below commands: -

    1) uname -a

    2) echo $SHELL

    Regards,

    Ashish .A. Poojary

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Ashish,

      OS is Lynux.

      and output of uname -a is

      Linux <domain name>2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

      echo $SHELL is

      /bin/bash

      Regards,,

      Mahee.