Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question