cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to open Configtool

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

rupali_karbhari3
Active Contributor
0 Kudos

What is the type and version of your OS?

Regards,

Former Member
0 Kudos

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.

Former Member
0 Kudos

Dear Sandeep,

Thanks for quick reply.

I have set parameters as per your reply, but still no luck.

After maintaing parameters throughing 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 '<IP>: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

-


Please reply any other settings missing.

Regards,

Mahee.

p330068
Active Contributor
0 Kudos

Dear MaheeshReddY

I think you should open the configtool.bat

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

Best Regards

Arun Jaiswal

Former Member
0 Kudos

Hi,

What software do you use to connect to the server? Simple PuTTy would not have graphic support.

You need another software like mobaxterm.

Regards,

Srikishan

Former Member
0 Kudos

Dear Srikishan,

Iam using VNC.

Regards,

Mahee.

JPReyes
Active Contributor
0 Kudos

Hi Mahee,

Its been explained to you above that without an Xserver you won't be able to display configtool.

You need to set your DISPLAY and JAVA_HOME variable and use an XServer (Reflexion, Hummingbird, or any other) in your windows session so you can use configtool.

Regards

Juan

Former Member
0 Kudos

Hi Maheesh ,

Juan's right !!! You will have to use XServer for executing Confilg Tool .

Regards,

Ashish .A. Poojary

Former Member
0 Kudos

Dear Jaun/ Ashish

Can you please explain me how to configure Xserver and how to use XServer for executing Confilg Tool.

Thanks and Regards,

Mahee.

JPReyes
Active Contributor
0 Kudos

This is plain basic, Xserver is just a program you need to run in parallel with your terminal session.

Please do some research before posting.

Regards

Juan

Former Member
0 Kudos

Hi,

I have tried with Xserver also, still Iam getting same error.

Any other inputs please...

Thanks and Regards,

Mahee.